]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
readme : remove invalid flag from Python example (#2396)
authorUsernamesLame <redacted>
Fri, 30 Aug 2024 11:00:38 +0000 (07:00 -0400)
committerGitHub <redacted>
Fri, 30 Aug 2024 11:00:38 +0000 (14:00 +0300)
* 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
examples/python/whisper_processor.py

index c9a3b4c279df33a96ad1c19c73cb8abf870ca441..a461cd358e84fac1f1bcc42ea95d4c7cf18fb17c 100644 (file)
--- a/README.md
+++ b/README.md
@@ -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)
 
index 3e84e587deff0cde6582a3c340cdae416b5782b1..354b3c0d95cb2532c77e5079c16b7cfd858da8de 100644 (file)
@@ -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)