Skip to content
Snippets Groups Projects
chat_tts_arguments.py 658 B
Newer Older
  • Learn to ignore specific revisions
  • wuhongsheng's avatar
    wuhongsheng committed
    from dataclasses import dataclass, field
    
    
    @dataclass
    class ChatTTSHandlerArguments:
        chat_tts_stream: bool = field(
            default=True,
            metadata={
                "help": "The tts mode is stream Default is 'stream'."
            },
        )
        chat_tts_device: str = field(
            default="mps",
            metadata={
                "help": "The device to be used for speech synthesis. Default is 'mps'."
            },
        )
        chat_tts_chunk_size: int = field(
            default=512,
            metadata={
                "help": "Sets the size of the audio data chunk processed per cycle, balancing playback latency and CPU load.. Default is 512。."
            },
        )