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-cli
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
File details
Details for the file whisper_cpp_cli-0.0.3.tar.gz
.
File metadata
- Download URL: whisper_cpp_cli-0.0.3.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59b8f63af2126a46fb997f53cdfd9222539bf759c7ed623d998eba47f7629712 |
|
MD5 | a91229c5228a6fb5fff466ac331476bc |
|
BLAKE2b-256 | 1abedc766c7d1a009f97a445e1db654f3dc8c68d363b94b955ac954949d35566 |
File details
Details for the file whisper_cpp_cli-0.0.3-py3-none-win_amd64.whl
.
File metadata
- Download URL: whisper_cpp_cli-0.0.3-py3-none-win_amd64.whl
- Upload date:
- Size: 364.1 kB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1d2005fc60c967670254614f4c21f37277e25d75c0d670d61f3ad409d53abe1 |
|
MD5 | e814a3da03d9d63df2bf11dcfd6692f3 |
|
BLAKE2b-256 | 8d9e5d0ae83e7e42a9e3305d6de22008a7375721fcfc025cd81836fb6cd09678 |
File details
Details for the file whisper_cpp_cli-0.0.3-py3-none-win32.whl
.
File metadata
- Download URL: whisper_cpp_cli-0.0.3-py3-none-win32.whl
- Upload date:
- Size: 300.2 kB
- Tags: Python 3, Windows x86
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a49118045d3db4af5fdc3c249c8ca648ab73f1c038ccecd4a7590099d6c13b03 |
|
MD5 | fd9060ad2ca65e7804c7d5daef15b75a |
|
BLAKE2b-256 | 0b78c6693cad9679e055ed0417e3cd8f97fd1f621d27e0fe0ea2501fbf7eb755 |
File details
Details for the file whisper_cpp_cli-0.0.3-py3-none-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: whisper_cpp_cli-0.0.3-py3-none-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ff95d91321496ada747ccb13feb873fd7789639f082fc42f86a7179f8822e73 |
|
MD5 | b8fcee9df1d3db74cf0624ee471cd347 |
|
BLAKE2b-256 | a1ee2e57ee256cecc1c1812706e872b82e59b07f0cfb4748a04131ed1842555b |
File details
Details for the file whisper_cpp_cli-0.0.3-py3-none-musllinux_1_1_ppc64le.whl
.
File metadata
- Download URL: whisper_cpp_cli-0.0.3-py3-none-musllinux_1_1_ppc64le.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3, musllinux: musl 1.1+ ppc64le
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca388e49aaf3ac69e7cc5f49564d7c4f4d31d1a2c5e9d4138d5e23291e0a22dd |
|
MD5 | 5d51e99b43cdf3d2d8f39c7e69683224 |
|
BLAKE2b-256 | 84f950e2cf8b6dd86878b8a786d8df59976a3622d1e4a9bb9c8c564a9b337d48 |
File details
Details for the file whisper_cpp_cli-0.0.3-py3-none-musllinux_1_1_i686.whl
.
File metadata
- Download URL: whisper_cpp_cli-0.0.3-py3-none-musllinux_1_1_i686.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3, musllinux: musl 1.1+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72190ff79a831fe19dd6f0e1f9b07e3717a6cac284a39d5d84875f3ebf229f83 |
|
MD5 | b8af71cce6f216aa5779b3498050e96b |
|
BLAKE2b-256 | fb9b7f88d4dbf2556af0c7b18c3b5a1f1a00867a3d6e723d5499d556d1c0aeb6 |
File details
Details for the file whisper_cpp_cli-0.0.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: whisper_cpp_cli-0.0.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 589.0 kB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03133be9568117a85d4d8daedd7fe8469807d10d2fe92e0e177d2fcb5147808f |
|
MD5 | 0a22cfce13323b1afb3ecd395b884cd2 |
|
BLAKE2b-256 | cd1481dc2f85743343286756825312919ff6e29b61d4cd7457c32fc972d77d0f |
File details
Details for the file whisper_cpp_cli-0.0.3-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
.
File metadata
- Download URL: whisper_cpp_cli-0.0.3-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
- Upload date:
- Size: 714.8 kB
- Tags: Python 3, manylinux: glibc 2.17+ ppc64le
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 917fdb870811a4f19ccb6677ca60e97bc32502c5adaacd20f63f4a3fe6d761c7 |
|
MD5 | 9167ded992107cc98f234126e9e64e6f |
|
BLAKE2b-256 | eba6794ae34029bdcecf25c49f8017661c8645d0d0c79d983f5d188faa2287d9 |
File details
Details for the file whisper_cpp_cli-0.0.3-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: whisper_cpp_cli-0.0.3-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 631.0 kB
- Tags: Python 3, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17fa2feb3b0af9a13cc56089d5d52226b93fedf1567545a1da4d6958ccd808b3 |
|
MD5 | 0638e77ad3b4340da4fb2db1c6d0a954 |
|
BLAKE2b-256 | 95f4065c3b22068842486b792092323c49532f00556368a60c23e885ced95745 |
File details
Details for the file whisper_cpp_cli-0.0.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: whisper_cpp_cli-0.0.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 569.7 kB
- Tags: Python 3, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f5c4950690188cb8ca4e33affc63c659e01accdbdad13dbbbdcde16a4e91c05 |
|
MD5 | 81e95a4c66b5d952705085a91911f4de |
|
BLAKE2b-256 | 2b5a44515c53e5ea7434568c3bf3cbd44e29cb377ed2611b70a9b0023f961f7e |
File details
Details for the file whisper_cpp_cli-0.0.3-py3-none-macosx_11_0_arm64.whl
.
File metadata
- Download URL: whisper_cpp_cli-0.0.3-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 523.1 kB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c9cb1d10770da5b7f92c54c2ace29142694b5b392c274db1d95ce1d2f6223d2 |
|
MD5 | 37812acc3fb7395f1565a18b266a7e27 |
|
BLAKE2b-256 | fdeb4d1a96d887b62fdddc58e3e0c9c94f673b54cd9fc025329340f9c4d052bc |
File details
Details for the file whisper_cpp_cli-0.0.3-py3-none-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: whisper_cpp_cli-0.0.3-py3-none-macosx_10_12_x86_64.whl
- Upload date:
- Size: 599.0 kB
- Tags: Python 3, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d85c6ca3dbf907c07a59f8daa620b3d0e3b263356c5220357dd7e06b42bc523 |
|
MD5 | 3f011662630247b69ac2cc14dd8c28e2 |
|
BLAKE2b-256 | a511359833bd72353eb0142defc26ac2d8bd957da5b72540bd546ce7f0caea83 |