T
T
thescs2020-10-05 19:53:22
Microphones
thescs, 2020-10-05 19:53:22

Why can't ALSA see the microphone?

Good afternoon!
There was a need to broadcast sound from a microphone to the Internet using icecast.
On Ubuntu server 20.04 were installed:

  1. icecast
  2. Darkice
  3. ALSA


Nothing foreshadowed trouble ...
Faced the following problem. A bunch of icecast and darkice works fine. Darkice takes the stream from hw:0,0 and sends it to the icast. But the output is silence.

Darkais config:
[general]
duration        = 0      # duration in s, 0 forever
bufferSecs      = 1      # buffer, in seconds
reconnect       = yes    # reconnect if disconnected

[input]
device          = hw:0,0        # `pulse' for Pulseaudio
sampleRate      = 22050   # sample rate 11025, 22050 or 44100
bitsPerSample   = 16      # bits
channel         = 2       # 2 = stereo

[icecast2-0]
bitrateMode     = abr       # variable bit rate (`cbr' constant, `abr' average)
quality         = 1.0       # 1.0 is best quality
format          = mp3       # format. Choose `vorbis' for OGG Vorbis
bitrate         = 16       # bitrate
lowpass         = 5000
sampleRate      = 22050
server          = ip.address # or IP
port            = 8000      # port for IceCast2 access
password        = ****** # source password to the IceCast2 server
mountPoint      = live            # mount point on the IceCast2 server .mp3 or .ogg
name            = HGL d.30 Live
description     = Service translation
genre           = live


With this, everything seems to be in order.
I try to record the sound from the microphone through Alsa to a file: I plug the
arecord -d 60 rec

plugs for a minute, scream, rumble, then analyze the resulting recording:
[email protected]:/home/thescs# sox rec -n stat
sox WARN wav: Premature EOF on .wav input file
Samples read:            132770
Length (seconds):     16.596250
Scaled by:         2147483647.0
Maximum amplitude:     0.000000
Minimum amplitude:     0.000000
Midline amplitude:     0.000000
Mean    norm:          0.000000
Mean    amplitude:     0.000000
RMS     amplitude:     0.000000
Maximum delta:         0.000000
Minimum delta:         0.000000
Mean    delta:         0.000000
RMS     delta:         0.000000
Rough   frequency:  -2147483648


Everything is zero...
Through alsamixer, I turned on all the channels, raised their levels to the maximum. But nothing.
At this point, I stalled. Two hours spent on Google did not lead to any result.
I tend to think that the problem is directly in Alce.

Khabrovchane, please help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
thescs, 2020-10-05
@thescs

Got it!
In alsamixer --view capture set everything to the maximum.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question