Skip to content

Commit 9600fc3

Browse files
readme : remove invalid flag from Python example (#2396)
* 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 #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
1 parent e2e55a6 commit 9600fc3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,7 @@ For more details, see the conversion script [models/convert-pt-to-ggml.py](model
798798
- [stlukey/whispercpp.py](https://github.com/stlukey/whispercpp.py) (Cython)
799799
- [AIWintermuteAI/whispercpp](https://github.com/AIWintermuteAI/whispercpp) (Updated fork of aarnphm/whispercpp)
800800
- [aarnphm/whispercpp](https://github.com/aarnphm/whispercpp) (Pybind11)
801+
- [abdeladim-s/pywhispercpp](https://github.com/abdeladim-s/pywhispercpp) (Pybind11)
801802
- [x] R: [bnosac/audio.whisper](https://github.com/bnosac/audio.whisper)
802803
- [x] Unity: [macoron/whisper.unity](https://github.com/Macoron/whisper.unity)
803804

examples/python/whisper_processor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def process_audio(wav_file, model_name="base.en"):
2121
if not os.path.exists(wav_file):
2222
raise FileNotFoundError(f"WAV file not found: {wav_file}")
2323

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

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

0 commit comments

Comments
 (0)