Dependencies: SDL2 and FFTW3
Linux and Mac OS
git clone https://github.com/ggerganov/kbd-audio
cd kbd-audio
git submodule update --init
mkdir build && cd build
cmake ..
make
Windows
todo
Record audio to a raw binary file on disk
Usage: ./record-full output.kbd
Playback a recording captured via the record-full tool
Usage: ./play-full input.kbd
Record audio only while typing. Useful for collecting training data for keytap
Usage: ./record output.kbd
Playback a recording created via the record tool
Usage: ./play input.kbd
Detect pressed keys via microphone audio capture in real-time. Uses training data captured via the record tool.
Usage: ./keytap-gui input0.kbd [input1.kbd] [input2.kbd] ...
Live demo (WebAssembly threads required)
Detect pressed keys via microphone audio capture. Uses statistical information (n-gram frequencies) about the English language. No training data required. The 'recording.kbd' input file has to be generated via the record-full tool and contains the audio data that will be analyzed.
Usage: ./keytap2-gui recording.kbd n-gram.txt