mirror of
https://github.com/chidiwilliams/buzz.git
synced 2026-03-14 22:55:46 +01:00
Fix for url imports (#965)
This commit is contained in:
parent
b354d302b7
commit
4772a127a1
1 changed files with 4 additions and 4 deletions
|
|
@ -37,7 +37,7 @@ class FileTranscriber(QObject):
|
|||
|
||||
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 @@ class FileTranscriber(QObject):
|
|||
"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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue