Re: [Alsa-user] Redirecting the output audio to the microphone input

2009-12-09 Thread Kazuo Teramoto
On Wed, Dec 9, 2009 at 5:16 AM, James Shatto shado...@earthlink.net 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?

 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.

 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 =] )

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

--
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Redirecting the output audio to the microphone input

2009-12-09 Thread James Shatto
On Wed, 9 Dec 2009 09:23:44 -0200
Kazuo Teramoto kaz@gmail.com wrote:

 On Wed, Dec 9, 2009 at 5:16 AM, James Shatto shado...@earthlink.net 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@lists.sourceforge.net

[Alsa-user] Redirecting the output audio to the microphone input

2009-12-08 Thread Kazuo Teramoto
Hello.

I like to redirect the sound I hear in the speakers to microphone, so
it can be recorded with e.g. arecord.

A somewhat related idea is how I can read audio from a file and pipe
it to microphone input.

I think alsa can do this with some sort of combination of plugin file,
dsnoop and some asoundrc-fu but I cant get all the concepts to create
a solution by myself.

Someone can help me please?

Thanks,
Kazuo Teramoto

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

--
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Redirecting the output audio to the microphone input

2009-12-08 Thread Bill Unruh
On Tue, 8 Dec 2009, Kazuo Teramoto wrote:

 Hello.

 I like to redirect the sound I hear in the speakers to microphone, so
 it can be recorded with e.g. arecord.

 A somewhat related idea is how I can read audio from a file and pipe
 it to microphone input.

Jut plug a cable from the output to the Line in input ( use line in, not
microphone. Microphone is often mono only, and uses one of the lines for
2 or 5V phantom power which could, on a badly designed card, cause trouble for 
the
output)

 I think alsa can do this with some sort of combination of plugin file,
 dsnoop and some asoundrc-fu but I cant get all the concepts to create
 a solution by myself.

 Someone can help me please?

 Thanks,
 Kazuo Teramoto



-- 
William G. Unruh   |  Canadian Institute for| Tel: +1(604)822-3273
PhysicsAstronomy  | Advanced Research  | Fax: +1(604)822-5324
UBC, Vancouver,BC  |   Program in Cosmology | un...@physics.ubc.ca
Canada V6T 1Z1 |  and Gravity   |  www.theory.physics.ubc.ca/

--
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Redirecting the output audio to the microphone input

2009-12-08 Thread James Shatto
On Tue, 8 Dec 2009 21:26:14 -0200
Kazuo Teramoto kaz@gmail.com wrote:

 Hello.
 
 I like to redirect the sound I hear in the speakers to microphone, so
 it can be recorded with e.g. arecord.

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).  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.

 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 think alsa can do this with some sort of combination of plugin file,
 dsnoop and some asoundrc-fu but I cant get all the concepts to create
 a solution by myself.
 
 Someone can help me please?
 
 Thanks,
 Kazuo Teramoto

--
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user