Public Member Functions | Static Public Attributes
rospeex_core.sr.nict.sync_client.SyncClient Class Reference
Inheritance diagram for rospeex_core.sr.nict.sync_client.SyncClient:
Inheritance graph
[legend]

List of all members.

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'

Detailed Description

SpeechRecognitionClient_NICT class 

Definition at line 19 of file nict/sync_client.py.


Member Function Documentation

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.

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.

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.

unregister streaming result callback
@param cb:
@type cb:

Definition at line 136 of file nict/sync_client.py.


Member Data Documentation

Definition at line 22 of file nict/sync_client.py.

Definition at line 24 of file nict/sync_client.py.

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.

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.


The documentation for this class was generated from the following file:


rospeex_core
Author(s): Komei Sugiura
autogenerated on Thu Jun 6 2019 18:53:10