Public Member Functions | |
def | add_streaming_packet |
def | join |
def | register_streaming_cb |
def | request |
def | set_streaming_config |
def | support_streaming |
def | unregister_streaming_cb |
Static Public Attributes | |
int | AUDIO_LENGTH = 16000 |
int | CHANNELS = 1 |
int | FRAMERATE = 16000 |
list | LANGUAGES = ['ja', 'en', 'zh', 'ko', 'id', 'my', 'th', 'vi', 'fr', 'es'] |
int | SAMPWIDTH = 2 |
string | URL = 'http://rospeex.nict.go.jp/nauth_json/jsServices/VoiceTraSR' |
SpeechRecognitionClient_NICT class
Definition at line 19 of file nict/sync_client.py.
def rospeex_core.sr.nict.sync_client.SyncClient.add_streaming_packet | ( | self, | |
packet_type, | |||
packet_data | |||
) |
add streaming packet @param packet_type: @type packet_type: int @param packet_data: @param packet_data: str
Definition at line 119 of file nict/sync_client.py.
def rospeex_core.sr.nict.sync_client.SyncClient.join | ( | self, | |
timeout = None |
|||
) |
join streaming client @param timeout: @type timeout:
Definition at line 150 of file nict/sync_client.py.
def rospeex_core.sr.nict.sync_client.SyncClient.register_streaming_cb | ( | self, | |
cb | |||
) |
register streaming result callback @param cb: @type cb:
Definition at line 128 of file nict/sync_client.py.
def rospeex_core.sr.nict.sync_client.SyncClient.request | ( | self, | |
data, | |||
language = 'ja' , |
|||
timeout = socket._GLOBAL_DEFAULT_TIMEOUT |
|||
) |
send speech recognition request to server @param data: speech binary data @type data: str @param language: speech data language @type language: str @param timeout: time out time[ms] @type timeout: int
Definition at line 30 of file nict/sync_client.py.
def rospeex_core.sr.nict.sync_client.SyncClient.set_streaming_config | ( | self, | |
language | |||
) |
set streaming config @param language:
Definition at line 144 of file nict/sync_client.py.
check support streaming @return: True for support streaming / False for NOT support streaming
Definition at line 112 of file nict/sync_client.py.
def rospeex_core.sr.nict.sync_client.SyncClient.unregister_streaming_cb | ( | self, | |
cb | |||
) |
unregister streaming result callback @param cb: @type cb:
Definition at line 136 of file nict/sync_client.py.
int rospeex_core::sr::nict::sync_client.SyncClient::AUDIO_LENGTH = 16000 [static] |
Definition at line 22 of file nict/sync_client.py.
int rospeex_core::sr::nict::sync_client.SyncClient::CHANNELS = 1 [static] |
Definition at line 24 of file nict/sync_client.py.
int rospeex_core::sr::nict::sync_client.SyncClient::FRAMERATE = 16000 [static] |
Definition at line 23 of file nict/sync_client.py.
list rospeex_core::sr::nict::sync_client.SyncClient::LANGUAGES = ['ja', 'en', 'zh', 'ko', 'id', 'my', 'th', 'vi', 'fr', 'es'] [static] |
Definition at line 27 of file nict/sync_client.py.
int rospeex_core::sr::nict::sync_client.SyncClient::SAMPWIDTH = 2 [static] |
Definition at line 25 of file nict/sync_client.py.
string rospeex_core::sr::nict::sync_client.SyncClient::URL = 'http://rospeex.nict.go.jp/nauth_json/jsServices/VoiceTraSR' [static] |
Definition at line 26 of file nict/sync_client.py.