PyAudio ErrNo 输入溢出 -9981 [英] PyAudio ErrNo Input Overflowed -9981
问题描述
我遇到了与用户相同的错误
中找到了问题的解决方案.解决方案是将比特率提高到 48000.但我已经在 44100 处被批准"了
if p.is_format_supported(44100.0, # 采样率input_device=devinfo["index"],input_channels=devinfo['maxInputChannels'],input_format=pyaudio.paInt16):打印耶!"
有谁知道为什么我在 44100 被批准并且溢出但它在 48000 工作正常?(我也被批准了48000).
通常我是那种会找到解决方案并继续前进的人,但这一次,我觉得我需要知道.感谢您抽出宝贵时间.
请确认设备实际支持 44.1.尽管设备声明它确实支持它,但它并不总是真正支持它.
I was getting the same error as the user in
Python, Error audio Recording in 16000Hz using Pyaudio
The error was the same (except for the line numbers) as in the below graphic:
As I was writing this, I found the solution to my problem in this link. The solution was to up the bitrate to 48000. But I had already "been approved" at 44100
if p.is_format_supported(44100.0, # Sample rate
input_device=devinfo["index"],
input_channels=devinfo['maxInputChannels'],
input_format=pyaudio.paInt16):
print 'Yay!'
Does anyone know why I was approved at 44100 and was overflowing but it works fine at 48000? (I was also approved for 48000).
Ordinarily I am the type of guy to get the solution and move on, but this time, I feel that I need to know. Thank you for your time.
Please verify that the device actually support 44.1. Even though the device states it does support it, it's not always actually supporting it.
这篇关于PyAudio ErrNo 输入溢出 -9981的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!