RAPP Platform  v0.6.0
RAPP Platform is a collection of ROS nodes and back-end processes that aim to deliver ready-to-use generic services to robots
 All Classes Namespaces Files Functions Variables Macros
speech_recognition_google.SpeechToTextGoogle Class Reference

Implements calls the Google ASR API. More...

Public Member Functions

def __init__
 Default contructor. More...
 
def speech_to_text
 Performs the call to Google API. More...
 
def speech_to_text_callback
 The service callback. More...
 

Public Attributes

 serv
 
 serv_topic
 

Detailed Description

Implements calls the Google ASR API.

Definition at line 52 of file speech_recognition_google.py.

Constructor & Destructor Documentation

def speech_recognition_google.SpeechToTextGoogle.__init__ (   self)

Default contructor.

Declares the service callback

Definition at line 55 of file speech_recognition_google.py.

Member Function Documentation

def speech_recognition_google.SpeechToTextGoogle.speech_to_text (   self,
  file_path,
  user,
  audio_file_type,
  language 
)

Performs the call to Google API.

Parameters
file_path[string] The audio file
user[string] The username
audio_type[string] Used to check if denoising is needed. Can be one of headset, nao_ogg, nao_wav_1_ch, nao_wav_4_ch
language[string] The language in which the ASR will be performed
Returns
The transcript from Google

Definition at line 122 of file speech_recognition_google.py.

def speech_recognition_google.SpeechToTextGoogle.speech_to_text_callback (   self,
  req 
)

The service callback.

Parameters
req[SpeechToTextSrvRequest] The ROS service request

Definition at line 66 of file speech_recognition_google.py.

Member Data Documentation

speech_recognition_google.SpeechToTextGoogle.serv

Definition at line 61 of file speech_recognition_google.py.

speech_recognition_google.SpeechToTextGoogle.serv_topic

Definition at line 57 of file speech_recognition_google.py.


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