Hi there!
First of all, thank you for this amazing work.
I've been trying to set it up on my macpro and so far everything works except for one thing.
The TTS doesn't work correctly and I'm getting loop errors.
I'm using the system engine for this and have confirmed it works as it always says the first word of the generated response. I've tried switching to coqui engine without any luck either. This is the error I'm getting :
initializing...
Using CPU.
[2025-05-18 11:33:48.221] [ctranslate2] [thread 788882] [warning] The compute type inferred from the saved model is float16, but the target device or backend do not support efficient float16 computation. The model weights have been automatically converted to use the float32 compute type instead.
Enter your message: hi
Enter your message: Time from prompt to first audio byte: 45.7627 seconds
GreetingsWARNING:root:play_async() called while already playing audio, skipping
SirWARNING:root:play_async() called while already playing audio, skipping
,WARNING:root:play_async() called while already playing audio, skipping
howWARNING:root:play_async() called while already playing audio, skipping
maySYNTHESIS FINISHED
WARNING:root:play_async() called while already playing audio, skipping
IWARNING:root:play_async() called while already playing audio, skipping
beWARNING:root:play_async() called while already playing audio, skipping
ofWARNING:root:play_async() called while already playing audio, skipping
assistanceWARNING:root:play_async() called while already playing audio, skipping
toWARNING:root:play_async() called while already playing audio, skipping
youWARNING:root:play_async() called while already playing audio, skipping
todayWARNING:root:engine system failed to synthesize sentence ", how may I be of assistance to you today" with error: run loop already started
Traceback: Traceback (most recent call last):
File "/Users/elliottwright/ada/venv/lib/python3.12/site-packages/RealtimeTTS/text_to_stream.py", line 518, in synthesize_worker
success = self.engine.synthesize(sentence)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/elliottwright/ada/venv/lib/python3.12/site-packages/RealtimeTTS/engines/system_engine.py", line 66, in synthesize
self.engine.runAndWait()
File "/Users/elliottwright/ada/venv/lib/python3.12/site-packages/pyttsx3/engine.py", line 180, in runAndWait
raise RuntimeError('run loop already started')
RuntimeError: run loop already started
Thanks for any help
Hi there!
First of all, thank you for this amazing work.
I've been trying to set it up on my macpro and so far everything works except for one thing.
The TTS doesn't work correctly and I'm getting loop errors.
I'm using the system engine for this and have confirmed it works as it always says the first word of the generated response. I've tried switching to coqui engine without any luck either. This is the error I'm getting :
initializing...
Using CPU.
[2025-05-18 11:33:48.221] [ctranslate2] [thread 788882] [warning] The compute type inferred from the saved model is float16, but the target device or backend do not support efficient float16 computation. The model weights have been automatically converted to use the float32 compute type instead.
Enter your message: hi
Enter your message: Time from prompt to first audio byte: 45.7627 seconds
GreetingsWARNING:root:play_async() called while already playing audio, skipping
SirWARNING:root:play_async() called while already playing audio, skipping
,WARNING:root:play_async() called while already playing audio, skipping
howWARNING:root:play_async() called while already playing audio, skipping
maySYNTHESIS FINISHED
WARNING:root:play_async() called while already playing audio, skipping
IWARNING:root:play_async() called while already playing audio, skipping
beWARNING:root:play_async() called while already playing audio, skipping
ofWARNING:root:play_async() called while already playing audio, skipping
assistanceWARNING:root:play_async() called while already playing audio, skipping
toWARNING:root:play_async() called while already playing audio, skipping
youWARNING:root:play_async() called while already playing audio, skipping
todayWARNING:root:engine system failed to synthesize sentence ", how may I be of assistance to you today" with error: run loop already started
Traceback: Traceback (most recent call last):
File "/Users/elliottwright/ada/venv/lib/python3.12/site-packages/RealtimeTTS/text_to_stream.py", line 518, in synthesize_worker
success = self.engine.synthesize(sentence)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/elliottwright/ada/venv/lib/python3.12/site-packages/RealtimeTTS/engines/system_engine.py", line 66, in synthesize
self.engine.runAndWait()
File "/Users/elliottwright/ada/venv/lib/python3.12/site-packages/pyttsx3/engine.py", line 180, in runAndWait
raise RuntimeError('run loop already started')
RuntimeError: run loop already started
Thanks for any help