forked from devnen/Kitten-TTS-Server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml
More file actions
137 lines (110 loc) · 5.81 KB
/
Copy pathconfig.yaml
File metadata and controls
137 lines (110 loc) · 5.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# -----------------------------------------------------------------------------
# Kitten TTS Server Configuration File (config.yaml)
#
# This file controls all the settings for the server.
# Changes to sections like 'server', 'tts_engine', or 'paths'
# typically require a server restart to take effect.
# -----------------------------------------------------------------------------
# --- Server Settings ---
# Controls the web server's network behavior, security, and logging.
server:
# The IP address for the server to listen on.
# - "0.0.0.0": Makes the server accessible from other devices on your network. (Recommended for Docker)
# - "127.0.0.1" or "localhost": The server will only be accessible from your own computer.
host: 0.0.0.0
# The network port the server will run on.
# If you get a "port already in use" error, change this to another number (e.g., 8006).
port: 8005
# --- Logging Configuration ---
# Path to the server's log file, relative to the project root directory.
log_file_path: logs\tts_server.log
# The maximum size of a single log file in megabytes (MB) before it is rotated.
# This prevents log files from growing indefinitely.
log_file_max_size_mb: 10
# The number of old log files to keep as backups.
# For example, if this is 5, you will have 'tts_server.log' and up to 5 older backups.
log_file_backup_count: 5
# --- Model Settings ---
# Specifies the core AI model to be used by the TTS engine.
model:
# The repository ID of the model on the Hugging Face Hub.
# You can change this to use a different compatible ONNX model in the future.
repo_id: KittenML/kitten-tts-nano-0.1
# --- TTS Engine Settings ---
# Configures the hardware and core settings for the speech synthesis engine.
tts_engine:
# Determines which hardware to use for inference. This is a critical performance setting.
# Valid options: "auto", "cuda", "gpu", "cpu"
# - "auto": (Recommended) Automatically uses an NVIDIA GPU if one is detected, otherwise falls back to the CPU.
# - "cuda" or "gpu": Explicitly forces the use of an NVIDIA GPU. The server will fail to start if one is not available.
# - "cpu": Forces the use of the CPU, even if a powerful GPU is present.
device: auto
# --- File Path Settings ---
# Defines where the application should store various files.
paths:
# The directory where downloaded model files will be cached.
model_cache: model_cache
# The default directory where generated audio files will be saved.
output: outputs
# --- Default Generation Parameters ---
# Default values for the speech generation process. These can be overridden in the UI or via API calls.
generation_defaults:
# The default speed of the generated speech.
# 1.0 is normal speed. > 1.0 is faster, < 1.0 is slower.
speed: 1.1
# Default language for the phonemizer. The current model is trained for English.
language: en
# This is a legacy/duplicate setting. Please use the 'speed' setting above.
speed_factor: 1.1
# --- Audio Output Settings ---
# Controls the format and quality of the final audio file.
audio_output:
# The default audio format for the output file.
# - "wav": Highest quality, uncompressed, large file size. Best for processing.
# - "mp3": Good quality, compressed, small file size. Best for sharing and listening.
# - "opus": Excellent quality, highly compressed, smallest file size. Best for streaming/web.
format: wav
# The sample rate of the output audio in Hz.
# 24000 is the native sample rate of the KittenTTS model.
# Higher values (e.g., 48000) will resample the audio but won't add more detail.
sample_rate: 24000
# --- UI State Persistence ---
# Saves the state of the web interface between sessions so you don't lose your work.
ui_state:
# The last text that was entered into the main text box.
last_text: 'The solar system consists of the Sun and the astronomical objects gravitationally
bound in orbit around it.
Mars, often called the Red Planet, is the fourth planet from the Sun. It is a
terrestrial planet with a thin atmosphere, having surface features reminiscent
both of the impact craters of the Moon and the volcanoes, valleys, deserts, and
polar ice caps of Earth.
'
# The ID of the last voice you selected from the dropdown.
last_voice: expr-voice-2-m
# The last value you set for the "Chunk Size" slider, used for large text processing.
last_chunk_size: 200
# Remembers whether the "Split text into chunks" checkbox was enabled.
last_split_text_enabled: true
# Set to 'true' to permanently hide the one-time warning about voice consistency when using chunking.
hide_chunk_warning: false
# Set to 'true' to permanently hide the one-time general notice about generation quality.
hide_generation_warning: false
# The theme for the web interface. Options: "dark", "light".
theme: dark
# --- General UI Settings ---
# Controls the appearance and static elements of the web interface.
ui:
# The title that appears in the browser tab.
title: Kitten TTS Server
# Controls whether the language selection dropdown is visible in the UI.
# Set to 'false' to hide it if you only ever use one language.
show_language_select: true
# (For future use) If you had hundreds of voices, this would limit the number shown in the dropdown to prevent UI lag.
max_predefined_voices_in_dropdown: 50
# --- Debugging Settings ---
# Tools for troubleshooting and development.
debug:
# If 'true' and text chunking is enabled, the server will save each individual audio chunk
# as a separate file in the 'outputs' directory before they are stitched together.
# This is extremely useful for diagnosing issues with a specific part of a long text.
save_intermediate_audio: false