Module my_autopylot.CrashHandler

Functions

def install_module(module_name)

Description

Install a module.

Args

module_name
A string representing the name of the module to be installed.
def install_pyaudio()

Description

Installs pyaudio.

Args

None.

Returns

A boolean representing whether the pyaudio was installed successfully.

def playsound(sound, block=True)

Description

Play a sound file.

Args

sound
A string representing the path to the sound file.
block
A boolean representing whether the sound should be played in a blocking manner.
def report_error(ex: Exception)

Description

Reports an error to the user.

Args

ex
An exception object.

Returns

A boolean representing whether the error was reported successfully.

def text_to_speech(audio, show=True)

Description

Text to Speech using Google's Generic API.

Args

audio
A string representing the text to be spoken.
show
A boolean representing whether the text should be printed.

Returns

A boolean representing whether the text was spoken successfully.

def text_to_speech_error(audio, show=True)

Description

Text to Speech using Google's Generic API.

Args

audio
A string representing the text to be spoken.
show
A boolean representing whether the text should be printed.
def text_to_speech_offline(audio, show=True, rate=170)

Description

Text to Speech using Google's Generic API. Rate is the speed of speech. Default is 150. Actual default : 200

Args

audio
A string representing the text to be spoken.
show
A boolean representing whether the text should be printed.
rate
A integer representing the speed of speech.

Returns

A boolean representing whether the text was spoken successfully.

def uninstall_module(module_name)

Description

Uninstall a module.

Args

module_name
A string representing the name of the module to be uninstalled.