-
Notifications
You must be signed in to change notification settings - Fork 61
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
Serenade crashes for audio input devices that don't support 16000hz of sample rate #24
Comments
I also see this bug on 20.04, as a result I'm not able to run serenade :-( |
I ended up switching back to Windows to use Serenade. This fixes the crashing issue, but there still appears to be a bug with the Speech Recorder library preventing any input from being picked up. |
dang, can't switch to windows, all my dev is in Linux. |
Happens exactly as described with Arch & pipewire |
Also had the same on Manjaro Arch, after tweaking mic settings. How to I clear the config? Still haven't been able to get Serenade working. |
Same here with Ubuntu 23.04 and using the app image. After changing the input in the Serenade Settings from "default" to an USB mic the app crashes. Now it crashes every time i click in the settings icon. That's the error message:
After deleting the local config directory |
System Information
Serenade Version: v2.0.2
OS and Version: e.g., Ubuntu 22.10
Application: Everything, crashes when accessing the microphone.
Issue Description
Audio input devices that don't support 16000hz of sample rate will crash the Speech Recorder:
Dug into this very deep, issue comes from the Port Audio OpenStream function (microphone.cpp):
Which is called from microphone.ts in the Serenade Client (client/src/main/stream/microphone.ts):
The problem is that there isn't any sample rates being set here, so it defaults to the Speech Recorder library's default of 16000hz:
How to Reproduce
Have no audio input devices that support 16000hz. Not sure why none of mine do since the same microphone on Windows doesn't have any issues... Might be a new thing with Ubuntu 22.xx and the audio drivers? Here is the full error log, has some other ALSA errors in it.
Either way, I have a fix for this working locally:
Screenshots
Nothing interesting
The text was updated successfully, but these errors were encountered: