[AudioI] No sound in icecast2 stream

Phillip Fox phill at phillfox.net
Mon Apr 24 19:30:22 UTC 2023


Thank you Derm,
I reviewed several of your blog posts without any luck, then decided to remove my AudioInjector Stereo hat and reinstall it. After booting I was able to hear very quiet audio with some distortion from my stream. 

I tried adjusting some of the levels using "alsamixer", but that didn't seem to help. I ran the "asound.state.MIC.thru.test" script and could hear audio from the onboard mic after a reboot. I reran the "asound.state.RCA.thru.test" script and since then I haven't heard any more audio. I've tried connecting to both the RCA and the headphone port. I've messed with so many settings with the "amixer" commands, and have verified that they took affect in "alsamixer".

I'm familiar with linux OSs, but new to audio on linux. 
I feel like I'm close but missing something obvious, here are some details from my current config. If anyone can point me in the right direction I'd really appreciate it.

I'm running the light version Raspberry PI OS version of Debian Bullseye, so command line only, on a Compute Module 4 board. Would the full UI provide more options? My compute module board has 2 HDMI ports, so my AudioInjector card's card id is 2. 

When I run 'arecord' I get the following output (the output starts at 99% then immediatly drops to 13% and stays there even with no record playing):
*~ $ arecord -D 'hw:CARD=audioinjectorpi,DEV=0' -vv -f dat /dev/null*
Recording WAVE '/dev/null' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
Hardware PCM card 2 'audioinjector-pi-soundcard' device 0 subdevice 0
Its setup is:
  stream       : CAPTURE
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 16
  buffer_size  : 24000
  period_size  : 6000
  period_time  : 125000
  tstamp_mode  : NONE
  tstamp_type  : MONOTONIC
  period_step  : 1
  avail_min    : 6000
  period_event : 0
  start_threshold  : 1
  stop_threshold   : 24000
  silence_threshold: 0
  silence_size : 0
  boundary     : 6755399441055744000
  appl_ptr     : 0
  hw_ptr       : 0
#######+                                           | 13%

Here is the "AlsaMixer" view:
And the 'amixer' output:

And the "amixer" output:
*~ $ amixer -c 2*
Simple mixer control 'Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 127 [100%] [6.00dB]
  Front Right: Playback 127 [100%] [6.00dB]

Simple mixer control 'Master Playback ZC',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]

Simple mixer control 'Sidetone',0
  Capabilities: pvolume pvolume-joined
  Playback channels: Mono
  Limits: Playback 0 - 3
  Mono: Playback 3 [100%] [-6.00dB]

Simple mixer control 'Line',0
  Capabilities: cswitch
  Capture channels: Front Left - Front Right
  Front Left: Capture [off]
  Front Right: Capture [off]

Simple mixer control 'Mic',0
  Capabilities: cswitch cswitch-joined
  Capture channels: Mono
  Mono: Capture [off]

Simple mixer control 'Mic Boost',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 1
  Mono: 1 [100%] [20.00dB]

Simple mixer control 'Playback Deemphasis',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

Simple mixer control 'Capture',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 31 [100%] [12.00dB]
  Front Right: Capture 31 [100%] [12.00dB]

Simple mixer control 'ADC High Pass Filter',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

Simple mixer control 'Input Mux',0
  Capabilities: enum
  Items: 'Line In' 'Mic'
  Item0: 'Line In'

Simple mixer control 'Output Mixer HiFi',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

Simple mixer control 'Output Mixer Line Bypass',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

Simple mixer control 'Output Mixer Mic Sidetone',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

Simple mixer control 'Store DC Offset',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

Thanks to anyone who can help!
Phill


On Thu, Apr 13, 2023, at 6:57 AM, Diarmuid via People wrote:
> You can use arecord as a sound meter to see what sound you are capturing at the mic
> 
> Testing a soundcard <https://rpisounds.wordpress.com/2020/08/02/testing-a-soundcard/>
> rpisounds.wordpress.com <https://rpisounds.wordpress.com/2020/08/02/testing-a-soundcard/>
> webclip.png <https://rpisounds.wordpress.com/2020/08/02/testing-a-soundcard/>
> 
>> Date: Fri, 07 Apr 2023 20:27:02 -0500
>> From: "Phillip Fox" <phill at phillfox.net>
>> 
>> Hello all,
>> I'm trying to setup a local icecast stream using a Raspberry PI CM4 installed on the Compute Module 4 IO Board with the AudioInjector Stero card installed.
>> 
>> I think I've configured the card as outlined in github and I think I have darkice and icecast running properly because they are generating a stream, but there is no sound in the stream.
>> 
>> I think the problem might be with the device I've configured as my source. Running aplay -L I get the following output:
>> hw:CARD=audioinjectorpi,DEV=0
>> 
>>    audioinjector-pi-soundcard, AudioInjector audio wm8731-hifi-0
>> 
>>    Direct hardware device without any conversions
>> 
>> plughw:CARD=audioinjectorpi,DEV=0
>> 
>>    audioinjector-pi-soundcard, AudioInjector audio wm8731-hifi-0
>> 
>>    Hardware device with all software conversions
>> 
>> sysdefault:CARD=audioinjectorpi
>> 
>>    audioinjector-pi-soundcard, AudioInjector audio wm8731-hifi-0
>> 
>>    Default Audio Device
>> 
>> dmix:CARD=audioinjectorpi,DEV=0
>> 
>>    audioinjector-pi-soundcard, AudioInjector audio wm8731-hifi-0
>> 
>>    Direct sample mixing device
>> 
>> hw:CARD=vc4hdmi0,DEV=0
>> 
>>    vc4-hdmi-0, MAI PCM i2s-hifi-0
>> 
>>    Direct hardware device without any conversions
>> 
>> plughw:CARD=vc4hdmi0,DEV=0
>> 
>>    vc4-hdmi-0, MAI PCM i2s-hifi-0
>> 
>>    Hardware device with all software conversions
>> 
>> sysdefault:CARD=vc4hdmi0
>> 
>>    vc4-hdmi-0, MAI PCM i2s-hifi-0
>> 
>>    Default Audio Device
>> 
>> hdmi:CARD=vc4hdmi0,DEV=0
>> 
>>    vc4-hdmi-0, MAI PCM i2s-hifi-0
>> 
>>    HDMI Audio Output
>> 
>> dmix:CARD=vc4hdmi0,DEV=0
>> 
>>    vc4-hdmi-0, MAI PCM i2s-hifi-0
>> 
>>    Direct sample mixing device
>> 
>> hw:CARD=vc4hdmi1,DEV=0
>> 
>>    vc4-hdmi-1, MAI PCM i2s-hifi-0
>> 
>>    Direct hardware device without any conversions
>> 
>> plughw:CARD=vc4hdmi1,DEV=0
>> 
>>    vc4-hdmi-1, MAI PCM i2s-hifi-0
>> 
>>    Hardware device with all software conversions
>> 
>> sysdefault:CARD=vc4hdmi1
>> 
>>    vc4-hdmi-1, MAI PCM i2s-hifi-0
>> 
>>    Default Audio Device
>> 
>> hdmi:CARD=vc4hdmi1,DEV=0
>> 
>>    vc4-hdmi-1, MAI PCM i2s-hifi-0
>> 
>>    HDMI Audio Output
>> 
>> dmix:CARD=vc4hdmi1,DEV=0
>> 
>>    vc4-hdmi-1, MAI PCM i2s-hifi-0
>> 
>>    Direct sample mixing device
>> 
>> 
>> I've tried using the following device options in my darkice config with no luck:
>> hw:CARD=audioinjectorpi,DEV=0
>> 
>> plughw:CARD=audioinjectorpi,DEV=0
>> 
>> sysdefault:CARD=audioinjectorpi
>> 
>> 
>> I've used a headphone line out from my phone and from a small amp (which is plugged into a pre-amp) using both the RCA and the headphone line in.
>> 
>> Is one of those listed devices the right option, or is there something else I can do to test the problem?
>> 
>> Thanks for any help!
>> Phil Fox
>> 
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <https://lists.audioinjector.net/pipermail/people/attachments/20230407/cb0a7d46/attachment-0001.htm>
>> 
>> ------------------------------
>> 
>> Subject: Digest Footer
>> 
>> 
>> --
>> People mailing list
>> People at lists.audioinjector.net
>> https://lists.audioinjector.net/mailman/listinfo/people
>> 
>> 
>> ------------------------------
>> 
>> End of People Digest, Vol 37, Issue 1
>> *************************************
> 
> -- 
> People mailing list
> People at lists.audioinjector.net
> https://lists.audioinjector.net/mailman/listinfo/people
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.audioinjector.net/pipermail/people/attachments/20230424/db727ad8/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: webclip.png
Type: image/png
Size: 10046 bytes
Desc: not available
URL: <https://lists.audioinjector.net/pipermail/people/attachments/20230424/db727ad8/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 91115 bytes
Desc: not available
URL: <https://lists.audioinjector.net/pipermail/people/attachments/20230424/db727ad8/attachment-0003.png>


More information about the People mailing list