Amazon Polly

class pytts.polly(aws_access_key_id: str, aws_secret_access_key: str, region_name: str, VoiceId: str, engine: str, output_format: str = 'mp3')
speak(text: str, sensitive: bool = False, play: bool = True) str

_summary_

Parameters
  • text (str) – _description_

  • sensitive (bool, optional) – _description_. Defaults to False.

  • play (bool, optional) – _description_. Defaults to True.

Returns

_description_

Return type

str