Module my_autopylot.voice39
Functions
def playsound(sound, block=True)
-
Description
Play a sound file.
Args
sound
- A string containing the path to the sound file.
block
- A boolean indicating whether to block the program while the sound is playing.
Returns
[status] status (bool): True if success, False otherwise.
def speech_to_text()
-
Description
Speech to Text using speech_recognition
Args
None
Returns
[status] status (bool): True if success, False otherwise. data (str): The text spoken.
def text_to_speech(audio, show=True)
-
Description
Text to Speech using Google's Generic API
Args
audio
- A string containing the text to be spoken.
show
- A boolean indicating whether to show the text to be spoken.
Returns
[status] status (bool): True if success, False otherwise.