whisper.cpp
whisper.cpp copied to clipboard
Start/stop recording in stream
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!
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