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
Hi, I'm in the process of attempting to create a USB audio to ASHA adapter using a RPi Pico W.
For this, I need to implement a basic stereo USB audio device, and I'm afraid I'm a little lost. The included examples implement far more features than I need, and I'm not sure of the best way to cut them down to suit.
Basically, I need to implement a 2 channel (stereo) out/speaker device with no mic, ideally using 16 bit 16KHz sample rate. Can UAC2 even do 16KHz audio? If I absolutely must, I can do 32KHz or 48KHz and integer downsample, but I'd rather not. The idea is to fill a ring buffer with samples on one core, and the ASHA code can run on the other to G.722 encode the audio and send it to the hearing aids over BLE.
Does anyone know of any existing stereo implementation? Or, if not, what's the best example to start with to remove features from, and what gotchas do I need to watch out for?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm in the process of attempting to create a USB audio to ASHA adapter using a RPi Pico W.
For this, I need to implement a basic stereo USB audio device, and I'm afraid I'm a little lost. The included examples implement far more features than I need, and I'm not sure of the best way to cut them down to suit.
Basically, I need to implement a 2 channel (stereo) out/speaker device with no mic, ideally using 16 bit 16KHz sample rate. Can UAC2 even do 16KHz audio? If I absolutely must, I can do 32KHz or 48KHz and integer downsample, but I'd rather not. The idea is to fill a ring buffer with samples on one core, and the ASHA code can run on the other to G.722 encode the audio and send it to the hearing aids over BLE.
Does anyone know of any existing stereo implementation? Or, if not, what's the best example to start with to remove features from, and what gotchas do I need to watch out for?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions