Skip to content

Commit

Permalink
readme : remove invalid flag from Python example (ggerganov#2396)
Browse files Browse the repository at this point in the history
* Update README.md

Fix broken C-style API link

* Update whisper_processor.py

Update examples/python/whisper_processor.py to remove nonexistent flag "-np" from subprocess.Popen call.

* Add pywhispercpp to the Pybind11 Python wrapper list

abdeladim-s/pywhispercpp wasn't added to the list / was removed at some point (?)

It was referenced in issue ggerganov#9, so I feel like it's worthy of being added as it's the first if not one of the first Python wrappers for whisper.cpp
  • Loading branch information
UsernamesLame authored and iThalay committed Sep 23, 2024
1 parent d4bf766 commit 1aad051
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,7 @@ For more details, see the conversion script [models/convert-pt-to-ggml.py](model
- [stlukey/whispercpp.py](https://github.com/stlukey/whispercpp.py) (Cython)
- [AIWintermuteAI/whispercpp](https://github.com/AIWintermuteAI/whispercpp) (Updated fork of aarnphm/whispercpp)
- [aarnphm/whispercpp](https://github.com/aarnphm/whispercpp) (Pybind11)
- [abdeladim-s/pywhispercpp](https://github.com/abdeladim-s/pywhispercpp) (Pybind11)
- [x] R: [bnosac/audio.whisper](https://github.com/bnosac/audio.whisper)
- [x] Unity: [macoron/whisper.unity](https://github.com/Macoron/whisper.unity)
Expand Down
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 1aad051

Please sign in to comment.