Whisper command line client that uses CTranslate2
Project description
Introduction
Whisper command line client compatible with original OpenAI client based on CTranslate2.
It uses CTranslate2 and Faster-whisper Whisper implementation that is up to 4 times faster than openai/whisper for the same accuracy while using less memory.
Goals of the project:
- Provide an easy way to use the CTranslate2 Whisper implementation
- Easy the migration for people using OpenAI Whisper CLI
Installation
Just type:
pip install -U whisper-ctranslate2
Alternatively, the following command will pull and install the latest commit from this repository, along with its Python dependencies:
pip install https://github.com/jordimas/whisper-ctranslate2
Usage
Same command line that OpenAI whisper.
To transcribe:
whisper-ctranslate2 inaguracio2011.mp3 --model medium
To translate:
whisper-ctranslate2 inaguracio2011.mp3 --model medium --task translate
Additionally using:
whisper-ctranslate2 --help
All the supported options with their help are shown.
CTranslate2 specific options
On top of the OpenAI Whisper command line options, there are some specific CTranslate2 options.
--compute_type {default,auto,int8,int8_float16,int16,float16,float32}
Type of quantization to use. On CPU int8 will give the best performance.
--model_directory MODEL_DIRECTORY
Directory where to find a CTranslate Whisper model, for example a fine-tunned Whisper model. The model should be in CTranslate2 format.
Contact
Jordi Mas jmas@softcatala.org
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 Distribution
Hashes for whisper-ctranslate2-0.0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0e3c1e3918342179edafd75f792a2299ed4b87b7c5e2e3b3eb986c478669c7b |
|
MD5 | 8d59290ef1ff28bdfdd95f1acb33d4eb |
|
BLAKE2b-256 | dd5b58dd1b57c22f0b87ea4d1f0ef099b49c0d6c704073307e2fbc18cecf5a85 |
Hashes for whisper_ctranslate2-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b52248e559a3f486db71f8938b45328092787f7dc5a34097047b8c59431fc78c |
|
MD5 | a8b5c8142ac718f2cd3016c8f646410c |
|
BLAKE2b-256 | cd5a077b98daf7e648335e0e695b3fe958fe64acf0d4a5791ee354aa31ea1c48 |