Whisper CLI
CLI to translate an audiofile on the command-line
Setup
Before to install, make sure you have a OpenAI api key available on your computer PATH.
Execute the command below to install the whisper-cli-tool python package, which offer the whisper command line utility to make transcriptions.
$ pip install whisper-cli-tool
After installation, just execute:
$ whisper --help
usage: whisper [-h] [--response-format RESPONSE_FORMAT] [--language LANGUAGE] [--outfile OUTFILE] infile
Do transcription of an audiofile
positional arguments:
infile Input file name. Supported formats: m4a, mp3, webm, mp4, mpga, wav, mpeg.
options:
-h, --help show this help message and exit
--response-format RESPONSE_FORMAT
Response format. Supported formats: text, srt.
--language LANGUAGE Language the audio should be translated to
--outfile OUTFILE Output file name
Usage
To transcribe an audio to portuguese in text format, just execute:
$ whisper my-audio.mp3
where my-audio.mp3 is your audiofile. The transcribed text will be saved into transcription-output.txt
If you want to change arguments, let's say, change the response format from text to str, just do:
$ whisper my-audio.mp3 --response-format str --language pt --outfile my-transcription.mp3
Release files for whisper-cli-tool 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| whisper-cli-tool-1.0.3.tar.gz | 7.3 kB | Details |
Release files / whisper-cli-tool-1.0.3.tar.gz
| Download URL | whisper-cli-tool-1.0.3.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39c05638adbb169976f302b6f3bf5fffcc96cbdab58acf3f8104f684579e99fc
|
|
BLAKE2b-256 checksum How to use checksums |
5c2836b18a8223e387a08363fe5c5813057d1c7e8d045177774f59a8130aab77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|