Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

As part of my Sphinx setup, I listen to my input device like this:

gst-launch alsasrc

(Well, the actual command is this: alsasrc ! audioconvert ! audioresample ! vader name=vad auto-threshold=true ! pocketsphinx name=asr ! fakesink, but it's only with the first bit that I'm having problems.)

And that works, it loads in the default sound card. I can also pass this option:

gst-launch alsasrc device="default"

That does basically the same.

But when I try to pass it any other input device, like:

gst-launch alsasrc device="USB Device 0x46d:0x8d7"

It complains about the device not existing.

Now, in the gst-inspect alsasrc documentation, it says:

 device              : ALSA device, as defined in an asound configuration file
                       flags: leesbaar, schrijfbaar
                       String. Default: "default"

I was under the impression most pulseaudio installs no longer use these config files.

So, what can I do to select my input device? Is alsasrc maybe even completely deprecated now that pulseaudio is the norm?

share|improve this question
add comment

1 Answer

Ah, the device notation is not the actual name as in alsamixer, but like this:

gst-launch alsasrc device=hw:1
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.