TTS engine failed to synthesize audio for chunk 1.
Hello,
I was using the repo successfully until today when, everytime I try to run it, it freezes and do not give me the audio in the end of the UI. It signals nothing of error, it just returns me when it was. I try to generate it again and I receive the following: "TTS engine failed to synthesize audio for chunk 1."
The server works fine all the time.
What could this error be related to?
Thanks for the great work π
Without the server or client logs it is difficult to tell. Can you right-click and select Inspect to open the inspect tool in Chrome. Then click on the Console tab. Try to generate audio and see if any errors or warnings are displayed in the Console section.
Same issue here my logs from console below, using cuda / nvidia install
2025-06-28 22:01:16 [INFO] server: Using predefined voice: Emily.wav 2025-06-28 22:01:16 [INFO] server: Splitting text into chunks of size ~120. 2025-06-28 22:01:16 [INFO] utils: A single segment (length 191) exceeds chunk_size 120. It will form its own chunk. 2025-06-28 22:01:16 [INFO] utils: Text chunking complete. Generated 3 chunk(s). 2025-06-28 22:01:16 [INFO] server: Synthesizing chunk 1/3... 2025-06-28 22:01:16 [INFO] engine: Applying user-provided seed for generation: 42 2025-06-28 22:01:16 [INFO] engine: Global seed set to: 42 2025-06-28 22:01:17 [WARNING] root: Reference mel length is not equal to 2 * reference token length.
/usr/lib/python3.10/contextlib.py:103: FutureWarning: torch.backends.cuda.sdp_kernel() is deprecated. In the future, this context manager will be removed. Please see torch.nn.attention.sdpa_kernel() for the new context manager, with updated signature.
self.gen = func(*args, **kwds)
sdpa attention does not support output_attentions=True or head_mask. Please set your attention to eager if you want any of these features.
2025-06-28 22:01:17 [ERROR] engine: Error during TTS synthesis: 'NoneType' object has no attribute 'cpu'
Traceback (most recent call last):
File "home/code/python/chatterbox/Chatterbox-TTS-Server/engine.py", line 214, in synthesize
wav_tensor = chatterbox_model.generate(
File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/chatterbox/tts.py", line 243, in generate
speech_tokens = self.t3.inference(
File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/chatterbox/models/t3/t3.py", line 318, in inference
output = self.patched_model(
File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/chatterbox/models/t3/inference/t3_hf_backend.py", line 95, in forward
tfmr_out = self.model(
File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/transformers/utils/generic.py", line 943, in wrapper
output = func(self, *args, **kwargs)
File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 440, in forward
layer_outputs = decoder_layer(
File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/transformers/modeling_layers.py", line 83, in call
return super().call(*args, **kwargs)
File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 290, in forward
hidden_states, self_attn_weights = self.self_attn(
File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1844, in _call_impl
return inner()
File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1803, in inner
hook_result = hook(self, args, result)
File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/chatterbox/models/t3/inference/alignment_stream_analyzer.py", line 74, in attention_forward_hook
step_attention = output[1].cpu() # (B, 16, N, N)
AttributeError: 'NoneType' object has no attribute 'cpu'
2025-06-28 22:01:17 [ERROR] server: TTS engine failed to synthesize audio for chunk 1.
2025-06-28 22:02:47 [INFO] server: Request received for /save_settings.
2025-06-28 22:02:47 [INFO] config: TTS processing device resolved to: cuda
2025-06-28 22:02:47 [INFO] config: Configuration successfully saved to config.yaml
2025-06-28 22:02:47 [INFO] config: Configuration updated, saved, and re-resolved successfully.
2025-06-28 22:02:47 [INFO] server: Request received for /api/ui/initial-data.
2025-06-28 22:02:47 [INFO] utils: Found 28 predefined voices in home/code/python/chatterbox/Chatterbox-TTS-Server/voices
2025-06-28 22:02:57 [INFO] server: Request received for /save_settings.
2025-06-28 22:02:57 [INFO] config: TTS processing device resolved to: cuda
2025-06-28 22:02:57 [INFO] config: Configuration successfully saved to config.yaml
2025-06-28 22:02:57 [INFO] config: Configuration updated, saved, and re-resolved successfully.
2025-06-28 22:03:02 [INFO] server: Received /tts request: mode='predefined', format='wav'
2025-06-28 22:03:02 [INFO] server: Using predefined voice: Emily.wav
2025-06-28 22:03:02 [INFO] server: Splitting text into chunks of size ~120.
2025-06-28 22:03:02 [INFO] utils: A single segment (length 191) exceeds chunk_size 120. It will form its own chunk.
2025-06-28 22:03:02 [INFO] utils: Text chunking complete. Generated 3 chunk(s).
2025-06-28 22:03:02 [INFO] server: Synthesizing chunk 1/3...
2025-06-28 22:03:02 [INFO] engine: Applying user-provided seed for generation: 42
2025-06-28 22:03:02 [INFO] engine: Global seed set to: 42
2025-06-28 22:03:02 [WARNING] root: Reference mel length is not equal to 2 * reference token length.
2025-06-28 22:03:02 [ERROR] engine: Error during TTS synthesis: 'NoneType' object has no attribute 'cpu' Traceback (most recent call last): File "home/code/python/chatterbox/Chatterbox-TTS-Server/engine.py", line 214, in synthesize wav_tensor = chatterbox_model.generate( File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/chatterbox/tts.py", line 243, in generate speech_tokens = self.t3.inference( File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context return func(*args, **kwargs) File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/chatterbox/models/t3/t3.py", line 318, in inference output = self.patched_model( File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl return self._call_impl(*args, **kwargs) File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl return forward_call(*args, **kwargs) File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context return func(*args, **kwargs) File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/chatterbox/models/t3/inference/t3_hf_backend.py", line 95, in forward tfmr_out = self.model( File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl return self._call_impl(*args, **kwargs) File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl return forward_call(*args, **kwargs) File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/transformers/utils/generic.py", line 943, in wrapper output = func(self, *args, **kwargs) File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 440, in forward layer_outputs = decoder_layer( File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/transformers/modeling_layers.py", line 83, in call return super().call(*args, **kwargs) File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl return self._call_impl(*args, **kwargs) File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl return forward_call(*args, **kwargs) File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 290, in forward hidden_states, self_attn_weights = self.self_attn( File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl return self._call_impl(*args, **kwargs) File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1844, in _call_impl return inner() File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1803, in inner hook_result = hook(self, args, result) File "home/code/python/chatterbox/.venv/lib/python3.10/site-packages/chatterbox/models/t3/inference/alignment_stream_analyzer.py", line 74, in attention_forward_hook step_attention = output[1].cpu() # (B, 16, N, N) AttributeError: 'NoneType' object has no attribute 'cpu' 2025-06-28 22:03:02 [ERROR] server: TTS engine failed to synthesize audio for chunk 1. 2025-06-28 22:03:10 [INFO] server: Request received for /save_settings.
Without the server or client logs it is difficult to tell. Can you right-click and select Inspect to open the inspect tool in Chrome. Then click on the Console tab. Try to generate audio and see if any errors or warnings are displayed in the Console section.
I solved the issue by lowering the number of characters of the text. For some reason T4 GPU with Colab crashes if there are more than 15k characters in the text box. I do 10k-13k max now and it has worked just fine.
Thanks for documenting the fix. This will definitely help others hitting the same crash.
I am still experiencing this trying to run via cuda. Copy of the console message below, not sure if its just me not using a correct setting however. Any tips that i might be missing a config parameter?
the gpu is recognized in the venv as below;
python -c "import torch; print(f'PyTorch version: {torch.version}'); print(f'CUDA available: {torch.cuda.is_available()}'); print(f'Device name: {torch.cuda.get_device_name(0) if torch.cuda.is_available() else None}')" PyTorch version: 2.5.1+cu121 CUDA available: True Device name: NVIDIA GeForce RTX 3070 Laptop GPU
TTS Generation Error: Error: TTS engine failed to synthesize audio for chunk 1. submitTTSRequest http://localhost:8004/script.js:642 script.js:656:21 submitTTSRequest http://localhost:8004/script.js:656
I am still experiencing this trying to run via cuda. Copy of the console message below, not sure if its just me not using a correct setting however. Any tips that i might be missing a config parameter?
the gpu is recognized in the venv as below;
python -c "import torch; print(f'PyTorch version: {torch.version}'); print(f'CUDA available: {torch.cuda.is_available()}'); print(f'Device name: {torch.cuda.get_device_name(0) if torch.cuda.is_available() else None}')" PyTorch version: 2.5.1+cu121 CUDA available: True Device name: NVIDIA GeForce RTX 3070 Laptop GPU
TTS Generation Error: Error: TTS engine failed to synthesize audio for chunk 1. submitTTSRequest http://localhost:8004/script.js:642 script.js:656:21 submitTTSRequest http://localhost:8004/script.js:656
I think you're hitting this. I implemented the fix in the issue and that fixed it for me. https://github.com/resemble-ai/chatterbox/issues/106
Thanks for that, looks to be working now, have checked nvidia-smi and it's utilizing the gpu to generate also when running appreciate the fix.
I am still experiencing this trying to run via cuda. Copy of the console message below, not sure if its just me not using a correct setting however. Any tips that i might be missing a config parameter? the gpu is recognized in the venv as below; python -c "import torch; print(f'PyTorch version: {torch.version}'); print(f'CUDA available: {torch.cuda.is_available()}'); print(f'Device name: {torch.cuda.get_device_name(0) if torch.cuda.is_available() else None}')" PyTorch version: 2.5.1+cu121 CUDA available: True Device name: NVIDIA GeForce RTX 3070 Laptop GPU TTS Generation Error: Error: TTS engine failed to synthesize audio for chunk 1. submitTTSRequest http://localhost:8004/script.js:642 script.js:656:21 submitTTSRequest http://localhost:8004/script.js:656
I think you're hitting this. I implemented the fix in the issue and that fixed it for me. resemble-ai/chatterbox#106
Thanks, I was also having this issue and implementing that fixed it for me.
@desantienator I have no idea how to fix this issue. Could someone who knowsΒ helpΒ meΒ out?
@desantienator I have no idea how to fix this issue. Could someone who knows help me out?
Hey Mate, check out this post https://github.com/resemble-ai/chatterbox/issues/106#issuecomment-2927182027
basically you need to edit alignment_stream_analyzer.py and add ewplace all code under this function with
def attention_forward_hook(module, input, output): """ SeeLlamaAttention.forward; the output is a 3-tuple: attn_output, attn_weights, past_key_value. """ if output is not None and isinstance(output, tuple) and len(output) > 1 and output[1] is not None: attn_weights = output[1] step_attention = attn_weights.cpu() # (B, H, N, N) self.last_aligned_attn = step_attention[0].mean(0) # (N, N) else: self.last_aligned_attn = None
@desantienator
Thank you Mate , I ran this on Google Colab. Iβm getting that issue there. Could you pleaseΒ helpΒ meΒ fixΒ it?
TTS engine failed to synthesize audio for chunk 1
Is there a discordserver where I can get help? since the owner here does not pick up the messages
@devnen
I still havenβt been able to find a solution for that either. If someone has managed to fix it, could you please let us know?
I implemented @desantienator's fix and it helped the initial generations. However, if I switch to Clone mode, it happens again and then remains broken until I restart the server. This was all working fine yesterday before a Windows update.
2025-07-09 13:48:04 [INFO] server: Using reference audio for cloning: blaise/normal_1.mp3
2025-07-09 13:48:04 [INFO] server: Processing text as a single chunk (splitting not enabled or text too short).
2025-07-09 13:48:04 [INFO] server: Synthesizing chunk 1/1...
2025-07-09 13:48:04 [INFO] engine: Using default (potentially random) generation behavior as seed is 0.
2025-07-09 13:48:04 [ERROR] engine: Error during TTS synthesis: CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
Traceback (most recent call last):
File "C:\Servers\Chatterbox-TTS-Server\engine.py", line 214, in synthesize
wav_tensor = chatterbox_model.generate(
File "C:\Servers\Chatterbox-TTS-Server\.venv\lib\site-packages\chatterbox\tts.py", line 217, in generate
self.prepare_conditionals(audio_prompt_path, exaggeration=exaggeration)
File "C:\Servers\Chatterbox-TTS-Server\.venv\lib\site-packages\chatterbox\tts.py", line 189, in prepare_conditionals
s3gen_ref_dict = self.s3gen.embed_ref(s3gen_ref_wav, S3GEN_SR, device=self.device)
File "C:\Servers\Chatterbox-TTS-Server\.venv\lib\site-packages\chatterbox\models\s3gen\s3gen.py", line 126, in embed_ref
ref_wav = ref_wav.to(device)
RuntimeError: CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.
2025-07-09 13:48:04 [ERROR] server: TTS engine failed to synthesize audio for chunk 1.```
I implemented @desantienator's fix and it helped the initial generations. However, if I switch to Clone mode, it happens again and then remains broken until I restart the server. This was all working fine yesterday before a Windows update.
It appears there are two distinct issues at play here, and the fix applied by desantienator is likely not the cause of the new problem @duringleaves is experiencing.
I have edited alignment_stream_analyzer.py and applied the fix for the "'NoneType' object has no attribute 'cpu'" error and this should now work.
@duringleaves's New Problem: The error duringleaves is encountering is a RuntimeError: CUDA error: device-side assert triggered. This is a more general-purpose error from the CUDA runtime, and it's unrelated to the previous NoneType error. The stack trace for this new error points to a completely different part of the codebase, specifically within the voice cloning functionality.
It seems like the recent Windows update might have affected your GPU driver or environment. First try a different reference audio file. The issue could be specific to the format or contents of the .mp3 file you're using. Then try to re-install dependencies. The update may have affected your environment. Please try running pip install -r requirements-nvidia.txt again.
Try using CPU as a fallback to confirm whether the issue is GPU related. You can temporarily switch the server to run in CPU mode. This can be done by editing the config.yaml file and setting the device to 'cpu'. If the voice cloning works on the CPU, it confirms the problem is with the GPU, driver, or CUDA environment.
I also have a RTX 3070 (Desktop), had the same error message. For me, it was setting the temperature to absolute zero via the browser interface at localhost:8004. After that, every attempt to generate, no matter what settings, just gave the "TTS engine failed to synthesize audio for chunk 1" message. Restarting fixed it.
Lesson: Never set the temperature to absolute 0 (at least not with Nvidia).
I got the same error using a 3080.
2026-01-27 17:38:12 [INFO] engine: Synthesizing with standard English model. Sampling: 23%|ββββββββββββββββ | 228/1000 [00:17<00:57, 13.36it/s]2026-01-27 17:38:30 [INFO] chatterbox.models.t3.t3: β
EOS token detected! Stopping generation at step 229 Sampling: 23%|ββββββββββββββββ | 228/1000 [00:17<01:00, 12.84it/s] 2026-01-27 17:38:32 [INFO] server: Synthesizing chunk 11/22... 2026-01-27 17:38:32 [INFO] engine: Applying user-provided seed for generation: 42 2026-01-27 17:38:32 [INFO] engine: Global seed set to: 42 2026-01-27 17:38:32 [INFO] engine: Synthesizing with standard English model. Sampling: 40%|ββββββββββββββββββββββββββββ | 399/1000 [00:33<00:50, 11.92it/s]2026-01-27 17:39:06 [INFO] chatterbox.models.t3.t3: β
EOS token detected! Stopping generation at step 401 Sampling: 40%|ββββββββββββββββββββββββββββ | 400/1000 [00:33<00:49, 12.05it/s] 2026-01-27 17:39:09 [INFO] server: Synthesizing chunk 12/22... 2026-01-27 17:39:09 [INFO] engine: Applying user-provided seed for generation: 42 2026-01-27 17:39:09 [INFO] engine: Global seed set to: 42 2026-01-27 17:39:09 [INFO] engine: Synthesizing with standard English model. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [0,0,0] Assertion srcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [1,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [2,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [3,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [4,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [5,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [6,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [7,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [8,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [9,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [10,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [11,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [12,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [13,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [14,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [15,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [16,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [17,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [18,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [19,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [20,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [21,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [22,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [23,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [24,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [25,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [26,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [27,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [28,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [29,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [30,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [262,0,0], thread: [31,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [0,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [1,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [2,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [3,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [4,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [5,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [6,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [7,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [8,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [9,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [10,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [11,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [12,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [13,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [14,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [15,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [16,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [17,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [18,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [19,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [20,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [21,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [22,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [23,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [24,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [25,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [26,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [27,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [28,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [29,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [30,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [31,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [96,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [97,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [98,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [99,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [100,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [101,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [102,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [103,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [104,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [105,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [106,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [107,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [108,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [109,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [110,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [111,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [112,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [113,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [114,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [115,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [116,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [117,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [118,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [119,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [120,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [121,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [122,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [123,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [124,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [125,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [126,0,0] AssertionsrcIndex < srcSelectDimSizefailed. C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [126,0,0], thread: [127,0,0] AssertionsrcIndex < srcSelectDimSizefailed. 2026-01-27 17:39:09 [ERROR] engine: Error during TTS synthesis: CUDA error: device-side assert triggered Compile withTORCH_USE_CUDA_DSAto enable device-side assertions. Traceback (most recent call last): File "A:\Chatterbox TTS\engine.py", line 409, in synthesize wav_tensor = active_model.generate( File "A:\Chatterbox TTS\venv\lib\site-packages\chatterbox\tts.py", line 246, in generate speech_tokens = self.t3.inference( File "A:\Chatterbox TTS\venv\lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context return func(*args, **kwargs) File "A:\Chatterbox TTS\venv\lib\site-packages\chatterbox\models\t3\t3.py", line 245, in inference embeds, len_cond = self.prepare_input_embeds( File "A:\Chatterbox TTS\venv\lib\site-packages\chatterbox\models\t3\t3.py", line 101, in prepare_input_embeds text_emb = text_emb + self.text_pos_emb(text_tokens) File "A:\Chatterbox TTS\venv\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl return self._call_impl(*args, **kwargs) File "A:\Chatterbox TTS\venv\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl return forward_call(*args, **kwargs) File "A:\Chatterbox TTS\venv\lib\site-packages\chatterbox\models\t3\modules\learned_pos_emb.py", line 19, in forward return self.emb(torch.arange(0, sl, device=x.device)) File "A:\Chatterbox TTS\venv\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl return self._call_impl(*args, **kwargs) File "A:\Chatterbox TTS\venv\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl return forward_call(*args, **kwargs) File "A:\Chatterbox TTS\venv\lib\site-packages\torch\nn\modules\sparse.py", line 190, in forward return F.embedding( File "A:\Chatterbox TTS\venv\lib\site-packages\torch\nn\functional.py", line 2551, in embedding return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse) RuntimeError: CUDA error: device-side assert triggered Compile withTORCH_USE_CUDA_DSA` to enable device-side assertions.
2026-01-27 17:39:09 [ERROR] server: TTS engine failed to synthesize audio for chunk 12.`
EDIT: Added some extra logging logic;
`Starting the TTS Server... Virtual environment activated. Starting server... To stop the server, press CTRL+C in this window.
2026-01-27 18:05:05 [INFO] main: Starting TTS Server directly on http://0.0.0.0:8004
2026-01-27 18:05:05 [INFO] main: API documentation will be available at http://0.0.0.0:8004/docs
2026-01-27 18:05:05 [INFO] main: Web UI will be available at http://0.0.0.0:8004/
INFO: Started server process [1452]
INFO: Waiting for application startup.
2026-01-27 18:05:05 [INFO] server: TTS Server: Initializing application...
2026-01-27 18:05:05 [INFO] server: Configuration loaded. Log file at: A:\Chatterbox TTS\logs\tts_server.log
2026-01-27 18:05:06 [INFO] engine: CUDA requested and functional. Using CUDA.
2026-01-27 18:05:06 [INFO] engine: Final device selection: cuda
2026-01-27 18:05:06 [INFO] engine: Attempting to load model directly using from_pretrained (expected from Hugging Face repository: ResembleAI/chatterbox or library default).
A:\Chatterbox TTS\venv\lib\site-packages\diffusers\models\lora.py:393: FutureWarning: LoRACompatibleLinear is deprecated and will be removed in version 1.0.0. Use of LoRACompatibleLinear is deprecated. Please switch to PEFT backend by installing PEFT: pip install peft.
deprecate("LoRACompatibleLinear", "1.0.0", deprecation_message)
2026-01-27 18:05:11 [INFO] root: input frame rate=25
A:\Chatterbox TTS\venv\lib\site-packages\perth\perth_net\perth_net_implicit\checkpoint_manager.py:36: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
return torch.load(ckpts[-1], map_location="cpu")
loaded PerthNet (Implicit) at step 250,000
2026-01-27 18:05:12 [INFO] engine: Successfully loaded TTS model using from_pretrained on cuda (expected from 'ResembleAI/chatterbox' or library default).
2026-01-27 18:05:12 [INFO] engine: TTS Model loaded successfully on cuda. Engine sample rate: 24000 Hz.
2026-01-27 18:05:12 [INFO] server: TTS Model loaded successfully via engine.
2026-01-27 18:05:12 [INFO] server: Application startup sequence complete.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8004 (Press CTRL+C to quit)
2026-01-27 18:05:14 [INFO] server: Attempting to open web browser to: http://localhost:8004/
2026-01-27 18:05:14 [INFO] server: Request received for main UI page ('/').
2026-01-27 18:05:14 [INFO] server: Request received for /api/ui/initial-data.
2026-01-27 18:05:14 [INFO] utils: Found 28 predefined voices in A:\Chatterbox TTS\voices
2026-01-27 18:05:20 [INFO] server: Received /tts request: mode='clone', format='mp3'
2026-01-27 18:05:20 [INFO] server: Using reference audio for cloning: Marcus_Aurelius_28_second_sample.wav
2026-01-27 18:05:20 [INFO] server: Splitting text into chunks of size ~250.
2026-01-27 18:05:20 [INFO] utils: A single segment (length 1772) exceeds chunk_size 250. It will form its own chunk.
2026-01-27 18:05:20 [INFO] utils: A single segment (length 1064) exceeds chunk_size 250. It will form its own chunk.
2026-01-27 18:05:20 [INFO] utils: A single segment (length 10525) exceeds chunk_size 250. It will form its own chunk.
2026-01-27 18:05:20 [INFO] utils: A single segment (length 256) exceeds chunk_size 250. It will form its own chunk.
2026-01-27 18:05:20 [INFO] utils: Text chunking complete. Generated 22 chunk(s).
2026-01-27 18:05:20 [INFO] server: Synthesizing chunk 1/22...
2026-01-27 18:05:20 [INFO] engine: Applying user-provided seed for generation: 42
2026-01-27 18:05:20 [INFO] engine: Global seed set to: 42
2026-01-27 18:05:20 [INFO] engine: Synthesizing with standard English model.
2026-01-27 18:05:20 [INFO] engine: === Processing text ===
2026-01-27 18:05:20 [INFO] engine: Text length: 64 characters
2026-01-27 18:05:20 [INFO] engine: Text preview: 13. The Czech-Soviet Mutual Assistance Pact, signed 16 May 1935.
C:\Users\Roy\AppData\Local\Programs\Python\Python310\lib\contextlib.py:103: FutureWarning: torch.backends.cuda.sdp_kernel() is deprecated. In the future, this context manager will be removed. Please see torch.nn.attention.sdpa_kernel() for the new context manager, with updated signature.
self.gen = func(*args, **kwds)
A:\Chatterbox TTS\venv\lib\site-packages\transformers\utils\generic.py:1014: UserWarning: output_attentions=True is not supported with attn_implementation other than ['eager', 'eager_paged', 'flex_attention']. Please use model.set_attn_implementation('eager') to enable capturing attention outputs.
warnings.warn(
sdpa attention does not support output_attentions=True or head_mask. Please set your attention to eager if you want any of these features.
Sampling: 16%|ββββββββββββ | 165/1000 [00:12<01:12, 11.51it/s]2026-01-27 18:05:34 [INFO] chatterbox.models.t3.t3: β
EOS token detected! Stopping generation at step 167
Sampling: 17%|ββββββββββββ | 166/1000 [00:12<01:03, 13.14it/s]
2026-01-27 18:05:36 [INFO] server: Synthesizing chunk 2/22...
2026-01-27 18:05:36 [INFO] engine: Applying user-provided seed for generation: 42
2026-01-27 18:05:36 [INFO] engine: Global seed set to: 42
2026-01-27 18:05:36 [INFO] engine: Synthesizing with standard English model.
2026-01-27 18:05:36 [INFO] engine: === Processing text ===
2026-01-27 18:05:36 [INFO] engine: Text length: 1772 characters
2026-01-27 18:05:36 [INFO] engine: Text preview: 14. In reaction to the French-Soviet Mutual Assistance Pact that had
become effective only a week previously, and wary of the growing
strength of the Communists in France (the βPeopleβs Frontβ since
N
Sampling: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1000/1000 [01:27<00:00, 11.43it/s]
2026-01-27 18:07:08 [INFO] server: Synthesizing chunk 3/22...
2026-01-27 18:07:08 [INFO] engine: Applying user-provided seed for generation: 42
2026-01-27 18:07:08 [INFO] engine: Global seed set to: 42
2026-01-27 18:07:08 [INFO] engine: Synthesizing with standard English model.
2026-01-27 18:07:08 [INFO] engine: === Processing text ===
2026-01-27 18:07:08 [INFO] engine: Text length: 45 characters
2026-01-27 18:07:08 [INFO] engine: Text preview: 15. August 1936: Soviet army doubled in size.
Sampling: 11%|ββββββββ | 111/1000 [00:06<01:11, 12.46it/s]2026-01-27 18:07:15 [INFO] chatterbox.models.t3.t3: β
EOS token detected! Stopping generation at step 113
Sampling: 11%|ββββββββ | 112/1000 [00:06<00:53, 16.62it/s]
2026-01-27 18:07:17 [INFO] server: Synthesizing chunk 4/22...
2026-01-27 18:07:17 [INFO] engine: Applying user-provided seed for generation: 42
2026-01-27 18:07:17 [INFO] engine: Global seed set to: 42
2026-01-27 18:07:17 [INFO] engine: Synthesizing with standard English model.
2026-01-27 18:07:17 [INFO] engine: === Processing text ===
2026-01-27 18:07:17 [INFO] engine: Text length: 1064 characters
2026-01-27 18:07:17 [INFO] engine: Text preview: 16. Sustained rearmament on the part of Czecho-Slovakia, Poland and
the USSR, as well France and Britain.
Franceβs attachment to her idea of βnational securityβ also had
harmful effects. A sovereign n
Sampling: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 1000/1000 [01:06<00:00, 14.97it/s]
2026-01-27 18:08:28 [INFO] server: Synthesizing chunk 5/22...
2026-01-27 18:08:28 [INFO] engine: Applying user-provided seed for generation: 42
2026-01-27 18:08:28 [INFO] engine: Global seed set to: 42
2026-01-27 18:08:28 [INFO] engine: Synthesizing with standard English model.
2026-01-27 18:08:28 [INFO] engine: === Processing text ===
2026-01-27 18:08:28 [INFO] engine: Text length: 96 characters
2026-01-27 18:08:28 [INFO] engine: Text preview: 1. France herself, that is, the mother country with colonies of
nearly 100 million human beings.
Sampling: 16%|ββββββββββββ | 163/1000 [00:09<00:50, 16.74it/s]2026-01-27 18:08:38 [INFO] chatterbox.models.t3.t3: β
EOS token detected! Stopping generation at step 165
Sampling: 16%|ββββββββββββ | 164/1000 [00:09<00:50, 16.54it/s]
2026-01-27 18:08:40 [INFO] server: Synthesizing chunk 6/22...
2026-01-27 18:08:40 [INFO] engine: Applying user-provided seed for generation: 42
2026-01-27 18:08:40 [INFO] engine: Global seed set to: 42
2026-01-27 18:08:40 [INFO] engine: Synthesizing with standard English model.
2026-01-27 18:08:40 [INFO] engine: === Processing text ===
2026-01-27 18:08:40 [INFO] engine: Text length: 211 characters
2026-01-27 18:08:40 [INFO] engine: Text preview: 2. A defence budget which, from the beginning, was double that
of Germany relative to the gross domestic product,41 to say
nothing of the fact that she had been alone in adopting a policy
of re-armame
Sampling: 32%|βββββββββββββββββββββββ | 317/1000 [00:20<00:43, 15.78it/s]2026-01-27 18:09:01 [INFO] chatterbox.models.t3.t3: β
EOS token detected! Stopping generation at step 319
Sampling: 32%|βββββββββββββββββββββββ | 318/1000 [00:20<00:44, 15.33it/s]
2026-01-27 18:09:03 [INFO] server: Synthesizing chunk 7/22...
2026-01-27 18:09:03 [INFO] engine: Applying user-provided seed for generation: 42
2026-01-27 18:09:03 [INFO] engine: Global seed set to: 42
2026-01-27 18:09:03 [INFO] engine: Synthesizing with standard English model.
2026-01-27 18:09:03 [INFO] engine: === Processing text ===
2026-01-27 18:09:03 [INFO] engine: Text length: 177 characters
2026-01-27 18:09:03 [INFO] engine: Text preview: 3. The numerical superiority of military forces (in 1935, when
Hitler could mobilise 36 divisions, France had 41 divisions). [41] 4. A lead in experiences in weapons technology.
Sampling: 36%|ββββββββββββββββββββββββββ | 360/1000 [00:23<00:36, 17.50it/s]2026-01-27 18:09:27 [INFO] chatterbox.models.t3.t3: β
EOS token detected! Stopping generation at step 361
Sampling: 36%|ββββββββββββββββββββββββββ | 360/1000 [00:23<00:42, 15.11it/s]
2026-01-27 18:09:29 [INFO] server: Synthesizing chunk 8/22...
2026-01-27 18:09:29 [INFO] engine: Applying user-provided seed for generation: 42
2026-01-27 18:09:29 [INFO] engine: Global seed set to: 42
2026-01-27 18:09:29 [INFO] engine: Synthesizing with standard English model.
2026-01-27 18:09:29 [INFO] engine: === Processing text ===
2026-01-27 18:09:29 [INFO] engine: Text length: 152 characters
2026-01-27 18:09:29 [INFO] engine: Text preview: 5. At the time the largest and most modern fortifications on her
eastern border β the Maginot Line. 6. The adjacent demilitarised zone of the Rhineland.
Sampling: 26%|βββββββββββββββββββ | 262/1000 [00:16<00:52, 14.12it/s]2026-01-27 18:09:46 [INFO] chatterbox.models.t3.t3: β
EOS token detected! Stopping generation at step 264
Sampling: 26%|βββββββββββββββββββ | 263/1000 [00:17<00:47, 15.40it/s]
2026-01-27 18:09:48 [INFO] server: Synthesizing chunk 9/22...
2026-01-27 18:09:48 [INFO] engine: Applying user-provided seed for generation: 42
2026-01-27 18:09:48 [INFO] engine: Global seed set to: 42
2026-01-27 18:09:48 [INFO] engine: Synthesizing with standard English model.
2026-01-27 18:09:48 [INFO] engine: === Processing text ===
2026-01-27 18:09:48 [INFO] engine: Text length: 240 characters
2026-01-27 18:09:48 [INFO] engine: Text preview: 7. The very fact of being a victorious nation of WWI, i.e. having
been a decision-maker in Europe after the First World War. 8. The Versailles Treaty and, on top of that, the guarantee andarbitration
Sampling: 40%|ββββββββββββββββββββββββββββ | 396/1000 [00:24<00:45, 13.28it/s]2026-01-27 18:10:12 [INFO] chatterbox.models.t3.t3: β
EOS token detected! Stopping generation at step 398
Sampling: 40%|βββββββββββββββββββββββββββββ | 397/1000 [00:24<00:37, 16.16it/s]
2026-01-27 18:10:15 [INFO] server: Synthesizing chunk 10/22...
2026-01-27 18:10:15 [INFO] engine: Applying user-provided seed for generation: 42
2026-01-27 18:10:15 [INFO] engine: Global seed set to: 42
2026-01-27 18:10:15 [INFO] engine: Synthesizing with standard English model.
2026-01-27 18:10:15 [INFO] engine: === Processing text ===
2026-01-27 18:10:15 [INFO] engine: Text length: 145 characters
2026-01-27 18:10:15 [INFO] engine: Text preview: , which was
extremely generous and unilaterally interpreted, almost as if
given full power of attorney. 9. The Covenant of the League of Nations.
Sampling: 23%|ββββββββββββββββ | 227/1000 [00:14<00:58, 13.24it/s]2026-01-27 18:10:29 [INFO] chatterbox.models.t3.t3: β
EOS token detected! Stopping generation at step 229
Sampling: 23%|βββββββββββββββββ | 228/1000 [00:14<00:48, 15.97it/s]
2026-01-27 18:10:31 [INFO] server: Synthesizing chunk 11/22...
2026-01-27 18:10:31 [INFO] engine: Applying user-provided seed for generation: 42
2026-01-27 18:10:31 [INFO] engine: Global seed set to: 42
2026-01-27 18:10:31 [INFO] engine: Synthesizing with standard English model.
2026-01-27 18:10:31 [INFO] engine: === Processing text ===
2026-01-27 18:10:31 [INFO] engine: Text length: 232 characters
2026-01-27 18:10:31 [INFO] engine: Text preview: 10. The benevolent attitude of all leading League of Nations
member states, as well as that of the United States of America
and the British Dominions. 11. The military alliances with Great Britain, 12
Sampling: 40%|βββββββββββββββββββββββββββββ | 400/1000 [00:24<00:35, 16.77it/s]2026-01-27 18:10:55 [INFO] chatterbox.models.t3.t3: β
EOS token detected! Stopping generation at step 401
Sampling: 40%|βββββββββββββββββββββββββββββ | 400/1000 [00:24<00:36, 16.39it/s]
2026-01-27 18:10:58 [INFO] server: Synthesizing chunk 12/22...
2026-01-27 18:10:58 [INFO] engine: Applying user-provided seed for generation: 42
2026-01-27 18:10:58 [INFO] engine: Global seed set to: 42
2026-01-27 18:10:58 [INFO] engine: Synthesizing with standard English model.
2026-01-27 18:10:58 [INFO] engine: === Processing text ===
2026-01-27 18:10:58 [INFO] engine: Text length: 10525 characters
2026-01-27 18:10:58 [INFO] engine: Text preview: 14. and with Czecho-Slovakia
Moreover, the security of France was not in the least threatened, since
at no time had Germany ever given the slightest cause that could have
been taken as an unfriendly
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [0,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [1,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [2,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [3,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [4,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [5,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [6,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [7,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [8,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [9,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [10,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [11,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [12,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [13,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [14,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [15,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [16,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [17,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [18,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [19,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [20,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [21,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [22,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [23,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [24,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [25,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [26,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [27,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [28,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [29,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [30,0,0] Assertion srcIndex < srcSelectDimSize failed.
C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\Indexing.cu:1308: block: [117,0,0], thread: [31,0,0] Assertion srcIndex < srcSelectDimSize failed.
2026-01-27 18:10:58 [ERROR] engine: Error during TTS synthesis: CUDA error: device-side assert triggered
Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.
Traceback (most recent call last):
File "A:\Chatterbox TTS\engine.py", line 413, in synthesize
wav_tensor = active_model.generate(
File "A:\Chatterbox TTS\venv\lib\site-packages\chatterbox\tts.py", line 246, in generate
speech_tokens = self.t3.inference(
File "A:\Chatterbox TTS\venv\lib\site-packages\torch\utils_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
File "A:\Chatterbox TTS\venv\lib\site-packages\chatterbox\models\t3\t3.py", line 245, in inference
embeds, len_cond = self.prepare_input_embeds(
File "A:\Chatterbox TTS\venv\lib\site-packages\chatterbox\models\t3\t3.py", line 101, in prepare_input_embeds
text_emb = text_emb + self.text_pos_emb(text_tokens)
File "A:\Chatterbox TTS\venv\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "A:\Chatterbox TTS\venv\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "A:\Chatterbox TTS\venv\lib\site-packages\chatterbox\models\t3\modules\learned_pos_emb.py", line 19, in forward
return self.emb(torch.arange(0, sl, device=x.device))
File "A:\Chatterbox TTS\venv\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "A:\Chatterbox TTS\venv\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "A:\Chatterbox TTS\venv\lib\site-packages\torch\nn\modules\sparse.py", line 190, in forward
return F.embedding(
File "A:\Chatterbox TTS\venv\lib\site-packages\torch\nn\functional.py", line 2551, in embedding
return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
RuntimeError: CUDA error: device-side assert triggered
Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.
2026-01-27 18:10:58 [ERROR] server: TTS engine failed to synthesize audio for chunk 12. `