sitcom_simulator.speech.integrations.gtts

Functions

generate_voices(script[, on_voice_generated])

Generates and returns a list of voice clip paths for the given script using the Google Text-to-Speech API.

sitcom_simulator.speech.integrations.gtts.generate_voices(script, on_voice_generated=None)

Generates and returns a list of voice clip paths for the given script using the Google Text-to-Speech API. Intended for debugging purposes and ironic memes only.

Parameters:
  • script (Script) – The script to generate voice clips for

  • on_voice_generated (Optional[Callable[[int, str], None]]) – A callback to call after each voice clip is generated which takes the clip index and path to the generated audio

Return type:

List[str | None]