Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SystemEngine driver not working on MacBook M3 Pro #131

Open
garlandwong opened this issue Sep 7, 2024 · 8 comments
Open

SystemEngine driver not working on MacBook M3 Pro #131

garlandwong opened this issue Sep 7, 2024 · 8 comments

Comments

@garlandwong
Copy link

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
Copy link
Author

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

@garlandwong
Copy link
Author

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

@KoljaB
Copy link
Owner

KoljaB commented Sep 8, 2024

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.

@enderdincer
Copy link

enderdincer commented Oct 5, 2024

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

@KoljaB
Copy link
Owner

KoljaB commented Oct 5, 2024

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?

@mohammed-bahumaish
Copy link

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()

@KoljaB
Copy link
Owner

KoljaB commented Oct 28, 2024

Please do pip install RealtimeTTS[all]

@Campbellding
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants