Close
0%
0%

The ultimate vlogging mic

Recording the best headset audio in a portable form factor

Similar projects worth following
It's small size has made it primarily a bootlegging device.

Experiments in vlogging with a headset & robot cam showed it's worth the investment in a more portable solution for recording audio.  The need for VU meters, transport controls, & counters requires a wireless connection to a phone.  Recording directly on a phone was horrible.  The AGC brought up the background noise & clipped the voice.  The phone & extra circuitry for monitoring was bulky.

The lion kingdom long dreamed of a wireless headset just to capture audio & monitor it.  A small FM transmitter would be able to record the microphone but not send audio from the phone back to the headset. Despite every effort, there is no easy way to record from a bluetooth headset. The Goog has blocked recording from a protocol designed to make phone calls because of wiretapping laws.  Commercially available, wireless headsets with full duplex audio are obscenely expensive, bulky, & have lousy sound quality.  The only easily accessible ones have 1 speaker.

The most compact solution is a raspberry pi zero W reading from an ADC & writing data to an SD card.  The same board sends monitoring output back to the headset.  It's really hard to justify anything besides a raspberry pi zero W for every single project, nowadays.  That board only uses 200mA & is the cheapest solution for everything.

A microcontroller is only necessary for converting the ADC's output to an SPI slave. An analog pot is the easiest way to adjust microphone gain. The ADC/microcontroller board would be dedicated just to the headset & interchangeable with a 4 channel version for less portable use. The 4 channel version would have digital pots for line level inputs, another section for monitoring, maybe mic preamps for 2 channels, lots of transistors for a patchbay.

It's important to use a CODEC or ADC specifically designed for recording audio rather than a bare ADC.  Audio codecs have the lowpass filtering & DC offset correction you need to avoid aliases.  What is the point, when a tiny soundcard for a raspberry pi is virtually free? It's about getting the best possible sound quality from the headset microphone.  Past experiences with microphone inputs on computer soundcards were horrible.

The recording system could be implemented entirely in the headset if money was unlimited, but we're financially limited to an external board.  This also allows the highest sound quality.

usbmic2.html.xz

Obsolete HTML file for usbmic2

x-xz - 2.92 kB - 08/28/2018 at 05:19

Download

usbmic2.c

Obsolete stereo recorder without monitoring. Records from 2 USB dongles using raw alsa calls but can't play back.

x-csrc - 18.34 kB - 08/28/2018 at 05:18

Download

bootleg01.mp3

Segment of the 1st bootleg, with interference left intact.

mp3 - 608.83 kB - 01/13/2018 at 05:27

Download

usbmic.c

Obsolete voice recorder with monitoring. Records 16 bit 48khz from a single USB card, using jack.

x-csrc - 16.21 kB - 01/09/2018 at 05:24

Download

first_recording.flac

The 1st recording in 24 bit 48khz.

flac - 3.27 MB - 12/27/2017 at 02:24

Download

  • Yapster death

    lion mclionhead09/02/2022 at 02:13 0 comments

    The 10 year old yapster's microphone finally died.  It was strangely a broken ground to the microphone, somewhere in the cable & probably near the knot.  Normally the thinner wire breaks.

    Soldered into the speaker ground.  Didn't do a good job insulating the solder joints but it worked.

    The microphone arm is held on by a self tapper from the inside.  Tightening the self tapper increases the friction.  There's no spring or knurled surface.  For animals wishing to add a microphone to normal headphones, it would entail something like this.

    Using a directional microphone didn't work.  It was too sensitive to wind.  It has to be omnidirectional.

  • Microphone repositioned

    lion mclionhead06/18/2022 at 22:30 0 comments

    Having it right in front of the mouth created a lot of wind noise.  Even the gold standard Rossguy videos have it on the side.  The side position removed most but not all of the wind noise.  It still didn't sound as good as Ross Guy.

    It's way off to the side, yet sounds like a large diaphragm studio microphone. Every video contains a link to the DPA Microphones 4066, a $700 microphone which he says he got on ebay for nothing.

  • Headset amenities

    lion mclionhead02/03/2022 at 18:47 0 comments

    The headset got a dead cat & new ear pads.

    Dead cat:

    https://www.amazon.com/dp/B01E4ZMTEG

    Ear pads:

    https://www.amazon.com/dp/B08MLBSX41

    Ear pads don't last long.  The originals came in 2017.  It may not be a decline in quality but the other stuff lasting a lot longer than it used to.  Headphones in the 1980's died quickly from bad cables or got replaced by constantly improving designs.  Headphones nowadays aren't getting replaced by better designs & are usually fixable.

    The dead cat barely fit around the 10mm electret microphone.  It's definitely not removable.

    There was a test showing the dead cat making no difference in plosives, but the unidirectional microphone definitely has a professional studio sound.

    The best solution for a bootlegging microphone has converged on the smallest electrets possible instead of the giant unidirectional ones, since it has to be clandestine, there isn't enough room to expose holes on the back, & they're not going to be close enough to get any proximity effect.  

    The next step for the last of the Zoom H2 microphones is a new enclosure for the DSLR with room for dead cats & holes in the back.

  • Microphone search

    lion mclionhead11/25/2021 at 23:37 0 comments

    Processing musical instrument output has shown the largest possible buffers to be necessary for recording audio on a raspberry pi.  The fragment size for ALSA was stepped up to 256 samples & the total fragments to 3 for realtime monitoring.  The mane need was to create a buffer of 30 minutes for writing to the SD card.

    Helas, the 2 channel version needs a better clandestine microphone.  It has 2 electret condensers from digikey from 20 years ago.  These sounded marginally better than electret condensers from 30 years ago but nowhere close to a Zoom H2 from 15 years ago.  The Zoom handy recorders use very special electret condensers that sound more like studio microphones.  The trick seems to be holes in the back side.  The holes make them unidirectional but also give them a bass response normal microphones don't have.

    There's no part number & nothing on the internets matches.  There is but 1 microphone which matches the dimensions & is unidirectional, the mighty CMI-5247TF-K.

    https://www.digikey.com/en/products/detail/cui-devices/CMI-5247TF-K/1869988

    It has 6 instead of 7 holes & doesn't claim as much bass.  The bass in the Zoom H2 might just be proximity effect.  The CMI was introduced in 2008, 1 year after the Zoom H2.  It might have been exclusively for the Zoom H2 or this type of microphone didn't exist before the Zoom H2.

    There's is a standalone microphone capsule for the Zoom H5, H6, H8.  It costs as much as the entire H2 did & only has 2 microphones.  Despite all the fuss about stereo recording, the lion kingdom only ever needed it once.  In a clandestine mode, they may not sound as good because the back holes are going to be covered up & they won't have proximity effect.

    Ross Guy showed some details about his setup.

    It takes a long time for that guy to get set up  to record his bike rides.  The lion kingdom was surprised how painful it is despite much more expensive gear.  He's cabled into the bike rather than having a wearable recorder.  Of course, live streaming while recording is a new set of challenges.  

  • New microphone, ALSA calls, & O_DIRECT

    lion mclionhead02/23/2021 at 05:26 0 comments

    Using molex connectors for headsets has proven disastrous.  It may be they don't do well when they're frequently unplugged like audio connectors.  The TRS connector was invented over 100 years ago for telephone switchboards.  There was nothing special about the TRS connector's signal properties, so lions figured molex connectors would be more compact.  The molex connectors have been prone to dirty contacts & bad connections.

    There's nothing special about going back to a dual 3.5mm TRS connector for the microphone & speakers.  It would just involve money.  It would be bigger than the molex connector but not totally ruin the experience.  Dual TRS would allow monitoring stereo on a headset without microphones.

    There are other connectors besides molex, like SATA & USB.  

    The single channel vlog mic finally got ported away from jackd to its own ALSA mmap calls & the performance instantly improved.  The latency got a lot lower & it was less prone to losing buffer synchronization.  Jackd had a problem of too many buffer handovers above the basic ALSA mmap buffer & latency from its socket interface.  Socket interfaces are so bad at latency, it's amazing audio software has gone exclusively to socket interfaces like pulseaudio & jackd.  ALSA has long supported mixing multiple programs in the kernel, where it's not as prone to latency as a userspace mixer.  Meanwhile, old programs like X11/Xorg/Xwayland long ago abandoned socket interfaces to get lower latency.

    With direct ALSA mmap calls, the smallest buffer possible with the general pro's in full duplex mode dropped to 144 samples.  

    The microphone was upgraded to a microphone extracted from a Zoom H2.  The sound quality was spectacular for an electret condenser, rivaling Tucker Gott's microphone.  The Zoom recorders were definitely a high point in electret condensers.  It's disappointing such good microphones aren't available from digikey.  

    Finally, the file I/O got moved to O_DIRECT to reduce dropouts.

    Helas, the 1st vlog with this setup was a disaster.  There were a lot of buffer overruns, so the ALSA buffer size has to be stepped back up.  The wind noise was terrible.  Only a few ramblings about lions were audible.  The larger zoom microphone didn't allow as effective a wind screen.  It was a stock wind screen that looked like Tucker Gott's.  

    The next question is if the stereo version can monitor by fusing the 2 cards in userspace & if the 2 versions can reboot each other.

  • Zoom F2, Tentacle Sync Track E

    lion mclionhead02/17/2021 at 20:33 0 comments

    Around 3 years after lions started developing the vlogging mic, the industry finally introduced the same concept at over 10x the price.  The industry offerings don't have any software interface, just physical buttons & no VU meters.  They're a bit bulkier, using TRS connectors & AA batteries.

    The mane thing they started pushing was 32 bit floating point.  They're recording on simultaneous ADC's with different gain levels & fusing the output much like an HDR photo.  There's still a limit to dynamic range, imposed by the microphone's internal preamp & the bias voltage.  Only 20 more years until Japanese camera makers finally discover 32 bit floating point.

    The generalplus has only ever been useful at maximum gain, so 32 bit floating point wouldn't buy anything. A way to start recording & adjust headphone volume without a phone would be useful.  Pairing the phone over wifi, firing up the browser, & worrying if wifi is leaking into the audio is extremely slow.

  • New enclosure

    lion mclionhead02/17/2021 at 06:27 0 comments

    The confuser was slightly rewired & wrapped up more thoroughly.  Lions couldn't think of how a 3D printed enclosure would be any better than packing tape.  It has to be as compact as possible.  It's still going to go inside a good old arm band with a battery.

    Lions measure the CPU temperature with /sys/devices/virtual/thermal/thermal_zone0/temp

    It shows 51C when it's warmed up, even though it smells like magic smoke.

    Molex connectors have been disappointing as audio connectors.  Not sure why the ages old TRS connector does such a better job.  It takes a lot of fiddling to get a good microphone connection out of a molex.  This application doesn't have enough room for an XLR.

    Discovered the UART RX has to be floating for it to boot up, otherwise it gets stuck in the bootloader.  This is the opposite of the STM32 which needs UART RX to be grounded.

    The lion kingdom has had growing disappointment with raspberry pi's as audio recorders.  There's a lot to think about, to get them to boot, defeat wifi interference.  There's a long startup time while waiting to see if they work or need another reboot.  They always have buffer overruns.  They take up a lot of space & burn 300mA, even in the zero W size.  The wifi has never been as reliable as hoped.  Transferring files is super slow.

    There have been thoughts of going to a more expensive STM32, SD card, surplus LCD, audio codec chip, analog trimpots, USB file transfer, single record button, but lions just don't make enough recordings to go beyond the minimal raspberry pi.

  • Switching between mono & stereo

    lion mclionhead01/24/2021 at 08:45 0 comments

    The lion kingdom revisited this project after 3 years, to do single channel vlog recording again.  Apparently, there was no way for jack to play back while recording from 2 soundcards, so that's why monitoring was dropped for recording stereo.

    Using the same board as a voice recorder with monitoring & a stereo recorder without monitoring ended up requiring 2 different executables.  To record a single channel with monitoring, you have to run jackd & then usbmic.c

    /root/jack2-1.9.12/build/jackd -P70 -p16 -t2000 -dalsa -dhw:1 -p256 -n3 -r48000 -s &

    /root/usbmic

    This picks 1 of the 2 soundcards, as specified with the -dhw:1 option.  Jackd handles the full duplex I/O in what was deemed to be a very efficient loop.

    To record stereo from 2 soundcards without monitoring, you have to kill jackd & run usbmic2.c.  Jackd was abandoned for stereo in favor of using raw alsa calls.

    This requires a /root/.asoundrc file to merge the 2 soundcards.

    root@raspberrypi:~# cat .asoundrc
    pcm.merge {
        type multi;
        slaves.a.pcm hw:1
        slaves.a.channels 1;
        slaves.b.pcm hw:2
        slaves.b.channels 1;
        bindings.0.slave a;
        bindings.0.channel 0;
        bindings.1.slave b;
        bindings.1.channel 0;
    }
    
    ctl.merge {
        type hw
        card 0
    }

    It still may be possible to record stereo with monitoring, thereby allowing a single executable to be used for stereo & mono.  Some ideas are directing playback to the virtual merged device instead of a single soundcard or using raw alsa calls for playback instead of jackd.  Unfortunately, there's no reason to monitor stereo recordings.  That mode wouldn't be used for vlogging.

  • Upgrading to stereo

    lion mclionhead08/28/2018 at 05:20 0 comments

    For a good time, record stereo using a raspberry pi, dual USB sound cards, & a tiny 2 port USB hub. The USB hub was made of a 4 port stick, ground down to 2 ports.  Get alsa to fuse the 2 dongles into a single virtual device with a new .asoundrc file.  The 2 dongles are hw:1 & hw:2.

    pcm.merge {
        type multi;
        slaves.a.pcm hw:1
        slaves.a.channels 1;
        slaves.b.pcm hw:2
        slaves.b.channels 1;
        bindings.0.slave a;
        bindings.0.channel 0;
        bindings.1.slave b;
        bindings.1.channel 0;
    }
    
    ctl.merge {
        type hw
        card 0
    }
    
    


    Get jackd to record from the virtual device by passing the -Cmerge option after the -dalsa option.

    /root/jack2-1.9.12/build/jackd -P70 -p16 -t2000 -dalsa -Cmerge -p256 -n3 -r48000 -s &

    jackd also accepts a -P option after the -dalsa option which is supposed to redirect playback to either of the 2 dongles, but this causes it to crash.


    /root/jack2-1.9.12/build/jackd -P70 -p16 -t2000 -dalsa -Phw:1 -Cmerge -p256 -n3 -r48000 -s &

    So there is no monitoring when recording from 2 cards.  The executable which does the magic is  https://cdn.hackaday.io/files/284961219172864/usbmic2.c

    Portable stereo recording is not as easy as it was 30 years ago. The Zoom products are not as compact as a vintage recording walkman. Dongle sized sound cards only record a single channel.

    The lion kingdom briefly owned a Marantz PMD-430 costing $500. It fluttered but with a belt replacement & the best tape formulation was probably better than minidisc. The lion kingdom didn't know about belt replacement & was told anything was better than tape, so traded it for minidisc, which led to years of bad lasers, cracked gears, & ATRAC artifacts.

    The same Marantz still shows up on ebay for much lower prices, but there's absolutely no point in a professional tape recorder now. The raspberry pi is very slow when recording 2 soundcards, the SD card is prone to corruption, but it has wifi monitoring & 7 hours of storage.

  • The 1st vlog

    lion mclionhead05/20/2018 at 00:04 0 comments

    It dropped around 3 seconds of audio at one point.  Jack glitched & had feedback for a few minutes.  400mAh battery died after 90 minutes.  It definitely gives up a lot to have the convenience of a Linux system.  With the low power jumper on, there wasn't any wifi interference.

View all 37 project logs

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates