{"slug":"voice","name":"Speech to text","kind":"recipe","what":"Accurate speech-to-text for meetings, interviews and voice notes, without sending audio anywhere.","page":"https://insidethemachine.ai/do/voice","status":"ran","status_label":"Checked: the commands were run end to end by us","status_note":"Run end to end by hand on an Apple M4 Mac with 16 GB on 2026-10-15.","wrapper":"The wrapper scripts are generated from the site data. Every .sh passed bash -n and shellcheck and ran in plan mode on Linux (Debian 13). Every .ps1 passed the PowerShell parser and chat.ps1 ran in plan, verify and rollback mode under PowerShell 7 on Linux with Windows calls mocked. Not run on macOS or real Windows.","wrapper_tested":null,"sh":"https://insidethemachine.ai/install/voice.sh","ps1":null,"md":"https://insidethemachine.ai/install/voice.md","json":"https://insidethemachine.ai/install/voice.json","one_liner":"curl -fsSL https://insidethemachine.ai/install/voice.sh | bash","one_liner_windows":null,"actions":{"install":"curl -fsSL https://insidethemachine.ai/install/voice.sh | bash","plan":"curl -fsSL https://insidethemachine.ai/install/voice.sh | bash -s -- plan","verify":"curl -fsSL https://insidethemachine.ai/install/voice.sh | bash -s -- verify","rollback":"curl -fsSL https://insidethemachine.ai/install/voice.sh | bash -s -- rollback --yes"},"env":{"ITM_RAM":"memory in GB instead of detecting it"},"model_by_memory_gb":null,"low_memory":null,"platforms":{"macos":{"install":[{"title":"Install the build tools","lines":[{"k":"mac","c":"xcode-select --install"},{"k":"mac","c":"brew install cmake ffmpeg"}]},{"title":"Get whisper.cpp and a voice model","lines":[{"k":"run","c":"git clone https://github.com/ggml-org/whisper.cpp.git && cd whisper.cpp"},{"k":"run","c":"sh ./models/download-ggml-model.sh $WHISPER"}]},{"title":"Build it","lines":[{"k":"run","c":"cmake -B build && cmake --build build -j --config Release"}]},{"title":"Test it","lines":[{"k":"run","c":"./build/bin/whisper-cli -m models/ggml-$WHISPER.bin -f samples/jfk.wav"}]},{"title":"Use your own audio","lines":[{"k":"you","c":"ffmpeg -i input.m4a -ar 16000 -ac 1 -c:a pcm_s16le output.wav","why":"needs your own file, folder or model name"},{"k":"you","c":"./build/bin/whisper-cli -m models/ggml-$WHISPER.bin -f output.wav -otxt","why":"needs your own file, folder or model name"}]}],"verify":[{"run":"test -x whisper.cpp/build/bin/whisper-cli","expect":"whisper-cli is built"},{"run":"whisper.cpp/build/bin/whisper-cli -m whisper.cpp/models/ggml-$WHISPER.bin -f whisper.cpp/samples/jfk.wav","expect":"the words of the sample speech (“ask not what your country can do for you…”)"}],"rollback":[{"k":"run","c":"rm -rf whisper.cpp"},{"k":"mac","c":"brew uninstall cmake"}]},"linux":{"install":[{"title":"Install the build tools","lines":[{"k":"mac","c":"xcode-select --install"},{"k":"mac","c":"brew install cmake ffmpeg"}]},{"title":"Get whisper.cpp and a voice model","lines":[{"k":"run","c":"git clone https://github.com/ggml-org/whisper.cpp.git && cd whisper.cpp"},{"k":"run","c":"sh ./models/download-ggml-model.sh $WHISPER"}]},{"title":"Build it","lines":[{"k":"run","c":"cmake -B build && cmake --build build -j --config Release"}]},{"title":"Test it","lines":[{"k":"run","c":"./build/bin/whisper-cli -m models/ggml-$WHISPER.bin -f samples/jfk.wav"}]},{"title":"Use your own audio","lines":[{"k":"you","c":"ffmpeg -i input.m4a -ar 16000 -ac 1 -c:a pcm_s16le output.wav","why":"needs your own file, folder or model name"},{"k":"you","c":"./build/bin/whisper-cli -m models/ggml-$WHISPER.bin -f output.wav -otxt","why":"needs your own file, folder or model name"}]}],"verify":[{"run":"test -x whisper.cpp/build/bin/whisper-cli","expect":"whisper-cli is built"},{"run":"whisper.cpp/build/bin/whisper-cli -m whisper.cpp/models/ggml-$WHISPER.bin -f whisper.cpp/samples/jfk.wav","expect":"the words of the sample speech (“ask not what your country can do for you…”)"}],"rollback":[{"k":"run","c":"rm -rf whisper.cpp"},{"k":"mac","c":"brew uninstall cmake"}]},"windows":null}}