User Tools

Site Tools


doc:appunti:linux:audio:audio_recording_tmb113_e

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:linux:audio:audio_recording_tmb113_e [2020/12/28 09:00] – [Setting the recording volume with PulseAudio] niccolodoc:appunti:linux:audio:audio_recording_tmb113_e [2020/12/28 17:09] (current) – [Recording with PulseAudio parecord] niccolo
Line 1: Line 1:
-====== Audio recording with the Acer Travelmate TMB113-E ======+====== Audio recording with the Acer TravelMate TMB113-E ======
  
-How to record audio using a **wireless microphone** connected to the audio jack of an **Acer Travelmate TMB113-E**, running  **Debian GNU/Linux 10 Buster**. The microphone is a **[[wp>Lavalier_microphone|lavalier]]** one, with an **UHF** (630 MHz) belt transmitter and a receiver monted on a **1/4" TS jack**.+{{acer-travelmate-wireless-microphone.jpg?480 |Wireless Microphone on the Acer TravelMate}} 
 +How to record audio using a **wireless microphone** connected to the audio jack of an **Acer TravelMate TMB113-E**, running  **Debian GNU/Linux 10 Buster**. 
 + 
 +The microphone is a **[[wp>Lavalier_microphone|lavalier]]** one, with an **UHF** (630 MHz) belt transmitter and a receiver mounted on a **1/4" TS jack**. I am mainly interested in recording using **command line tools**. 
 + 
 +===== Electrical connection ===== 
 + 
 +I used an headset/microphone **split cable** to connect to the **3.5 mm CTIA audio jack** of the Acer TravelMante and a **self-made cable** to adapt the **TRS 3.5 mm** mic jack to the **1/4" TS jack**. The overall pinout is as follow: 
 + 
 +^ 1/4" TS female jack  ^ Signal         ^ 3.5 mm TRRS male jack (CTIA) 
 +|                      | Not connected  | **Tip**                       | 
 +|                      | Not connected  | **Ring**                      | 
 +| **Sleeve**           | Ground         | **Ring**                      | 
 +| **Tip**              | Microphone     | **Sleeve**                    |
  
 ===== Problem detecting the external microphone ===== ===== Problem detecting the external microphone =====
Line 91: Line 104:
 The recording volume should be a vaule between the **base volume** and **65536** (corresponding to 100%, or 0.00 dB). Every different hardware should be tested to find the best settings to get a clear and loud sound, but to avoid clipping (out of scale samples). The recording volume should be a vaule between the **base volume** and **65536** (corresponding to 100%, or 0.00 dB). Every different hardware should be tested to find the best settings to get a clear and loud sound, but to avoid clipping (out of scale samples).
  
 +<code>
 +pacmd list-sources
 +2 source(s) available.
 +    index: 0
 +        name: <alsa_output.pci-0000_00_1b.0.analog-stereo.monitor>
 +        ...
 +        properties:
 +                device.description = "Monitor of Built-in Audio Analog Stereo"
 +                device.class = "monitor"
 +                ...
 +  * index: 1
 +        name: <alsa_input.pci-0000_00_1b.0.analog-stereo>
 +        volume: front-left: 26092 /  40% / -24.00 dB,   front-right: 26092 /  40% / -24.00 dB
 +        base volume: 5206 /   8% / -66.00 dB
 +        ...
 +        properties:
 +                device.class = "sound"
 +                ...
 +        ports:
 +                analog-input-internal-mic: Internal Microphone (priority 8900, available: no)
 +                ...
 +                analog-input-mic: Microphone (priority 8700, available: yes)
 +        active port: <analog-input-mic>
 +</code>
 +
 +**Beware** that with the audio card of the TMB113-E, the port **analog-input-mic** refers to the external microphone when that one is connected (or forcibly connected by hdajackretask), but the same name refers to the internal microphone when the audio jack is disconnected. In fact the **analog-input-internal-mic** only exists if there are two microphone ports.
 +
 +Once you understand the output of **pacmd list-sources**, it is very simple to activate the recording using a command line script:
  
 <code bash> <code bash>
 +#!/bin/sh
 SOURCE='alsa_input.pci-0000_00_1b.0.analog-stereo' SOURCE='alsa_input.pci-0000_00_1b.0.analog-stereo'
 PORT='analog-input-mic' PORT='analog-input-mic'
 VOLUME=16463 VOLUME=16463
- 
 pacmd set-default-source "$SOURCE" pacmd set-default-source "$SOURCE"
 pacmd set-source-port "$SOURCE" "$PORT" pacmd set-source-port "$SOURCE" "$PORT"
Line 103: Line 144:
 parecord --verbose --device="$SOURCE" --channels=1 --fix-rate foobar.wav parecord --verbose --device="$SOURCE" --channels=1 --fix-rate foobar.wav
 </code> </code>
 +
 +The result is a **44100 Hz, 16 bit little-endian, mono** audio file, quite satisfactory for quality and low background noise.
  
 ===== Microphone plug/unplug events ===== ===== Microphone plug/unplug events =====
doc/appunti/linux/audio/audio_recording_tmb113_e.1609142434.txt.gz · Last modified: 2020/12/28 09:00 by niccolo