def start_recording(self):
audio = pyaudio.PyAudio()
# start Recording
stream = audio.open(format=pyaudio.paInt16, channels=1, rate=16000, input=True, frames_per_buffer=1024)
logger.info("recording...")
self._audio = audio
self._stream = stream
self._stopped = False
self._event = threading.Event()
评论列表
文章目录