Spaces:
Running
Running
UsernamesLame
commited on
readme : remove invalid flag from Python example (#2396)
Browse files* 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
- README.md +1 -0
- examples/python/whisper_processor.py +1 -1
README.md
CHANGED
|
@@ -798,6 +798,7 @@ For more details, see the conversion script [models/convert-pt-to-ggml.py](model
|
|
| 798 |
- [stlukey/whispercpp.py](https://github.com/stlukey/whispercpp.py) (Cython)
|
| 799 |
- [AIWintermuteAI/whispercpp](https://github.com/AIWintermuteAI/whispercpp) (Updated fork of aarnphm/whispercpp)
|
| 800 |
- [aarnphm/whispercpp](https://github.com/aarnphm/whispercpp) (Pybind11)
|
|
|
|
| 801 |
- [x] R: [bnosac/audio.whisper](https://github.com/bnosac/audio.whisper)
|
| 802 |
- [x] Unity: [macoron/whisper.unity](https://github.com/Macoron/whisper.unity)
|
| 803 |
|
|
|
|
| 798 |
- [stlukey/whispercpp.py](https://github.com/stlukey/whispercpp.py) (Cython)
|
| 799 |
- [AIWintermuteAI/whispercpp](https://github.com/AIWintermuteAI/whispercpp) (Updated fork of aarnphm/whispercpp)
|
| 800 |
- [aarnphm/whispercpp](https://github.com/aarnphm/whispercpp) (Pybind11)
|
| 801 |
+
- [abdeladim-s/pywhispercpp](https://github.com/abdeladim-s/pywhispercpp) (Pybind11)
|
| 802 |
- [x] R: [bnosac/audio.whisper](https://github.com/bnosac/audio.whisper)
|
| 803 |
- [x] Unity: [macoron/whisper.unity](https://github.com/Macoron/whisper.unity)
|
| 804 |
|
examples/python/whisper_processor.py
CHANGED
|
@@ -21,7 +21,7 @@ def process_audio(wav_file, model_name="base.en"):
|
|
| 21 |
if not os.path.exists(wav_file):
|
| 22 |
raise FileNotFoundError(f"WAV file not found: {wav_file}")
|
| 23 |
|
| 24 |
-
full_command = f"./main -m {model} -f {wav_file} -
|
| 25 |
|
| 26 |
# Execute the command
|
| 27 |
process = subprocess.Popen(full_command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
|
|
|
| 21 |
if not os.path.exists(wav_file):
|
| 22 |
raise FileNotFoundError(f"WAV file not found: {wav_file}")
|
| 23 |
|
| 24 |
+
full_command = f"./main -m {model} -f {wav_file} -nt"
|
| 25 |
|
| 26 |
# Execute the command
|
| 27 |
process = subprocess.Popen(full_command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|