Re: Redirecting the output audio to the microphone input

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 9 Dec 2009 09:23:44 -0200
Kazuo Teramoto <kaz.rag@xxxxxxxxx> wrote:

> On Wed, Dec 9, 2009 at 5:16 AM, James Shatto <Shadow_7@xxxxxxxxxxxxx> wrote:
> > You can set the record device to PCM (aumix term, never been able to find
> > the equivalent alsamixer way).  Although you'll likely need to adjust your
> > volume levels to get a good level (which might be below audible levels).
> 
> I cant find the setting to "set the record device to PCM" can you give
> me a amixer command line for it?

Like I said aumix seems to be the only command line one I've found with that option/feature.  Not that I've tried to do it other ways.

$ aumix -q
$ aumix -v R
$ aumix -q

The options for -p and -w seem to set it to mic for microphone input.  In the gui mode it's the square with the green center square, click the one for master volume (first one) to set it to the pcm output as your default recording channel.  It should turn/be red in the gui, when it is.  There might be an amixer option for that.  Alsamixer seems to only let me toggle mic capture ON, but NOT off, which undoes the change aumix made.  I mainly use this feature to make a WAV of festival output for text to speech.

Seems like aumix says "Capture" to on and "Mic" to off (relative to capture), when aumix changes things.  With alsamixer I seem to only be able to set Mic to ON.  Bear in mind that this is completely dependent on your hardware supporting this feature.


> 
> > Roughly %50 volume on my laptop.  And it requires a soundcard that supports
> > that.  Otherwise use a cable to connection line out to line in.  Which could
> > be on that machine or another one.
> 
> This is not a solution in my case, I don't have a line in jack connection.
> 
>>>A somewhat related idea is how I can read audio 
>>>from a file and pipe it to microphone input.
>
> > If you have a file, you don't really need to, outside of some sort of
> > realtime performance setup with effects.  But if you have a file, just how
> > real time is it?  Sox, ffmpeg, audacity, and a few other applications can
> > convert file formats to other formats.  Or play them back, you don't really
> > need to record them, if they're already in file format.  And if your
> > soundcard isn't full duplex, you might already be getting some bleed through
> > accidentally.
> 
> I need what  I asked for, because I like to emulate a microphone. I
> like to play sounds in a program that only accept mic input, but cant
> take files an input e.g. Skype and other voice programs, with games
> (Counter Strike Source), etc. I not doing this to convert files (if Í
> needed to convert I had searched for a converting solution, I'm not
> that stupid =] )

Then don't call them files.  Use sources or other more appropriate terms.

> 
> -- 
> «Dans la vie, rien n'est à craindre, tout est à comprendre»
> Marie Sklodowska Curie.

For the resulting changes after $ aumix -v R

$ amixer get Mic
Simple mixer control 'Mic',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Mono
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono: Playback 27 [87%] [6.00dB] [off]
  Front Left: Capture [off]
  Front Right: Capture [off]

$ amixer get Capture
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 15
  Front Left: Capture 8 [53%] [12.00dB] [on]
  Front Right: Capture 8 [53%] [12.00dB] [on]

I haven't been able to get this result by anything other than aumix.  And I'm not familiar with the amixer equivalent.  But here's what it's like BEFORE I change the capture device AWAY from Mic with aumix.

$ amixer get Mic
Simple mixer control 'Mic',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Mono
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono: Playback 27 [87%] [6.00dB] [off]
  Front Left: Capture [on]
  Front Right: Capture [on]

$ amixer get Capture
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 15
  Front Left: Capture 8 [53%] [12.00dB] [on]
  Front Right: Capture 8 [53%] [12.00dB] [on]

Your hardware may vary.  My hardware is an ATI IXP SB400 on my compaq presario laptop.  1002:4370

Other options might be to use jackd and qjackctl to make associations, or some form of pulse audio.  There's many means to an end.  Bear in mind that piping line out to mic in, WILL result in feedback if there's any sort of playthrough / relation between the two channels.

- James

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux