whisper2subs
A CLI tool that transcribes audio using openai-whisper and translates it using DeepL.
Install
pip install --user whisper2subs
Usage
whisper2subs --help
Translate
In order to perform translations into languages other than English, it's required to provide an API key from DeepL. Using the --deepl-apikey option or with the DEEPL_APIKEY environment variable. You can create a free account to get an API key.
Transcribe and then translate to Spanish the audio of an mp4 file, using the large-v2 model.
whisper2subs -m large-v2 -t es --deepl-apikey "yout-api-key" input.mp4 subs/
If the language of the input file is not specified Whisper will try to detect it. To specify the language of the input file, use the -l option.
whisper2subs -l ja -m large-v2 -t es --deepl-apikey "yout-api-key" input.mp4 subs/
Change output format to str only:
whisper2subs -l ja -t es --output-format srt --deepl-apikey "yout-api-key" input.mp4 subs/
For more information:
whisper2subs --help
Transcribe
Transcribe audio without translating it:
whisper2subs input.mp4 text/
References
Metadata
Release files for whisper2subs 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| whisper2subs-0.2.1.tar.gz | 6.1 kB | Without provenance | Details for whisper2subs-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| whisper2subs-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for whisper2subs-0.2.1-py3-none-any.whl |
Total release size: 13.0 kB
Release files / whisper2subs-0.2.1.tar.gz
| Download URL | whisper2subs-0.2.1.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9487aa33171685d909bb8681e043d3a16088cdacea05f6c06eeb56b954779647
|
|
BLAKE2b-256 checksum How to use checksums |
b601a118cbb452f41fb7ee01bc19c316df22a77b2bd60421d9cd98a30e9409f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / whisper2subs-0.2.1-py3-none-any.whl
| Download URL | whisper2subs-0.2.1-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ca129e438ff05a0abd7ce0bce7349c4c33c4aff8177c067eb08c00f2a2565ea
|
|
BLAKE2b-256 checksum How to use checksums |
28f40e45122547db3186a42a3ee67ab89b91c47b0ed67669cea818d3b5528e57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for whisper2subs 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.