pepper.framework.abstract.text_to_speech module¶
-
class
pepper.framework.abstract.text_to_speech.AbstractTextToSpeech(language)[source]¶ Bases:
objectAbstract Text To Speech
Parameters: language (str) – Language Code -
language¶ //cloud.google.com/speech/docs/languages>`_
Returns: language – Language Code Return type: str Type: `Language Code <https
-
on_text_to_speech(text, animation=None)[source]¶ Say something through Text to Speech (Implementation)
Text To Speech Backends should implement this function This function should block while speech is being produced
Parameters: - text (str) –
- animation (str) –
-
say(text, animation=None, block=False)[source]¶ Say Text (with optional Animation) through Text-to-Speech
Parameters: - text (str) – Text to say through Text-to-Speech
- animation (str or None) – (Naoqi) Animation to play
- block (bool) – Whether this function should block or immediately return after calling
-
talking¶ Returns whether system is currently producing speech
Returns: talking – Whether system is currently producing speech Return type: bool
-