Skip to content

Commit

Permalink
Update whisper_processor.py
Browse files Browse the repository at this point in the history
Update examples/python/whisper_processor.py to remove nonexistent flag "-np" from subprocess.Popen call.
  • Loading branch information
UsernamesLame authored Aug 29, 2024
1 parent a9617dc commit 46a45fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/python/whisper_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def process_audio(wav_file, model_name="base.en"):
if not os.path.exists(wav_file):
raise FileNotFoundError(f"WAV file not found: {wav_file}")

full_command = f"./main -m {model} -f {wav_file} -np -nt"
full_command = f"./main -m {model} -f {wav_file} -nt"

# Execute the command
process = subprocess.Popen(full_command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
Expand Down

0 comments on commit 46a45fe

Please sign in to comment.