TTS engine failed to synthesize audio for chunk 1.
When I try to run using Google Colab it Shows : TTS engine failed to synthesize audio for chunk 1.
I have the same issue , but running localy, AttributeError: 'NoneType' object has no attribute 'cpu' 2025-07-07 00:37:12 [ERROR] server: TTS engine failed to synthesize audio for chunk 1.
this is the consol messages
(venv) PS H:\Tavern\Chatterbox-TTS-Server> python server.py
2025-07-09 22:02:52 [INFO] main: Starting TTS Server directly on http://0.0.0.0:8004
2025-07-09 22:02:52 [INFO] main: API documentation will be available at http://0.0.0.0:8004/docs
2025-07-09 22:02:52 [INFO] main: Web UI will be available at http://0.0.0.0:8004/
INFO: Started server process [14816]
INFO: Waiting for application startup.
2025-07-09 22:02:52 [INFO] server: TTS Server: Initializing application...
2025-07-09 22:02:52 [INFO] server: Configuration loaded. Log file at: H:\Tavern\Chatterbox-TTS-Server\logs\tts_server.log
2025-07-09 22:02:52 [INFO] engine: CUDA requested and functional. Using CUDA.
2025-07-09 22:02:52 [INFO] engine: Final device selection: cuda
2025-07-09 22:02:52 [INFO] engine: Attempting to load model directly using from_pretrained (expected from Hugging Face repository: ResembleAI/chatterbox or library default).
H:\Tavern\Chatterbox-TTS-Server\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)
2025-07-09 22:03:18 [INFO] root: input frame rate=25
H:\Tavern\Chatterbox-TTS-Server\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
2025-07-09 22:03:20 [INFO] engine: Successfully loaded TTS model using from_pretrained on cuda (expected from 'ResembleAI/chatterbox' or library default).
2025-07-09 22:03:20 [INFO] engine: TTS Model loaded successfully on cuda. Engine sample rate: 24000 Hz.
2025-07-09 22:03:20 [INFO] server: TTS Model loaded successfully via engine.
2025-07-09 22:03:20 [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)
2025-07-09 22:03:22 [INFO] server: Attempting to open web browser to: http://localhost:8004/
2025-07-09 22:03:23 [INFO] server: Request received for main UI page ('/').
2025-07-09 22:03:23 [INFO] server: Request received for /api/ui/initial-data.
2025-07-09 22:03:23 [INFO] utils: Found 28 predefined voices in H:\Tavern\Chatterbox-TTS-Server\voices
same issue as well logs posted here https://pastebin.com/4XMJDHnf
This issue, identified by the AttributeError: 'NoneType' object has no attribute 'cpu' error, has been resolved. It was caused by an issue in an upstream dependency that has now been patched: https://github.com/devnen/Chatterbox-TTS-Server/issues/27#issuecomment-3054221141
Please update your installation to get the latest changes, which should resolve this for you.
Thank you so much @devnen now its working !!
Great now it's back in business! thanks alot!