RAPP Platform API
 All Classes Namespaces Files Functions Variables Typedefs
RappCloud.CloudMsgs.TextToSpeech.TextToSpeech.Response Class Reference
Inheritance diagram for RappCloud.CloudMsgs.TextToSpeech.TextToSpeech.Response:
Collaboration diagram for RappCloud.CloudMsgs.TextToSpeech.TextToSpeech.Response:

Public Member Functions

def __init__
 Constructor. More...
 
def get_audio_raw
 Get audio raw data from response. More...
 
def store_audio
 Store returned audio data to an audio file given by path. More...
 

Public Attributes

 basename
 A static basename for the audio data file, returned from the platform service. More...
 
 encoding
 Codec used to encode the audio data payload. More...
 
 error
 Error message. More...
 
 payload
 The audio data payload. More...
 

Detailed Description

Text-To-Speech (TTS) Cloud Response object.

TextToSpeech.Response

Definition at line 55 of file TextToSpeech.py.

Constructor & Destructor Documentation

def RappCloud.CloudMsgs.TextToSpeech.TextToSpeech.Response.__init__ (   self,
  kwargs 
)

Constructor.

Parameters
**kwargs- Keyword arguments. Apply values to the request attributes.

Definition at line 60 of file TextToSpeech.py.

Member Function Documentation

def RappCloud.CloudMsgs.TextToSpeech.TextToSpeech.Response.get_audio_raw (   self)

Get audio raw data from response.

Definition at line 85 of file TextToSpeech.py.

def RappCloud.CloudMsgs.TextToSpeech.TextToSpeech.Response.store_audio (   self,
  destfile 
)

Store returned audio data to an audio file given by path.

Parameters
destfile- Destination file path.

Definition at line 92 of file TextToSpeech.py.

Member Data Documentation

RappCloud.CloudMsgs.TextToSpeech.TextToSpeech.Response.basename

A static basename for the audio data file, returned from the platform service.

Ignore this field. May be usefull in future implementations.

Definition at line 81 of file TextToSpeech.py.

RappCloud.CloudMsgs.TextToSpeech.TextToSpeech.Response.encoding

Codec used to encode the audio data payload.

Definition at line 77 of file TextToSpeech.py.

RappCloud.CloudMsgs.TextToSpeech.TextToSpeech.Response.error

Error message.

Definition at line 72 of file TextToSpeech.py.

RappCloud.CloudMsgs.TextToSpeech.TextToSpeech.Response.payload

The audio data payload.

Payload encoding is defined by the 'encoding' json field.

Definition at line 75 of file TextToSpeech.py.


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