whisper.cpp icon indicating copy to clipboard operation
whisper.cpp copied to clipboard

Start/stop recording in stream

Open ZechenM opened this issue 3 years ago • 1 comments

I was wondering if there is a feature that I can press space bar, for example, to start and stop recording the audio input from my microphone in the streaming feature rather than it do automatic speech recognition. Thanks!

ZechenM avatar May 29 '23 19:05 ZechenM

The stream folder already supports CLI-based streaming operation: link to stream

If you are working in Python, you can use pynput to detect spacebar presses and releases. See more here: https://pynput.readthedocs.io/en/latest/keyboard.html?highlight=space

For C++: https://stackoverflow.com/questions/27937617/how-detect-spacebar

chinardankhara avatar Oct 29 '23 15:10 chinardankhara