-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathspeech.thrift
89 lines (75 loc) · 1.73 KB
/
speech.thrift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
namespace yarp roboticslab
service TextToSpeechIDL
{
/**
* set the speech langauge
* @return true/false on success/failure
*/
bool setLanguage(1: string language);
/**
* set the speech speed
* @return true/false on success/failure
*/
bool setSpeed(1: i16 speed);
/**
* set the speech pitch
* @return true/false on success/failure
*/
bool setPitch(1: i16 pitch);
/**
* get the speech speed
* @return the speed
*/
i16 getSpeed();
/**
* get the speech pitch
* @return the pitch
*/
i16 getPitch();
/**
* get the available languages
* @return a list of the supported languages
*/
list<string> getSupportedLangs();
/**
* render and play the speech
* @return true/false on success/failure
*/
bool say(1: string text);
/**
* play the previously rendered or paused speech
*/
bool play();
/**
* pause the current speech
*/
bool pause();
/**
* stop playing the current speech
*/
bool stop();
/**
* check whether there is an ongoing speech right now
*/
bool checkSayDone();
}
service SpeechRecognitionIDL
{
/**
* configure a dictionary
* @param dictionary the dictionary to use, e.g. 'follow-me' or '20k'
* @param language the language to use, e.g. 'en-us' or 'es'
* @return true/false on success/failure
*/
bool setDictionary(1: string dictionary, 2: string language);
/**
* mute the microphone
* @return true/false on success/failure
*/
bool muteMicrophone();
/**
* unmute the microphone
* @return true/false on success/failure
*/
bool unmuteMicrophone();
}