def __init__(self,
audio_format=None,
channels=1,
rate=16000,
device_ndx=0):
super(Microphone, self).__init__()
audio_format = audio_format or pyaudio.paInt16
self._format = audio_format
self._channels = channels
self._rate = rate
self._device_ndx = device_ndx
self._pyaudio = None
self._stream = None
self._stream_queue = None
评论列表
文章目录