A Python package for the whisper.cpp CLI.
Project description
whisper.cpp-cli
A Python wrapper around the whisper.cpp
CLI.
Packages whisper.cpp
into pre-built, pip
-installable
wheels, for macOS and Linux.
Installation
Available on PyPI, with pre-built wheels for macOS and Linux:
pip install whisper.cpp-py
Once installed, whisper-cpp
will be exposed as a command-line tool:
whisper-cpp --help
Usage
Following Simon Willison's Transcribing MP3s with whisper-cpp on macOS, once installed, you can download a Whisper model file:
curl -o ggml-large-v3-q5_0.bin -L 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-large-v3-q5_0.bin?download=true'
Convert from MP3 to 16kHz WAV, if necessary:
ffmpeg -i input.mp3 -ar 16000 input.wav
And transcribe audio, as follows:
whisper-cpp -m ggml-large-v3-q5_0.bin input.wav --output-txt
Development
whisper.cpp
is compiled without any CPU or GPU
acceleration.
In the future, I'd like to distribute builds with
Core ML support,
CUDA support, and
more, given whisper.cpp
's own support for these
features.
The latest release compiles against v1.5.5
.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for whisper_cpp_cli-0.0.1-py3-none-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67ac10b18db4b65855da499b13754478fd9a66d225a56c3c7b08e750ca05f335 |
|
MD5 | f048fd267918f0dc2b74e0e1984ed1c3 |
|
BLAKE2b-256 | 46f6d0b2d9aff90077e8472412bec99943fc429f9dce37fcdc088455527b9880 |
Hashes for whisper_cpp_cli-0.0.1-py3-none-musllinux_1_1_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f985c8d73b4e6fefc3bea7f3272109fe42d77345888ff2f7f7a1ed9cae73dd08 |
|
MD5 | 795e2fc926ff76dac01c2ee1eef42e3a |
|
BLAKE2b-256 | 053fc52ee3c87cd64807199b4b4d35f8c11f54d80217515779f2d3f27cdf9f35 |
Hashes for whisper_cpp_cli-0.0.1-py3-none-musllinux_1_1_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 103a1c0467f6e0ebbb403f4a70cb275e154febd637449070bba54a3bdf111dc3 |
|
MD5 | 37065aba32790f356ac4d0cd5f721b84 |
|
BLAKE2b-256 | 65bab637505154a7bbc08207a7b44c1cbcbb817c09a58806481d232c786bf14c |
Hashes for whisper_cpp_cli-0.0.1-py3-none-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d792dec3439c372d9119267705df6b54fa0e25fbc646ec9a7417a34c78cb665 |
|
MD5 | 0de95d58ef1d49d7c8149f35eb006b89 |
|
BLAKE2b-256 | 6d1602c8ee1d5640810320af983b0a159480ff29c6a229375caa416845d76d34 |
Hashes for whisper_cpp_cli-0.0.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f257a2187dad1ace44c2b2ce1abde6105063858e0a0406663b0060c8e97a83f |
|
MD5 | 9df81c2a338dd0c13e10a4d7d092070d |
|
BLAKE2b-256 | aa0047b29899e1c05b749e60ac842c848315af51fe597a758f2627e139b7366e |
Hashes for whisper_cpp_cli-0.0.1-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebab24bcb5e42064747cda8f5bb8a406525d13b70a284d3b91b7d3dc21c5111c |
|
MD5 | 0cd8aa7afe3b91c2c987012049a915bb |
|
BLAKE2b-256 | 587d659a11094a668a1fdc9ae489776b20cb450cf35eb268057ce6be2cdc0775 |
Hashes for whisper_cpp_cli-0.0.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0343543eea6bbee3ab7407f64bf6d02b0b9d72c89848d4169bd50bd3a1dd7a2f |
|
MD5 | 1f6fde7bb13e45d40931bdf589dda062 |
|
BLAKE2b-256 | 7210d0b4ddbbbeb7cf9deab52b095808e5d0cbd5fb6ef9080d6e565b4cfc2fcc |
Hashes for whisper_cpp_cli-0.0.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fee0adc6249a3d0db45c1d9a7f1e653ceed1b2434cd860c315d75653a867b40 |
|
MD5 | dadd33974fe925151037b867a4af26b8 |
|
BLAKE2b-256 | e960ebe7ce097dc5a521b2f137120334630f6dca4d2516013fbcbf6a5ad71fb3 |
Hashes for whisper_cpp_cli-0.0.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d62cd940964c19c043cd1e8b17133396af7145a03dfc2a290a552df9ece6691 |
|
MD5 | 1611b2e0d8cb2ecfdd3049bad713c01c |
|
BLAKE2b-256 | 3cf2b8b3fb51c82617899f15189ca8e852b95dc31f6f63de07205fa3d2700488 |
Hashes for whisper_cpp_cli-0.0.1-py3-none-macosx_14_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2203261fc2570e2d39377d16a597adaab98697a85eccf650ebe8dea176ad0721 |
|
MD5 | 40129ab68d3f605c0dc03019fdca2bcd |
|
BLAKE2b-256 | f52ac6b06c3c8f65887a01d24a2126b5159ee9007eb747d15b2345c8f9e25d68 |
Hashes for whisper_cpp_cli-0.0.1-py3-none-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06e8a437a398f1207d17765fa0d422ec7f6dfc754640b31d4bc98096835cdf1e |
|
MD5 | b76e0a9e1681dad57dd974a4d743bbac |
|
BLAKE2b-256 | cb8dcdc92ecaac27ff08d989ad453dfc97a9debf5caae1a3b7e2faeb67f7172c |