espressif / esp-box

The ESP-BOX is a new generation AIoT development platform released by Espressif Systems.
Apache License 2.0
710 stars 173 forks source link

audio output distorted in usb_headset example (AEGHB-258) #84

Closed mjhewitt1 closed 12 months ago

mjhewitt1 commented 1 year ago

When using the example 'usb_headset' (unchanged) the audio output is distorted (sounds like it is skipping/cutting out). Any similar issues/ideas how to fix this? Many thanks

leeebo commented 1 year ago

Hi @mjhewitt1 Would you please try with the prebuilt binary from esp-box launchpad, choose usb_headset then flash to give it a try

mjhewitt1 commented 1 year ago

Hi, thanks for your response. I have given it a go and still sounds the same unfortunately

lijunru-hub commented 12 months ago

Are you using a windows computer? What is the version of windwos

mjhewitt1 commented 12 months ago

Ah so, I have tried on a Windows 10 computer and it works! But no luck on Ubuntu 20.04

mjhewitt1 commented 12 months ago

Hi there, I have fixed the issue :)

I used the esp-box launchpad site to connect and flash the USB headset example to the ESP-BOX. The audio output was fine when I did this on a Windows PC, but not on Ubuntu.

I fixed the issue with the audio output on Ubuntu by adding the following lines to /etc/pulse/daemon.conf : default-sample-rate = 48000 alternate-sample-rate = 48000

Which was suggested here -- https://askubuntu.com/questions/1399384/ubuntu-audio-crackling-using-logitech-usb-audio-even-after-formatting

Thanks a lot for your responses