Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PyAudio 基于 PortAudio。是否有检测缓冲区下/溢出以在 PyAudio 中写入/读取音频流?
根据文档,您可以在对 Stream 类进行写入时引发下溢异常:
Stream.write(self, frames, num_frames=None, exception_on_underflow=True)