Public Member Functions | Static Private Attributes
rospeex_core.sr.base.client.IClient Class Reference
Inheritance diagram for rospeex_core.sr.base.client.IClient:
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 Private Attributes

 __metaclass__ = abc.ABCMeta

Detailed Description

IClient class 

Definition at line 11 of file client.py.


Member Function Documentation

def rospeex_core.sr.base.client.IClient.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

Reimplemented in rospeex_core.sr.microsoft.sync_client.SyncClient, and rospeex_core.sr.google.sync_client.SyncClient.

Definition at line 51 of file client.py.

def rospeex_core.sr.base.client.IClient.join (   self,
  timeout 
)
join streaming client
@param timeout:
@type timeout:

Reimplemented in rospeex_core.sr.microsoft.sync_client.SyncClient, and rospeex_core.sr.google.sync_client.SyncClient.

Definition at line 80 of file client.py.

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

Reimplemented in rospeex_core.sr.microsoft.sync_client.SyncClient, and rospeex_core.sr.google.sync_client.SyncClient.

Definition at line 62 of file client.py.

def rospeex_core.sr.base.client.IClient.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

Reimplemented in rospeex_core.sr.microsoft.sync_client.SyncClient, and rospeex_core.sr.google.sync_client.SyncClient.

Definition at line 16 of file client.py.

def rospeex_core.sr.base.client.IClient.set_streaming_config (   self,
  args,
  kwargs 
)
set streaming config
@param argv:
@param kwargs:

Definition at line 42 of file client.py.

check support streaming
@returns: True for support streaming / False for NOT support streaming

Reimplemented in rospeex_core.sr.microsoft.sync_client.SyncClient, and rospeex_core.sr.google.sync_client.SyncClient.

Definition at line 34 of file client.py.

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

Reimplemented in rospeex_core.sr.microsoft.sync_client.SyncClient, and rospeex_core.sr.google.sync_client.SyncClient.

Definition at line 71 of file client.py.


Member Data Documentation

Definition at line 13 of file 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