-
Notifications
You must be signed in to change notification settings - Fork 5
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
Invalid number of channels #4
Comments
Thank you for opening the issue and contributing to this project! I've implemented error handling. Now, before this error message will be a short explanation and device list. To fix this:
If your CABLE Input device has ID 3, update it in waifu.initialize(user_input_service='whisper',
stt_duration = None,
mic_index = None,
chatbot_service='openai',
chatbot_model = None,
chatbot_temperature = None,
personality_file = None,
tts_service='elevenlabs',
output_device=3,
tts_voice='Rebecca - wide emotional range',
tts_model = None
) I'm planning to add GUI in the future, so then I'll make a better way to solve it! Thanks for bringing this to my attention! |
I am happy to say that it worked, my value was 7, now this is supposed to work with VTubeStudio right? is there any special action I need to take to do that? since currently it's just audio. |
Right and does it just record until you say something? I feel like that would fill up storage real quick if it even records silence. |
I'm glad to hear that it fixed your issue! To make Waifu work, you'll need to set a few settings in VTube Studio. You need to select Additionally, you can go through most of parameters and check the "Auto-breath" box to add idle movent for 2D avatar. As for audio recording, that's a really important point that I've missed. Thanks for pointing this out! I'm afraid it really does record silence. Unfortunately, I'll be busy for the next few days on my work. If there's free time to spare I'll look into this issue. But it's more likely that I'll be able to fix it only on Monday |
Also another potential issue I found is that while you're using V-CABLE for the output, you cannot hear anything else from your computer other than the AI, no music, no videos. I'm just bringing it into your attention if you weren't aware and I was wondering if there was a possible fix for it. EDIT: I just used a diff output other than V-CABLE to hear everything. |
File "C:\Users\chibi\Desktop\Nero\main.py", line 25, in
main()
File "C:\Users\chibi\Desktop\Nero\main.py", line 6, in main
waifu.initialize(user_input_service='whisper',
File "C:\Users\chibi\Desktop\Nero\waifu.py", line 46, in initialize
self.update_tts(service=tts_service, output_device=output_device, voice=tts_voice, model=tts_model)
File "C:\Users\chibi\Desktop\Nero\waifu.py", line 99, in update_tts
sd.check_output_settings(output_device)
File "C:\Python\lib\site-packages\sounddevice.py", line 697, in check_output_settings
_check(_lib.Pa_IsFormatSupported(_ffi.NULL, parameters, samplerate))
File "C:\Python\lib\site-packages\sounddevice.py", line 2747, in _check
raise PortAudioError(errormsg, err)
sounddevice.PortAudioError: Invalid number of channels [PaErrorCode -9998]
I'm stumped, I don't even know where to start
The text was updated successfully, but these errors were encountered: