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

Error with 'cloning_reference_wav' #6

Open
ajeema opened this issue Feb 10, 2024 · 3 comments
Open

Error with 'cloning_reference_wav' #6

ajeema opened this issue Feb 10, 2024 · 3 comments

Comments

@ajeema
Copy link

ajeema commented Feb 10, 2024

All libraries seem to have been installed properly. However I get this error when trying to run

C:\Users\USER\code\LocalAIVoiceChat-main>start.bat cuda not available llama_cpp_lib: return llama_cpp Initializing LLM llama.cpp model ... llama.cpp model initialized Initializing TTS CoquiEngine ... Traceback (most recent call last): File "C:\Users\USER\code\LocalAIVoiceChat-main\ai_voicetalk_local.py", line 111, in <module> coqui_engine = CoquiEngine(cloning_reference_wav="female.wav", language="en", speed=1.0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\USER\AppData\Roaming\Python\Python311\site-packages\RealtimeTTS\engines\base_engine.py", line 11, in __call__ instance = super().__call__(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: CoquiEngine.__init__() got an unexpected keyword argument 'cloning_reference_wav'

Please advise

@ajeema
Copy link
Author

ajeema commented Feb 10, 2024

Removing it seems to have worked.

@KoljaB
Copy link
Owner

KoljaB commented Feb 10, 2024

Probably update to latest RealtimeTTS version. Parameter cloning_reference_wav ist now named voice.

@vlasov01
Copy link

vlasov01 commented Jul 12, 2024

I had the same error after the library upgrade. I've changed line 109 from CoquiEngine(cloning_reference_wav="female.wav", language="en", speed=1.0) to coqui_engine = CoquiEngine(voice="female.wav", language="en", speed=1.0) and it is working now for me.

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

3 participants