You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
whisper.cpp/examples/command
Georgi Gerganov 0be27bbd92
command : fix build + fix README + add bold printing
2 years ago
..
CMakeLists.txt examples : add "command" tool (#171) 2 years ago
README.md command : fix build + fix README + add bold printing 2 years ago
command.cpp command : fix build + fix README + add bold printing 2 years ago

README.md

command

This is a basic Voice Assistant example that accepts voice commands from the microphone. More info is available in issue #171.

# Run with default arguments and small model
./command -m ./models/ggml-small.en.bin -t 8

# On Raspberry Pi, use tiny or base models + "-ac 768" for better performance
./command -m ./models/ggml-tiny.en.bin -ac 768 -t 4 -c 0

Building

The command tool depends on SDL2 library to capture audio from the microphone. You can build it like this:

# Install SDL2 on Linux
sudo apt-get install libsdl2-dev

# Install SDL2 on Mac OS
brew install sdl2

make command