【发布时间】:2013-01-17 00:53:18
【问题描述】:
我遇到了和用户一样的错误
Python, Error audio Recording in 16000Hz using Pyaudio
错误与下图相同(行号除外):
在写这篇文章时,我在this link 中找到了我的问题的解决方案。解决方案是将比特率提高到 48000。但我已经在 44100“被批准”了
if p.is_format_supported(44100.0, # Sample rate
input_device=devinfo["index"],
input_channels=devinfo['maxInputChannels'],
input_format=pyaudio.paInt16):
print 'Yay!'
有谁知道为什么我在 44100 被批准并且溢出但它在 48000 工作正常? (我也被批准了48000)。
通常我是那种能得到解决方案并继续前进的人,但这一次,我觉得我需要知道。感谢您的宝贵时间。
【问题讨论】: