Whispercpp v1.8.4 api#168
Conversation
merge typing branch so that we can update types while extending api
…ain compatibility
remove grammar, grammar_rule, etc. and related logic and bindings since it is not in whisper.cpp and would require: whisper.cpp/examples/grammar-parser.cpp
absadiki
left a comment
There was a problem hiding this comment.
No worries at all, thanks @scottmonster for the heads up and for the PR.
This looks like a really solid cleanup/update overall.
One thing I noticed is that the default language was changed to "en". I think it should remain empty str so whisper.cpp can continue auto-detecting the language by default. wht do you think ?
Also I noticed the AI README changes seem to introduce quite a bit of formatting noise (extra empty lines / spacing changes) without much actual content improvement. I think it would probably be better to keep the README diff smaller and focused on meaningful changes only.
Also, feel free to include the additional test files/scripts you mentioned if you think they improve coverage or compatibility testing. More tests are always welcome when they provide useful coverage.
| 'type': str, | ||
| 'description': 'for auto-detection, set to None, "" or "auto"', | ||
| 'options': None, | ||
| 'default': "" |
There was a problem hiding this comment.
I think this should remain "" for auto-detecting the language by default.
There was a problem hiding this comment.
ah yes, you're right. Originally I was trying to match the default whisper-cli args which defaults to en. Once I realized I was going about it the wrong way I had to change a bunch of stuff. I'll change it back to an empty string and provide a cleaner README shortly
revert language back to "" instead of "en" so that whisper will auto-detect language
|
So I literally just copy and pasted your README back in and changed line 295 to |
|
I think everything looks good so far .. we can merge this for now. |
So.... I think I messed up in during that last PR for typing. When I added
**paramsto typing I pulled just to make sure there were no conflicts from the other PRs. However I think I pulled origin (my fork) instead of upstream BEFORE my origin/main had the updated v1.8.4 whisper.cpp. So when you merged that typing branch it also reverted to the original whisper.cpp version. No big deal because this PR includes it. I just wanted to give you a heads up.CHANGES:
suppress_non_speech_tokenstosuppress_nstinternally.OTHER ISSUES/TODO:
If you care to see some of the documents and scripts I used you can look at my working branch. Specifically the coverage and tests directories. A lot of that is AI generated and didnt feel like it substantially improved anything so I left it out. Although you might be interested in having tests/compat and tests/run-compat.py