client_base.py
Go to the documentation of this file.
00001 # -*- coding: utf-8 -*-
00002 
00003 import socket
00004 import logging
00005 
00006 # import library
00007 from rospeex_core.exceptions import SpeechRecognitionException
00008 
00009 
00010 # create logger
00011 logging.basicConfig(level=logging.INFO)
00012 logger = logging.getLogger(__name__)
00013 
00014 
00015 class SpeechRecognitionClient(object):
00016     """ SpeechRecognitionClient class """
00017 
00018     def request(self, data, language='ja', timeout=socket._GLOBAL_DEFAULT_TIMEOUT):
00019         """
00020         send speech recognition request to server
00021         @param data: speech binary data
00022         @type  data: str
00023         @param language: speech data language
00024         @type  language: str
00025         @param timeout: time out time[ms]
00026         @type  timeout: int
00027         """
00028         raise SpeechRecognitionException('Not implemented error.')


rospeex_core
Author(s): Komei Sugiura
autogenerated on Wed Aug 26 2015 16:10:30