You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We keep having issues with sound on Alice. This is mainly due to the fact that I don't really understand the entire sound thing, with frames, channels, buffer per frames etc etc and the online guides mixing between them all add to the comprehension complexity.
For the input, we need a setting for sound input rate. I fixed my mic by setting the input framerate in AudioServer/publishAudio to 48000, because 48k seems to be the frame rate my mic supports
This leads the the next problem, the packets sent over mqtt are then sent using a framerate of 48k which is a problem for the sound output
For the output, after trying 8k to 48k I did not find any that fits. Which is strange, because technically I use the same speakers all the time, the mic changes, but almost never the speakers. And if I instal lthe respeaker drivers, the sound output is ok.
My understanding being limited here, the wild guesses I can make ares:
respeaker drivers include a resampler?
we need to learn python/linux sound for better understanding
we most probably will need to resample both input and output as well as playing to get a unified solution
we need a mic samplerate config as well as a speaker samplerate config.
The text was updated successfully, but these errors were encountered:
We keep having issues with sound on Alice. This is mainly due to the fact that I don't really understand the entire sound thing, with frames, channels, buffer per frames etc etc and the online guides mixing between them all add to the comprehension complexity.
Concerning the two main errors we usually see:
sounddevice.PortAudioError: Error opening RawInputStream: Invalid sample rate [PaErrorCode -9997]
Playing wav failed with error: Error opening RawOutputStream: Invalid sample rate [PaErrorCode -9997]
Playing to fix these got me to those conclusions:
For the input, we need a setting for sound input rate. I fixed my mic by setting the input framerate in
AudioServer/publishAudio
to48000
, because 48k seems to be the frame rate my mic supportsFor the output, after trying 8k to 48k I did not find any that fits. Which is strange, because technically I use the same speakers all the time, the mic changes, but almost never the speakers. And if I instal lthe respeaker drivers, the sound output is ok.
My understanding being limited here, the wild guesses I can make ares:
The text was updated successfully, but these errors were encountered: