From 4772a127a13e433efefa8641cd33445c9afe5f13 Mon Sep 17 00:00:00 2001 From: Raivis Dejus Date: Sun, 27 Oct 2024 18:09:54 +0200 Subject: [PATCH] Fix for url imports (#965) --- buzz/transcriber/file_transcriber.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/buzz/transcriber/file_transcriber.py b/buzz/transcriber/file_transcriber.py index c6714481d..494d8a4e8 100755 --- a/buzz/transcriber/file_transcriber.py +++ b/buzz/transcriber/file_transcriber.py @@ -37,7 +37,7 @@ def run(self): ydl = YoutubeDL( { - "format": "wav/bestaudio/best", + "format": "bestaudio/best", "progress_hooks": [self.on_download_progress], "outtmpl": temp_output_path, "logger": logging.getLogger() @@ -56,12 +56,12 @@ def run(self): "ffmpeg", "-nostdin", "-threads", "0", - "-f", "s16le", + "-i", temp_output_path, "-ac", "1", - "-acodec", "pcm_s16le", "-ar", str(SAMPLE_RATE), + "-acodec", "pcm_s16le", "-loglevel", "panic", - "-i", temp_output_path, wav_file] + wav_file] result = subprocess.run(cmd, capture_output=True)