ARM环境中的pyaudio FATAL错误

时间:2016-03-01 12:19:18

标签: arm pyaudio

我在arm平台上遇到了pyaudio问题。

有解决方法吗?

$ python
Python 2.7.6 (default, Jun 22 2015, 18:31:26)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyaudio
>>> pa = pyaudio.PyAudio()
ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
FATAL: cannot locate cpu MHz in /proc/cpuinfo

1 个答案:

答案 0 :(得分:0)

只是解决方法。 我根据以下链接修补了ARM Ubuntu 14.04上的jackd2,

  

https://gist.github.com/rogerallen/0346a1812deda2a380da

并修改了/etc/ld.so.conf:

  

的/ usr /本地/ lib中
  包括/etc/ld.so.conf.d / * .conf

  

$ sudo ldconfig