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 17:13] – [Wireless mic on Ugreen USB audio adapter] niccolo | doc:appunti:linux:audio:audio_recording [2020/12/28 17:20] – [Wireless mic on Ugreen USB audio adapter] niccolo | ||
---|---|---|---|
Line 127: | Line 127: | ||
===== Wireless mic on Ugreen USB audio adapter ===== | ===== Wireless mic on Ugreen USB audio adapter ===== | ||
- | The device is detected by the Linux Kernel 4.9.0 in this way: | + | See this article about **[[audio_recording_usb_adapter]]**. |
- | < | ||
- | usb 2-1.3: new full-speed USB device number 5 using ehci-pci | ||
- | usb 2-1.3: New USB device found, idVendor=0d8c, | ||
- | usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 | ||
- | usb 2-1.3: Product: USB Advanced Audio Device | ||
- | usb 2-1.3: Manufacturer: | ||
- | input: C-Media Electronics Inc. USB Advanced Audio Device as / | ||
- | / | ||
- | hid-generic 0003: | ||
- | input, | ||
- | on usb-0000: | ||
- | </ | ||
- | |||
- | {{ 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/ | ||
- | |||
- | It seems that the best setting for audio recording through the mic, is to keep the **capture mic gain to 100**: | ||
- | |||
- | {{usb-advanced-audio-device-alsamixer.png? | ||
- | |||
- | 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 the **base volume** (value **20724**) and the 100% (value **65536**). | ||
- | |||
- | 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