File size: 638 Bytes
c72e80d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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="cuda",
        metadata={
            "help": "The device to be used for speech synthesis. Default is 'cuda'."
        },
    )
    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。."
        },
    )