*** La traduction en français se trouve après les 3 astérisques (*)
Hi Terrence,
You can use arecord if you are using ALSA or othewise vsound using OSS.
If the /proc/asound directory exists, this indicates an ALSA driver.
You may also list the loaded drivers using lsmod and check if the
audio driver name starts with snd_.
The lines below concern ALSA.
The capture volume by default can be zeroed, or a capture switch can
be muted on your card. Usually alsamixer, amixer or alsactl can be
used to change these settings.
Check please if arecord can capture a wav file played by aplay.
For example, this line (it is splitted below):
aplay /usr/share/sounds/alsa/Front_Center.wav & arecord -f dat -D hw:0
/tmp/fic.wav
With this command, arecord will run forever, so the ctrl-c will
be needed.
Usually if the result is a silent wav file, the volume is equal to
0 or the capture is mutted. The related tools are alsamixer (it uses
ncurses though), amixer or alsactl.
For storing the current configuration to /tmp/alsa.conf:
alsactl -f /tmp/alsa.conf store
Each device in the sound card will be detailled.
Then you may want to look at the "capture" keyword in this file.
Here for example:
control.7 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 100'
iface MIXER
name 'PCM Capture Volume'
value.0 78
value.1 78
}
The 'PCM Capture Volume' is equal to 78 for the left and right
channels.
According to the card, the controls may differ though.
If you change some values, you may apply them with:
alsactl -f /tmp/alsa.conf restore
The main arecord doc is probably the man page.
There is an ALSA wiki online but the arecord page is a kind of
switches reminder:
http://alsa.opensrc.org/ARecord
Best regards,
Gilles
Cheers
Gilles
***
Bonsoir,
En réponse a Terrence qui souhaite enregistrer le son sur sa carte.
A+
Gilles
--
Oralux http://oralux.org
_______________________________________________
Oralux mailing list
[email protected]
http://lists.freearchive.org/mailman/listinfo/oralux