forked from robotology/yarp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request robotology#2978 from randaz81/speech_interfaces
New interfaces for speech transcription and synthesis
- Loading branch information
Showing
52 changed files
with
6,683 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
speech_interfaces {#master} | ||
----------- | ||
|
||
### libYarp_dev | ||
|
||
* added interfaces: ISpeechSynthesizer, ISpeechTranscription | ||
|
||
### devices | ||
|
||
* added plugins: devices fakeSpeechSynthesizer, fakeSpeechTranscription + tests | ||
* added nws devices: speechSynthesizer_nws_yarp, speechTranscription_nws_yarp + tests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# SPDX-FileCopyrightText: 2023-2023 Istituto Italiano di Tecnologia (IIT) | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
if(NOT YARP_COMPILE_DEVICE_PLUGINS) | ||
return() | ||
endif() | ||
|
||
include(YarpChooseIDL) | ||
yarp_choose_idl(ISPEECHTRANSCMSG_THRIFT ISpeechSynthesizerMsgs.thrift) | ||
|
||
add_library(ISpeechSynthesizerMsgs OBJECT) | ||
|
||
target_sources(ISpeechSynthesizerMsgs PRIVATE ${ISPEECHTRANSCMSG_THRIFT_GEN_FILES}) | ||
|
||
target_link_libraries(ISpeechSynthesizerMsgs | ||
PRIVATE | ||
YARP::YARP_dev | ||
YARP::YARP_os | ||
YARP::YARP_sig | ||
) | ||
|
||
target_include_directories(ISpeechSynthesizerMsgs PUBLIC ${ISPEECHTRANSCMSG_THRIFT_BUILD_INTERFACE_INCLUDE_DIRS}) | ||
|
||
set_property(TARGET ISpeechSynthesizerMsgs PROPERTY FOLDER "Devices/Shared") |
48 changes: 48 additions & 0 deletions
48
src/devices/ISpeechSynthesizerMsgs/ISpeechSynthesizerMsgs.thrift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023-2023 Istituto Italiano di Tecnologia (IIT) | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
struct yarp_sig_Sound { | ||
} ( | ||
yarp.name = "yarp::sig::Sound" | ||
yarp.includefile = "yarp/sig/Sound.h" | ||
) | ||
|
||
struct return_get_language { | ||
1: bool ret = false; | ||
2: string language; | ||
} | ||
|
||
struct return_get_voice { | ||
1: bool ret = false; | ||
2: string voice; | ||
} | ||
|
||
struct return_get_speed { | ||
1: bool ret = false; | ||
2: double speed; | ||
} | ||
|
||
struct return_get_pitch { | ||
1: bool ret = false; | ||
2: double pitch; | ||
} | ||
|
||
struct return_synthesize { | ||
1: bool ret = false; | ||
2: yarp_sig_Sound sound; | ||
} | ||
|
||
service ISpeechSynthesizerMsgs | ||
{ | ||
bool set_language (1:string language); | ||
return_get_language get_language (); | ||
bool set_voice (1:string language); | ||
return_get_voice get_voice (); | ||
bool set_speed (1:double speed); | ||
return_get_speed get_speed (); | ||
bool set_pitch (1:double pitch); | ||
return_get_pitch get_pitch (); | ||
return_synthesize synthesize (1:string text); | ||
} |
Oops, something went wrong.