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 revision | ||
doc:appunti:linux:audio:audio_recording [2020/12/28 17:08] – [Wireless mic on Ugreen USB audio adapter] niccolo | doc:appunti:linux:audio:audio_recording [2020/12/28 18:22] (current) – niccolo | ||
---|---|---|---|
Line 56: | Line 56: | ||
Unlike capacitor ones, electret microphones **do not require polarizing voltage**, but generally they contain an integrated preamplifier that **does require power**. In this cases a **TRS jack** can be used, where the ring carries power via a resistor from, normally, a 5 V supply in the computer (often incorrectly called // | Unlike capacitor ones, electret microphones **do not require polarizing voltage**, but generally they contain an integrated preamplifier that **does require power**. In this cases a **TRS jack** can be used, where the ring carries power via a resistor from, normally, a 5 V supply in the computer (often incorrectly called // | ||
- | |||
- | ====== Problem: silence gaps using a cheap USB dongle ====== | ||
- | |||
- | I was **unable to use the microphone connector** on my Acer TravelMate, so I tried to use an USB dongle, marked **LinQ**. The device was detected by the Linux Kernel 4.9.0: | ||
- | |||
- | < | ||
- | usb 2-1.3: new full-speed USB device number 9 using ehci-pci | ||
- | usb 2-1.3: New USB device found, idVendor=0c76, | ||
- | usb 2-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0 | ||
- | usb 2-1.3: Product: USB Headphone Set | ||
- | input: USB Headphone Set as / | ||
- | / | ||
- | hid-generic 0003: | ||
- | input, | ||
- | on usb-0000: | ||
- | </ | ||
- | |||
- | {{ linq-usb-audio.png? | ||
- | The USB audio adapter worked quite nicely at playing audio, I use it on a QNAP TS-120 NAS, transformed into a media player installing Debian GNU/Linux on it. The Linux kernel and the **ALSA audio subsystem** works well on setting the levels for **playback**. | ||
- | |||
- | Once started Audacity, I was able to select the microphone line of the USB dongle as a **capture device**: | ||
- | |||
- | {{audacity-select-usb-audio.png? | ||
- | |||
- | Recording a sample track revealed an annoying problem: about **every 0.4 seconds** you can see a **gap of silence** in the audio track of about **two hundredths of a second**. The audio track is unusable! | ||
- | |||
- | {{audacity-track-gaps.png? | ||
====== Wireless UHF microphone ====== | ====== Wireless UHF microphone ====== | ||
Line 127: | Line 100: | ||
===== Wireless mic on Ugreen USB audio adapter ===== | ===== Wireless mic on Ugreen USB audio adapter ===== | ||
- | The device | + | See this article about **[[audio_recording_usb_adapter]]**. |
+ | |||
+ | ====== Problem: silence gaps using a cheap USB dongle ====== | ||
+ | |||
+ | I was **unable to use the microphone connector** on my Acer TravelMate, so I tried to use an USB dongle, marked **LinQ**. | ||
< | < | ||
- | usb 2-1.3: new full-speed USB device number | + | usb 2-1.3: new full-speed USB device number |
- | usb 2-1.3: New USB device found, idVendor=0d8c, idProduct=0024 | + | usb 2-1.3: New USB device found, idVendor=0c76, idProduct=1607 |
- | usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 | + | usb 2-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0 |
- | usb 2-1.3: Product: USB Advanced Audio Device | + | usb 2-1.3: Product: USB Headphone Set |
- | usb 2-1.3: Manufacturer: | + | input: USB Headphone Set as / |
- | input: | + | / |
- | / | + | hid-generic 0003:0C76:1607.0004: |
- | hid-generic 0003:0D8C:0024.0004: | + | input, |
- | input, | + | |
on usb-0000: | on usb-0000: | ||
</ | </ | ||
- | {{ ugreen-usb-audio.jpg? | + | {{ linq-usb-audio.png? |
+ | The USB audio adapter worked quite nicely at playing audio, I use it on a QNAP TS-120 NAS, transformed into a media player installing Debian GNU/Linux on it. The Linux kernel and the **ALSA audio subsystem** works well on setting the levels for **playback**. | ||
- | The **microphone | + | Once started Audacity, I was able to select the microphone |
- | Launching **alsamixer** and hitting F6 you can select | + | {{audacity-select-usb-audio.png? |
- | It seems that the best setting for audio recording through the mic, is to keep the **capture mic gain to 100**: | + | Recording a sample track revealed an annoying problem: about **every 0.4 seconds** you can see a **gap of silence** in the audio track of about **two hundredths of a second**. The audio track is unusable! |
- | {{usb-advanced-audio-device-alsamixer.png? | + | {{audacity-track-gaps.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. 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 ===== | + | |
* [[wp> | * [[wp> |
doc/appunti/linux/audio/audio_recording.txt · Last modified: 2020/12/28 18:22 by niccolo