麥剋風沒有錄製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..

              
   
   

回答列表


相关問題

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...

2  實時音頻從兩個音頻輸入錄製,並在2個音頻輸齣中同時播放  ( Real time audio recording from two audio input and playing simultaneously in 2 a ) 
我有一個帶有2個USB揚聲器和MIC係統的覆盆子PI。我想從一個麥剋風同時錄製另一個揚聲器。比如,MICA錄製將在揚聲器中播放,MICB錄製將在揚聲器A同時和實時播放。那有可能嗎?請建議一些教程或一些圖書館。 請建議任何Linux係統 ...

1  錄製聲音時常數蜂鳴聲  ( Constant beep when recording sound ) 
我正在使用帶有覆盆子pi 3 model b +的外部聲卡。我已經禁用瞭默認的BCM2835聲卡。我已經檢查瞭我的外部聲卡處於活動狀態。使用Alsamixer,我已經打瞭麥剋風和捕獲捲。當我嘗試使用 arecord 錄製聲音時,聲音輸齣文件具有恒定的嗶嗶聲,沒有拾取其他聲音。我試過播放音樂,看看麥剋風是否捕獲瞭背景中...

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" 聲音開始。 以下是波形的外觀: 如果您有任何建議或者如果您已經遇到此問題,我真的很感激...

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:...

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...

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 服務啓動它時(無論是手動還是在啓...




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