PocketTTSHandlerArguments (arguments_classes/pocket_tts_arguments.py)

speech-to-speech · src/speech_to_speech/arguments_classes/pocket_tts_arguments.py · python · Apache-2.0
voice, Voice / Speech

Configures PocketTTS parameters like device, voice, and sample rate for speech synthesis.

# Source: https://github.com/huggingface/speech-to-speech | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
from dataclasses import dataclass, field


@dataclass
class PocketTTSHandlerArguments:
    pocket_tts_device: str = field(
        default="cpu",
        metadata={
            "help": "The device type on which the Pocket TTS model will run. Options: 'auto' (first available of CUDA, NPU, XPU, MPS, CPU), 'cuda', 'npu', 'xpu', 'mps', or 'cpu'. Default is 'cpu'."
        },
    )
    pocket_tts_voice: str = field(
        default="jean",
        metadata={
            "help": "Voice to use for Pocket TTS. Can be a preset name ('alba', 'marius', 'javert', 'jean', 'fantine', 'cosett

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key