设置 Raspberry Pi 3 个 USB 麦克风(创意声卡)
Set up Raspberry Pi 3 USB mic ( creative sound blaster )
谁能帮我设置我的 RPi 3。我想用我的游戏耳机(Creative Technology, Ltd Sound Blaster Tactic(3D) Sigma 声卡)构建语音到文本/语音识别。扬声器现在可以正常工作,但不幸的是我一直在设置麦克风。
在我调整设置之前,我可以 record/create 一个 wav 文件,但是每当我播放 wav 文件时都没有声音。更改一些设置后,我遇到了以下新错误。提前致谢!
错误:
pi@raspberrypi:~ $ arecord -D plughw:0,0 test9.wav
Recording WAVE 'test9.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
^CAborted by signal Interrupt...
arecord: pcm_read:2031: read error: Interrupted system call
配置:
~/.asoundrc
pcm.!default { type plug slave { pcm "hw:0,0" } }
ctl.!default { type hw card 0 }
/usr/share/alsa/alsa.conf
defaults.ctl.card 0
defaults.pcm.card 0
defaults.pcm.device 0
defaults.pcm.subdevice -1
/lib/modprobe.d/aliases.conf
options snd-pcsp index=-2
options snd-usb-audio index=0
options snd_bcm2835 index=1
options cx88_alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
# Does the reordering.
options snd slots=snd-usb-audio,snd-bcm2835
aplay -l
pi@raspberrypi:~/Desktop $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Sigma [Sound Blaster Tactic(3D) Sigma], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
arecord -l
pi@raspberrypi:~/Desktop $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Sigma [Sound Blaster Tactic(3D) Sigma], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
更新
我已经成功解决了这个问题!事实证明,当我 运行 alsamixer 时,~/.asoundrc
配置文件会自动更新。我的配置被新设置覆盖了。
谁能帮我设置我的 RPi 3。我想用我的游戏耳机(Creative Technology, Ltd Sound Blaster Tactic(3D) Sigma 声卡)构建语音到文本/语音识别。扬声器现在可以正常工作,但不幸的是我一直在设置麦克风。
在我调整设置之前,我可以 record/create 一个 wav 文件,但是每当我播放 wav 文件时都没有声音。更改一些设置后,我遇到了以下新错误。提前致谢!
错误:
pi@raspberrypi:~ $ arecord -D plughw:0,0 test9.wav
Recording WAVE 'test9.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
^CAborted by signal Interrupt...
arecord: pcm_read:2031: read error: Interrupted system call
配置:
~/.asoundrc
pcm.!default { type plug slave { pcm "hw:0,0" } }
ctl.!default { type hw card 0 }
/usr/share/alsa/alsa.conf
defaults.ctl.card 0
defaults.pcm.card 0
defaults.pcm.device 0
defaults.pcm.subdevice -1
/lib/modprobe.d/aliases.conf
options snd-pcsp index=-2
options snd-usb-audio index=0
options snd_bcm2835 index=1
options cx88_alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
# Does the reordering.
options snd slots=snd-usb-audio,snd-bcm2835
aplay -l
pi@raspberrypi:~/Desktop $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Sigma [Sound Blaster Tactic(3D) Sigma], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
arecord -l
pi@raspberrypi:~/Desktop $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Sigma [Sound Blaster Tactic(3D) Sigma], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
更新
我已经成功解决了这个问题!事实证明,当我 运行 alsamixer 时,~/.asoundrc
配置文件会自动更新。我的配置被新设置覆盖了。