From 593eed7988660d479fb111662456678ca4b80fd6 Mon Sep 17 00:00:00 2001 From: misyaguziya Date: Wed, 19 Jun 2024 17:34:57 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B[bugfix]=20Model=20:=20speaker=20ch?= =?UTF-8?q?annel=20audio=5Fsources["channels"]=20->=202=20=E3=81=AB?= =?UTF-8?q?=E5=9B=BA=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/transcription/transcription_transcriber.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/transcription/transcription_transcriber.py b/models/transcription/transcription_transcriber.py index 82f1e981..3766b826 100644 --- a/models/transcription/transcription_transcriber.py +++ b/models/transcription/transcription_transcriber.py @@ -99,7 +99,7 @@ class AudioTranscriber: def processSpeakerData(self): temp_file = BytesIO() with wave.open(temp_file, 'wb') as wf: - wf.setnchannels(self.audio_sources["channels"]) + wf.setnchannels(2) wf.setsampwidth(get_sample_size(paInt16)) wf.setframerate(self.audio_sources["sample_rate"]) wf.writeframes(self.audio_sources["last_sample"])