Skip to content

Commit

Permalink
Fix for url imports (#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
raivisdejus authored Oct 27, 2024
1 parent b354d30 commit 4772a12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions buzz/transcriber/file_transcriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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)

Expand Down

0 comments on commit 4772a12

Please sign in to comment.