say

speech.say(text: str, language: str = None, rate: float = None)

Says the given text.

Parameters:
  • text – The text to speak.

  • language – Format: en-US. If is nothing provided, the system language is used. Use the get_available_languages() function to get all available languages.

  • rate – The speed of the voice. From 0 (really slow) to 1 (really fast). If nothing is provided, 0.5 is used.