Socket API

class pytts.socket_api(tts: pytts.pyttsx3 | pytts.gctts | pytts.nsss | pytts.sapi | pytts.pico | pytts.gtts | pytts.polly)
async run(port: int) None

_summary_

Parameters

port (int) – _description_

class pytts.socket_client(ipaddr: str, port: int)
async speak(text: str, play: bool = True, save: bool = False) None

_summary_

Parameters
  • text (str) – _description_

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

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