Do transcriptions of audiofiles using the whisper-1 model from OpenAI.
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file whisper-cli-tool-1.0.3.tar.gz.
File metadata
- Download URL: whisper-cli-tool-1.0.3.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39c05638adbb169976f302b6f3bf5fffcc96cbdab58acf3f8104f684579e99fc
|
|
| MD5 |
9b4da95bc66da4fc1cf6e165773c91ad
|
|
| BLAKE2b-256 |
5c2836b18a8223e387a08363fe5c5813057d1c7e8d045177774f59a8130aab77
|