RealtimeTTS icon indicating copy to clipboard operation
RealtimeTTS copied to clipboard

SystemEngine driver not working on MacBook M3 Pro

Open garlandwong opened this issue 1 year ago • 10 comments

Hi @KoljaB First of thank you for both of your projects RealtimeSTT and RealtimeTTS. They are very cool. I am having issues when I am trying to run the test_simple example on my M3 Mac running python 3.12. I am getting the following error:

TextToAudioStream(SystemEngine()).feed(dummy_generator()).play() ^^^^^^^^^^^^^^ TypeError: 'NoneType' object is not callable

I also tried the coqui simple test and same error: engine = CoquiEngine() ^^^^^^^^^^^^^ TypeError: 'NoneType' object is not callable

I also noticed that pip install realtimetts[all] is not found. Any help would be appreciated.

garlandwong avatar Sep 07 '24 06:09 garlandwong

coqui test works on python 3.9 but system engine does not.

garlandwong avatar Sep 07 '24 06:09 garlandwong

I solved it. You need to add the individual packages like google text and coqui-tts. The SystemEngine test still does not work though. I think if the pip realimetts[all] works we will be good

garlandwong avatar Sep 07 '24 10:09 garlandwong

Thanks for the feedback. I'm unsure why pip install realimetts[all] fails. I don't have a mac so it's hard for me to look deeper into that. I can say that this is the reason for the NoneType errors.

KoljaB avatar Sep 08 '24 14:09 KoljaB

Hi, I have the same problem.

pip install realtimetts[all] -> not found and when I go with pip install RealTimeTTS -> NoneType is not callable

I'm on a MacBook

enderdincer avatar Oct 05 '24 07:10 enderdincer

Can you give me some more hints about what "not found" means? I don't have a Mac and on other systems like Windows or Ubuntu when a pip install fails there is often some kind of logging in the terminal that provides some hints about what exactly went wrong. Can you see something similar on your Mac and if yes, could you provide this logging please?

I'd assume the problem to be either system tts or coqui tts. All other engines aren't known to cause much issues afaik. So to narrow down the issue further could you pls try:

pip install realtimetts[system]
if __name__ == '__main__':
	from RealtimeTTS import TextToAudioStream, SystemEngine
	TextToAudioStream(SystemEngine()).feed("hello world").play()

for system engine test, and:

pip install realtimetts[coqui]
if __name__ == '__main__':
	from RealtimeTTS import TextToAudioStream, CoquiEngine
	engine = CoquiEngine()
	TextToAudioStream(engine).feed("hello world").play()
	engine.shutdown()

to test the coqui engine?

KoljaB avatar Oct 05 '24 08:10 KoljaB

having the same issue on linux.

pip install realtimetts[coqui]
zsh: no matches found: realtimetts[coqui]

so, i installed the package by pip install RealtimeTTS

then i'm getting this error

➜  realtime python3.12 app.py
Traceback (most recent call last):
  File "/root/realtime/app.py", line 10, in <module>
    engine = CoquiEngine() 
             ^^^^^^^^^^^^^
TypeError: 'NoneType' object is not callable
from RealtimeTTS import (
    TextToAudioStream,
    CoquiEngine,
)

engine = CoquiEngine() 
stream = TextToAudioStream(engine)
stream.feed("Hello world! How are you today?")
stream.play_async()

mohammed-bahumaish avatar Oct 27 '24 23:10 mohammed-bahumaish

Please do pip install RealtimeTTS[all]

KoljaB avatar Oct 28 '24 01:10 KoljaB

Try pip install realtimetts\[all\] on mac :)

Hi, I have the same problem.

pip install realtimetts[all] -> not found and when I go with pip install RealTimeTTS -> NoneType is not callable

I'm on a MacBook

Campbellding avatar Dec 28 '24 04:12 Campbellding

The [] symbol is zsh console match policy.
need to edit .zshrc file. Add this line: setopt no_nomatch

xpfo-go avatar Apr 04 '25 16:04 xpfo-go

You can also use "" around the name. pip install "realtimetts[all]" should install it properly

jungaustin avatar Apr 15 '25 23:04 jungaustin