Skip to content
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

USB sound card issue #2

Open
codergitrf opened this issue Feb 14, 2016 · 1 comment
Open

USB sound card issue #2

codergitrf opened this issue Feb 14, 2016 · 1 comment
Labels

Comments

@codergitrf
Copy link

Hi, my usb sound card shows up as device 0, but when I run sudo arecord -f S16_LE -r48000 -c1 -D 0 | csdr mono2stereo_i16 > ~/test_audio.raw

to test the audio card I get an error of

ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM 0
arecord: main:722: audio open error: No such file or directory

Any ideas???

@ha7ilm
Copy link
Owner

ha7ilm commented Feb 14, 2016

Hi @mikerobertsn,

0 is not likely to be a valid device ID.

Try using:

aplay -L

You will see multiple entries. For me this is the correct one for the USB device:

hw:CARD=Device,DEV=0
    USB PnP Sound Device, USB Audio
    Direct hardware device without any conversions

...from this, the part that you need as the ALSA device ID is:

 hw:CARD=Device,DEV=0

Then you can try arecord again:

arecord -f S16_LE -r48000 -c1 -D hw:CARD=Device,DEV=0 | csdr mono2stereo_i16  > ~/test_audio.raw

Does this help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants