麦克风没有录制Hifiberry和Raspberry Pi 3 -- pi-3 领域 和 alsa 领域 和 hifiberry 领域 和 microphone 领域 和 arecord 领域 raspberrypi 相关 的问题

Microphone is not recording with HifiBerry and Raspberry Pi 3


简体版||繁體版
3
vote

问题

中文

我按照指定安装了Hifiberry驱动程序。识别板,音频输出正常工作。 只是音频输入似乎无法正常工作。我检查了麦克风是否被静音,但我无法识别任何糟糕的设置。 以下是Amixer命令的输出:

  Simple mixer control 'DSP Program',0 Capabilities: enum Items: 'FIR interpolation with de-emphasis' 'Low latency IIR with de-  emphasis' 'High attenuation with de-emphasis' 'Fixed process flow' 'Ringing-less low latency FIR' Item0: 'FIR interpolation with de-emphasis' Simple mixer control 'Analogue',0   Capabilities: pvolume   Playback channels: Front Left - Front Right   Limits: Playback 0 - 1   Mono:   Front Left: Playback 1 [100%] [0.00dB]   Front Right: Playback 1 [100%] [0.00dB] Simple mixer control 'Analogue Playback Boost',0   Capabilities: volume   Playback channels: Front Left - Front Right   Capture channels: Front Left - Front Right   Limits: 0 - 1   Front Left: 1 [100%] [0.80dB]   Front Right: 1 [100%] [0.80dB] Simple mixer control 'Auto Mute',0   Capabilities: pswitch   Playback channels: Front Left - Front Right   Mono:   Front Left: Playback [off]   Front Right: Playback [off] Simple mixer control 'Auto Mute Mono',0   Capabilities: pswitch pswitch-joined   Playback channels: Mono   Mono: Playback [off] Simple mixer control 'Auto Mute Time Left',0   Capabilities: enum   Items: '21ms' '106ms' '213ms' '533ms' '1.07s' '2.13s' '5.33s'     '10.66s'   Item0: '21ms' Simple mixer control 'Auto Mute Time Right',0   Capabilities: enum   Items: '21ms' '106ms' '213ms' '533ms' '1.07s' '2.13s' '5.33s'     '10.66s'   Item0: '213ms' Simple mixer control 'Clock Missing Period',0   Capabilities: enum   Items: '1s' '2s' '3s' '4s' '5s' '6s' '7s' '8s'   Item0: '1s' Simple mixer control 'Deemphasis',0   Capabilities: pswitch pswitch-joined   Playback channels: Mono   Mono: Playback [on] Simple mixer control 'Digital',0   Capabilities: pvolume pswitch   Playback channels: Front Left - Front Right   Limits: Playback 0 - 207   Mono:   Front Left: Playback 207 [100%] [0.00dB] [on]   Front Right: Playback 207 [100%] [0.00dB] [on] Simple mixer control 'Max Overclock DAC',0   Capabilities: volume volume-joined   Playback channels: Mono   Capture channels: Mono   Limits: 0 - 40      Mono: 40 [100%]     Simple mixer control 'Max Overclock DSP',0   Capabilities: volume volume-joined   Playback channels: Mono   Capture channels: Mono Limits: 0 - 40   Mono: 40 [100%] Simple mixer control 'Max Overclock PLL',0   Capabilities: volume volume-joined   Playback channels: Mono   Capture channels: Mono   Limits: 0 - 20   Mono: 20 [100%] Simple mixer control 'Volume Ramp Down Emergency Rate',0   Capabilities: enum   Items: '1 sample/update' '2 samples/update' '4 samples/update'     'Immediate'   Item0: 'Immediate' Simple mixer control 'Volume Ramp Down Emergency Step',0   Capabilities: enum   Items: '4dB/step' '2dB/step' '1dB/step' '0.5dB/step'   Item0: '0.5dB/step' Simple mixer control 'Volume Ramp Down Rate',0   Capabilities: enum   Items: '1 sample/update' '2 samples/update' '4 samples/update'     'Immediate'   Item0: 'Immediate' Simple mixer control 'Volume Ramp Down Step',0   Capabilities: enum   Items: '4dB/step' '2dB/step' '1dB/step' '0.5dB/step'   Item0: '0.5dB/step' Simple mixer control 'Volume Ramp Up Rate',0   Capabilities: enum   Items: '1 sample/update' '2 samples/update' '4 samples/update'     'Immediate'   Item0: '4 samples/update' Simple mixer control 'Volume Ramp Up Step',0   Capabilities: enum   Items: '4dB/step' '2dB/step' '1dB/step' '0.5dB/step'   Item0: '0.5dB/step'   

这是arecord -l输出:

    **** List of CAPTURE Hardware Devices ****   card 1: sndrpihifiberry [snd_rpi_hifiberry_dacplusadc], device 0: HiFiBerry DAC+ADC HiFi multicodec-0 []     Subdevices: 1/1     Subdevice #0: subdevice #0   

这是我运行用于录制音频的命令:

    arecord -vv -d 10 -f cd -t wav -D hw:1,0 foobar.wav   

以下输出:

   Recording WAVE 'foobar.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo  Hardware PCM card 1 'snd_rpi_hifiberry_dacplusadc' device 0 subdevice 0  Its setup is:    stream       : CAPTURE    access       : RW_INTERLEAVED    format       : S16_LE    subformat    : STD    channels     : 2    rate         : 44100    exact rate   : 44100 (44100/1)    msbits       : 16    buffer_size  : 22052    period_size  : 5513    period_time  : 125011    tstamp_mode  : NONE    tstamp_type  : MONOTONIC    period_step  : 1    avail_min    : 5513    period_event : 0    start_threshold  : 1    stop_threshold   : 22052    silence_threshold: 0    silence_size : 0    boundary     : 1445199872    appl_ptr     : 0    hw_ptr       : 0       #+                                                 | 00%   

HiffyBerry上的LED录制灯连续为红色,但声级显示为零。

我找不到为什么无法录制输入的原因..

英文原文

I installed the HifiBerry driver as specified. The Board is recognized and the audio output works fine. Just the audio input seems to be not working. I checked if the microphone is muted but I can't recognize any bad setting. Here is the output of the amixer command:

Simple mixer control 'DSP Program',0 Capabilities: enum Items: 'FIR interpolation with de-emphasis' 'Low latency IIR with de-  emphasis' 'High attenuation with de-emphasis' 'Fixed process flow' 'Ringing-less low latency FIR' Item0: 'FIR interpolation with de-emphasis' Simple mixer control 'Analogue',0   Capabilities: pvolume   Playback channels: Front Left - Front Right   Limits: Playback 0 - 1   Mono:   Front Left: Playback 1 [100%] [0.00dB]   Front Right: Playback 1 [100%] [0.00dB] Simple mixer control 'Analogue Playback Boost',0   Capabilities: volume   Playback channels: Front Left - Front Right   Capture channels: Front Left - Front Right   Limits: 0 - 1   Front Left: 1 [100%] [0.80dB]   Front Right: 1 [100%] [0.80dB] Simple mixer control 'Auto Mute',0   Capabilities: pswitch   Playback channels: Front Left - Front Right   Mono:   Front Left: Playback [off]   Front Right: Playback [off] Simple mixer control 'Auto Mute Mono',0   Capabilities: pswitch pswitch-joined   Playback channels: Mono   Mono: Playback [off] Simple mixer control 'Auto Mute Time Left',0   Capabilities: enum   Items: '21ms' '106ms' '213ms' '533ms' '1.07s' '2.13s' '5.33s'     '10.66s'   Item0: '21ms' Simple mixer control 'Auto Mute Time Right',0   Capabilities: enum   Items: '21ms' '106ms' '213ms' '533ms' '1.07s' '2.13s' '5.33s'     '10.66s'   Item0: '213ms' Simple mixer control 'Clock Missing Period',0   Capabilities: enum   Items: '1s' '2s' '3s' '4s' '5s' '6s' '7s' '8s'   Item0: '1s' Simple mixer control 'Deemphasis',0   Capabilities: pswitch pswitch-joined   Playback channels: Mono   Mono: Playback [on] Simple mixer control 'Digital',0   Capabilities: pvolume pswitch   Playback channels: Front Left - Front Right   Limits: Playback 0 - 207   Mono:   Front Left: Playback 207 [100%] [0.00dB] [on]   Front Right: Playback 207 [100%] [0.00dB] [on] Simple mixer control 'Max Overclock DAC',0   Capabilities: volume volume-joined   Playback channels: Mono   Capture channels: Mono   Limits: 0 - 40      Mono: 40 [100%]     Simple mixer control 'Max Overclock DSP',0   Capabilities: volume volume-joined   Playback channels: Mono   Capture channels: Mono Limits: 0 - 40   Mono: 40 [100%] Simple mixer control 'Max Overclock PLL',0   Capabilities: volume volume-joined   Playback channels: Mono   Capture channels: Mono   Limits: 0 - 20   Mono: 20 [100%] Simple mixer control 'Volume Ramp Down Emergency Rate',0   Capabilities: enum   Items: '1 sample/update' '2 samples/update' '4 samples/update'     'Immediate'   Item0: 'Immediate' Simple mixer control 'Volume Ramp Down Emergency Step',0   Capabilities: enum   Items: '4dB/step' '2dB/step' '1dB/step' '0.5dB/step'   Item0: '0.5dB/step' Simple mixer control 'Volume Ramp Down Rate',0   Capabilities: enum   Items: '1 sample/update' '2 samples/update' '4 samples/update'     'Immediate'   Item0: 'Immediate' Simple mixer control 'Volume Ramp Down Step',0   Capabilities: enum   Items: '4dB/step' '2dB/step' '1dB/step' '0.5dB/step'   Item0: '0.5dB/step' Simple mixer control 'Volume Ramp Up Rate',0   Capabilities: enum   Items: '1 sample/update' '2 samples/update' '4 samples/update'     'Immediate'   Item0: '4 samples/update' Simple mixer control 'Volume Ramp Up Step',0   Capabilities: enum   Items: '4dB/step' '2dB/step' '1dB/step' '0.5dB/step'   Item0: '0.5dB/step' 

This is the arecord -l output:

  **** List of CAPTURE Hardware Devices ****   card 1: sndrpihifiberry [snd_rpi_hifiberry_dacplusadc], device 0: HiFiBerry DAC+ADC HiFi multicodec-0 []     Subdevices: 1/1     Subdevice #0: subdevice #0 

This is the command that I run for recording the audio:

  arecord -vv -d 10 -f cd -t wav -D hw:1,0 foobar.wav 

With the following output:

 Recording WAVE 'foobar.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo  Hardware PCM card 1 'snd_rpi_hifiberry_dacplusadc' device 0 subdevice 0  Its setup is:    stream       : CAPTURE    access       : RW_INTERLEAVED    format       : S16_LE    subformat    : STD    channels     : 2    rate         : 44100    exact rate   : 44100 (44100/1)    msbits       : 16    buffer_size  : 22052    period_size  : 5513    period_time  : 125011    tstamp_mode  : NONE    tstamp_type  : MONOTONIC    period_step  : 1    avail_min    : 5513    period_event : 0    start_threshold  : 1    stop_threshold   : 22052    silence_threshold: 0    silence_size : 0    boundary     : 1445199872    appl_ptr     : 0    hw_ptr       : 0       #+                                                 | 00% 

The LED recording lamp on the Hiffyberry is continuously red but the sound level is shown to be zero.

I can't find the reason why no input can be recorded..

              
   
   

回答列表


相关问题

2  实时音频从两个音频输入录制,并在2个音频输出中同时播放  ( Real time audio recording from two audio input and playing simultaneously in 2 a ) 
我有一个带有2个USB扬声器和MIC系统的覆盆子PI。我想从一个麦克风同时录制另一个扬声器。比如,MICA录制将在扬声器中播放,MICB录制将在扬声器A同时和实时播放。那有可能吗?请建议一些教程或一些图书馆。 请建议任何Linux系统 ...

3  麦克风没有录制Hifiberry和Raspberry Pi 3  ( Microphone is not recording with hifiberry and raspberry pi 3 ) 
我按照指定安装了Hifiberry驱动程序。识别板,音频输出正常工作。 只是音频输入似乎无法正常工作。我检查了麦克风是否被静音,但我无法识别任何糟糕的设置。 以下是Amixer命令的输出: Simple mixer control 'DSP Program',0 Capabilities: enum Items:...

1  录制声音时常数蜂鸣声  ( Constant beep when recording sound ) 
我正在使用带有覆盆子pi 3 model b +的外部声卡。我已经禁用了默认的BCM2835声卡。我已经检查了我的外部声卡处于活动状态。使用Alsamixer,我已经打了麦克风和捕获卷。当我尝试使用 arecord 录制声音时,声音输出文件具有恒定的哔哔声,没有拾取其他声音。我试过播放音乐,看看麦克风是否捕获了背景中...

1  arecord:“main:828:设备或资源繁忙”运行时运行,但从CLI工作正常  ( Arecord main828 device or resource busy when run via systemd service but w ) 
我有一个Python脚本,当按下GPIO按钮时,启动 arecord 进程。这将音频从USB麦克风( plughw:CARD=GS3,DEV=0 )记录到另一个用于调制的程序,并最终通过 rpitx 。 我花了很长时间从终端调试脚本,并且已经完美地工作了。但是,当我从 systemd 服务启动它时(无论是手动还是在启...

0  使用I2S MEMS麦克风与铬  ( Using i2s mems microphone with chromium ) 
我有一个 adafruit i2s mems麦克风突破我' VE与 MAX98357 I2S Class-D Mono AMP 使用adafruit指令和 raspberry pi安装程序脚本。 我可以使用 arecord 使用我的raspberry pi 4成功记录 i2smic.py 配置。,AMP /扬声器也使...

0  无法获得SOX或arecord与覆盆子PI + USB麦克风一起使用  ( Can not get sox or arecord to work with raspberry pi usb microphone ) 
我正在尝试使用SOX。使用MI-305 USB麦克风。 rec test.wav 是 rec FAIL formats: can't open input 'hw:0,0': snd_pcm_open error: No such file or directory lsusb 当USB MIC连接时提供...

1  在通过Cron运行时,arecord没有这样的文件或目录错误  ( Arecord no such file or directory error when running via cron ) 
所以我可以运行: arecord -d 9 -f S16_LE -c 1 -r44100 -t wav /home/pi/signal_9s.wav 从终端开始,它按预期工作。它记录9秒钟并保存到信号_9s.wav文件。但是,如果我将其设置为从Cron作业运行,我得到: arecord: main:828...

2  I2S MEMS麦克风在录制开始时的声音  ( I2s mems microphone pop sound at the beginning of the recording ) 
我正在使用 adafruit i2s mems麦克风在覆盆子pi 4运行Raspbian Buster。我成功安装了它按照adafruit指南。它正好工作,用于使用arecord录制。 但是,每次启动录制时,它都以"POP" 声音开始。 以下是波形的外观: 如果您有任何建议或者如果您已经遇到此问题,我真的很感激...

1  USB麦克风给出错误“设备或资源繁忙”  ( Usb microphone gives error device or resource busy ) 
我最近购买了这个麦克风与我的pi 3一起使用,但我似乎无法上班。我运行 arecord -l ,PI可以看到我的设备: **** List of CAPTURE Hardware Devices **** card 1: Device [(LCS) USB Audio Device], device 0: USB...

0  使用USB声卡录制时呼吸声[Alsamixer]  ( Whistle sound when recording with usb sound card alsamixer ) 
我正在研究一个项目,其中我需要使用raspberry pi录制语音。 我正在使用alsamixer和arecord,问题是,当我录制时,它开始播放奇怪的哨声/呜咽/干扰声音。它就像一个 beeeee ,即使没有麦克风插入,它也无关紧要,它开始执行此声音。我尝试过7.1声道声卡和3D声卡,但结果是相同的。任何帮助都得...

0  arecord只适用于-d  ( Arecord only works with d ) 
长话短说,我的麦克风昨天正常工作。然后我连接了一对USB扬声器,然后再次断开连接。现在我无法使用"-d" 参数来获得arecord的小事。 我的设置目前是带有HDMI和声音输出的监视器(完美工作),1 USB MIC(确实正常工作,但现在不起作用)。 **** List of CAPTURE Hardware D...




© 2021 it.wenda123.org All Rights Reserved. 问答之家 版权所有