Add option to set whisper recording command #91
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello and thanks for the plugin! I had a little issue getting whisper to work, so submitting a fix your consideration.
This PR adds a way to manually specify in the config which command (
sox
,ffmpeg
, orarecord
) should be used for recording for commands likeGpWhisper
. E.g. use it in.setup()
likewhisper_rec_cmd = 'sox'
.I had an issue trying to use
GpWhisper
, where the output would always be just "you". I found the recordings,rec.wav
, were always the correct length, but only silence. I think the problem is the options toffmpeg
select audio input device:0
, which doesn't work in my case. Modifyinggp/init.lua
to always chooserec_cmd = "sox"
works fine for me. There's probably some way to look into the audio input devices more and improve the autodetection, but I'm not sure how to do that well, and thinking that this may not be a common issue anyway.Debugging my issue with audio devices...
Here's some info from a terminal session of me figuring out what was going on, if it helps.
Screenshot with notes
Raw text output
Screenshot of new error message in action
If you pick an invalid value, you'll find out when you try to record: