doc:appunti:linux:audio:audio_recording
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
doc:appunti:linux:audio:audio_recording [2020/12/28 16:39] – [Wireless mic on Ugreen USB audio adapter] niccolo | doc:appunti:linux:audio:audio_recording [2020/12/28 17:14] – [Wireless mic on Ugreen USB audio adapter] niccolo | ||
---|---|---|---|
Line 143: | Line 143: | ||
{{ ugreen-usb-audio.jpg? | {{ ugreen-usb-audio.jpg? | ||
+ | |||
+ | The **microphone socket** is a **3.5 mm TRS type** (three poles), it provides a bias current of **2.6 V** on both the **tip** and the **ring**, so it is advisable, as reported in the device manual, to **NOT use a simple two poles mono jack** (TS type), because it will short-circuit the bias current on the ring with the ground on the sleeve. | ||
Launching **alsamixer** and hitting F6 you can select the **USB Advanced Audio Device** sound card. Hit F4 to view the only one capture device, i.e. the microphone input line. Press **Space** to enable/ | Launching **alsamixer** and hitting F6 you can select the **USB Advanced Audio Device** sound card. Hit F4 to view the only one capture device, i.e. the microphone input line. Press **Space** to enable/ | ||
Line 150: | Line 152: | ||
{{usb-advanced-audio-device-alsamixer.png? | {{usb-advanced-audio-device-alsamixer.png? | ||
- | The **microphone socket** is a **3.5 mm TRS type** (three poles), it provides a bias current of **2.6 V** on both the **tip** and the **ring**, so it is advisable, as reported in the device manual, to **NOT use a simple two poles mono jack** (TS type), because it will short-circuit | + | I use the **PulseAudio** subsystem above the ALSA modules (this is the preferred method in modern GNU/Linux distro). In this case the volume is controlled via the graphics app **pavucontrol** or on the command line using the **pacmd** tool. The PulseAudio recording volume level should be between |
+ | |||
+ | Here are the commands to start an audio recording using a shell script: | ||
+ | |||
+ | <code bash> | ||
+ | #!/bin/sh | ||
+ | SOURCE=' | ||
+ | PORT=' | ||
+ | VOLUME=65536 | ||
+ | pacmd set-default-source " | ||
+ | pacmd set-source-port " | ||
+ | pacmd set-source-volume " | ||
+ | pacmd set-source-mute " | ||
+ | parecord --verbose --device=" | ||
+ | </ | ||
+ | **WARNING**: | ||
===== Web References ===== | ===== Web References ===== | ||
doc/appunti/linux/audio/audio_recording.txt · Last modified: 2020/12/28 18:22 by niccolo