完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
树莓派上使用USB麦克风时,如果用python的pyaudio库进行录音时,会出现一大堆错误,相关的信息在网上已经查到过了,内容如下:
The problem is this: Pyaudio() will try to find all the default devices on the same adapter. For the stock RPi card, there is no input device on the sound "card" (which is a chip). Like many I added a u*** microphone, which is recognized as a sound card, but can ONLY handle input. I reloaded my image on the Raspberry Pi and did not install Pyaudio, is not worth it. In the place where I wanted to use the microphone, I shell out from Python and call "arecord." This alsa utility is included with the Debian Wheezy distro for the Pi. Then I take the resulting ".wav" file and use that for speech recognition. Eventually I will find a way to use the microphone with Pyaudio. 具体应该怎么做来避免这个错误,还请指教 |
|
相关推荐 |
|
只有小组成员才能发言,加入小组>>
5935 浏览 0 评论
14239 浏览 9 评论
7836 浏览 0 评论
基于Amazon Echo 和 Raspberry Pi 的自动窗帘控制
7172 浏览 1 评论
【下载】《Linux+树莓派玩转智能家居》——亲手进行树莓派应用制作
161145 浏览 374 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-31 03:27 , Processed in 0.515431 second(s), Total 41, Slave 34 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号