chat_tts_arguments.py 638 B

123456789101112131415161718192021
  1. from dataclasses import dataclass, field
  2. @dataclass
  3. class ChatTTSHandlerArguments:
  4. chat_tts_stream: bool = field(
  5. default=True,
  6. metadata={"help": "The tts mode is stream Default is 'stream'."},
  7. )
  8. chat_tts_device: str = field(
  9. default="cuda",
  10. metadata={
  11. "help": "The device to be used for speech synthesis. Default is 'cuda'."
  12. },
  13. )
  14. chat_tts_chunk_size: int = field(
  15. default=512,
  16. metadata={
  17. "help": "Sets the size of the audio data chunk processed per cycle, balancing playback latency and CPU load.. Default is 512。."
  18. },
  19. )