Chatterbox-TTS-Server icon indicating copy to clipboard operation
Chatterbox-TTS-Server copied to clipboard

languages

Open JOHNFFFEE opened this issue 1 year ago • 11 comments

Can you add other languages besides English?

JOHNFFFEE avatar Jun 18 '25 19:06 JOHNFFFEE

also very interested how to get https://huggingface.co/SebastianBodza/Kartoffelbox-v0.1 (german chatterbox model wip) going with this framework

erygvy avatar Jun 21 '25 14:06 erygvy

Try to install a clean copy into a separate folder. Do not run it yet. First change this settings in the config.yaml file in the root folder, from:

model: repo_id: ResembleAI/chatterbox

to

model: repo_id: SebastianBodza/Kartoffelbox-v0.1

Then when the app is started, it should download the German model. You should probably change the reference files to point to audio files with German speech.

Please inform me about the results.

devnen avatar Jun 27 '25 10:06 devnen

this didnt work for me with Docker. ( i deleted all caches and rebuilt the image ) but it would always download ResembleAI/chatterbox in hf_cache/hub (even though it logged that it tried the kartoffelbox hf repo from_pretrained - but i guess as there is only the t3 file and not the others there is some kind of fallback or maybe it was because of a missing Huggingfacce token, as the repo is gated. ) i now downloaded the file manually and replaced the blob in the hf_cache/hub directory with the Kartoffelbox t3 file Now it seems to work

meganoob1337 avatar Jun 28 '25 16:06 meganoob1337

Hello, i hope somebody can help me with this. I want to get the german model from kartoffelbox to work, but i don't know how.

I downloaded the model from kartoffelbox manually and put it in a folder on my drive. I also have german reference-audio files (about 10 mp3s of the same speaker) in a folder. For the audiofiles i created a folder inside the "reference-audio" folder named "german" and pointed the config to those paths. This is how my config.yaml looks like:

server: host: 0.0.0.0 port: 8004 use_ngrok: false use_auth: false auth_username: user auth_password: password log_file_path: logs\tts_server.log log_file_max_size_mb: 10 log_file_backup_count: 5 model: repo_id: SebastianBodza/Kartoffelbox-v0.1 tts_engine: device: cuda predefined_voices_path: voices reference_audio_path: reference_audio\german default_voice_id: Emily.wav paths: model_cache: D:\AI\Audio\Models\Chatterbox\german output: outputs generation_defaults: temperature: 0.8 exaggeration: 1.3 cfg_weight: 0.5 seed: 0 speed_factor: 1.0 language: en audio_output: format: wav sample_rate: 24000 max_reference_duration_sec: 30 ui_state: last_text: "Das ist ein Test des deutschen Sprachmodells von Kartoffelbox. Wir testen
\ hierf\xFCr, ob es m\xF6glich ist, auch Umlaute und spezielle Laute der deutschen
\ Sprache wiederzugeben, ohne etwas anderes als das Modell und die Referenz-Audiodatein
\ zu \xE4ndern. Mal sehen wie das heute so klingt." last_voice_mode: predefined last_predefined_voice: Emily.wav last_reference_file: none last_seed: 3000 last_chunk_size: 240 last_split_text_enabled: true hide_chunk_warning: false hide_generation_warning: true theme: dark ui: title: Chatterbox TTS Server show_language_select: true max_predefined_voices_in_dropdown: 50 debug: save_intermediate_audio: false

The first thing I found was that some characters in german, like "ü" or "ö" are not recognized in config.yaml when text is entered in the UI. It appears correct in the UI but not in the yaml file.

When I create Audio with the predefined voices there is a very strong english accent in the language. Like if the english model is reading the german text.

Please help us all getting the german model from kartoffelbox working with this great software. I really tried a lot, and with my very basic knowledge of software like this, i'm kinda stuck.

DarkNecrotic avatar Jul 13 '25 21:07 DarkNecrotic

btw when the server is starting it says the following at the end of the process:

2025-07-13 23:22:46 [INFO] engine: Successfully loaded TTS model using from_pretrained on cuda (expected from 'SebastianBodza/Kartoffelbox-v0.1' or library default). 2025-07-13 23:22:46 [INFO] engine: TTS Model loaded successfully on cuda. Engine sample rate: 24000 Hz. 2025-07-13 23:22:46 [INFO] server: TTS Model loaded successfully via engine. 2025-07-13 23:22:46 [INFO] server: Application startup sequence complete.

DarkNecrotic avatar Jul 13 '25 21:07 DarkNecrotic

Try to install a clean copy into a separate folder. Do not run it yet. First change this settings in the config.yaml file in the root folder, from:

model: repo_id: ResembleAI/chatterbox

to

model: repo_id: SebastianBodza/Kartoffelbox-v0.1

Then when the app is started, it should download the German model. You should probably change the reference files to point to audio files with German speech.

Please inform me about the results.

When using this method, it is still downloading the 3 standard files: ve.safetensors, t3_cfg.safetensors and s3gen.safetensors

this is what it says when starting up with the changed repo, like you mentioned: 2025-07-13 23:38:47 [INFO] main: Starting TTS Server directly on http://0.0.0.0:8004 2025-07-13 23:38:47 [INFO] main: API documentation will be available at http://0.0.0.0:8004/docs 2025-07-13 23:38:47 [INFO] main: Web UI will be available at http://0.0.0.0:8004/ INFO: Started server process [2144] INFO: Waiting for application startup. 2025-07-13 23:38:47 [INFO] server: TTS Server: Initializing application... 2025-07-13 23:38:47 [INFO] server: Configuration loaded. Log file at: D:\AI\Audio\Chatterbox-TTS-Server\logs\tts_server.log 2025-07-13 23:38:47 [INFO] engine: CUDA requested and functional. Using CUDA. 2025-07-13 23:38:47 [INFO] engine: Final device selection: cuda 2025-07-13 23:38:47 [INFO] engine: Attempting to load model directly using from_pretrained (expected from Hugging Face repository: SebastianBodza/Kartoffelbox-v0.1 or library default). ve.safetensors: 100%|█████████████████████████████████████████████████████████████| 5.70M/5.70M [00:02<00:00, 2.26MB/s] t3_cfg.safetensors: 100%|█████████████████████████████████████████████████████████| 2.13G/2.13G [15:46<00:00, 2.25MB/s] s3gen.safetensors: 100%|██████████████████████████████████████████████████████████| 1.06G/1.06G [07:41<00:00, 2.29MB/s] tokenizer.json: 25.5kB [00:00, 2.52MB/s] conds.pt: 100%|█████████████████████████████████████████████████████████████████████| 107k/107k [00:00<00:00, 1.77MB/s]

DarkNecrotic avatar Jul 13 '25 22:07 DarkNecrotic

this didnt work for me with Docker. ( i deleted all caches and rebuilt the image ) but it would always download ResembleAI/chatterbox in hf_cache/hub (even though it logged that it tried the kartoffelbox hf repo from_pretrained - but i guess as there is only the t3 file and not the others there is some kind of fallback or maybe it was because of a missing Huggingfacce token, as the repo is gated. ) i now downloaded the file manually and replaced the blob in the hf_cache/hub directory with the Kartoffelbox t3 file Now it seems to work

Can you tell how you replaced it?

In my .cache\huggingface\hub\models--ResembleAI--chatterbox\blobs folder there is are some files without file-endings consisting only of numbers and letters, but the filesizes are the same as from the three files downloaded when launching first time. I just don't know how you replaced them.

DarkNecrotic avatar Jul 13 '25 22:07 DarkNecrotic

this didnt work for me with Docker. ( i deleted all caches and rebuilt the image ) but it would always download ResembleAI/chatterbox in hf_cache/hub (even though it logged that it tried the kartoffelbox hf repo from_pretrained - but i guess as there is only the t3 file and not the others there is some kind of fallback or maybe it was because of a missing Huggingfacce token, as the repo is gated. ) i now downloaded the file manually and replaced the blob in the hf_cache/hub directory with the Kartoffelbox t3 file Now it seems to work

Can you tell how you replaced it?

In my .cache\huggingface\hub\models--ResembleAI--chatterbox\blobs folder there is are some files without file-endings consisting only of numbers and letters, but the filesizes are the same as from the three files downloaded when launching first time. I just don't know how you replaced them. If somebody doesn't know where to look, the .cache folder is on c:\user<your username>\

Ok. This is some kind of Solution: I went to the folder .cache\huggingface\hub\models--ResembleAI--chatterbox\snapshots\ and in the numbered folder, there is the t3_cfg.safetensors symlink-file. I renamed that to BACKUPt3_cfg.safetensors. Put the t3_kartoffelbox.safetensors into that folder and renamed that to t3_cfg.safetensors and it seems to work now.

But it's strange why the other method is not working. Somehow it has to be possible to just direct the chatterbox-tts-server program to those files on my harddrive. I just don't know how.

DarkNecrotic avatar Jul 13 '25 22:07 DarkNecrotic

yeah thats how i did it aswell i think :D at least it kinda works like that now

meganoob1337 avatar Jul 14 '25 09:07 meganoob1337

also would like to use this model in the chatterbox-tts-server: https://huggingface.co/SebastianBodza/Kartoffelbox-v0.1

Tryed with the how to from above with replacing the files but i stuck how to use it. How can use and select then this model, after placeing them in the local huggingface hub? How can i generate a wav file with this model? Also via the GUI? When i am trying to use the GUI it is generating always different strange sounding languages.

enspiro avatar Apr 05 '26 18:04 enspiro

Closing as a duplicate of #67 / #77. Multilingual support is in, set model.repo_id: chatterbox-multilingual in config.yaml and use the language dropdown in the Web UI (22 languages).

devnen avatar May 11 '26 14:05 devnen