Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

On some system such as openwrt, it may be

gst-launch alsasrc device=plughw:1,0
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .