Skip to main content

Whisper-Run

Whisper-Run is a pip CLI tool for processing audio files using Whisper models with speaker diarization capabilities. The tool allows you to process audio files, select models for audio processing, and save the results in JSON format.

It uses the OpenAI-Whisper model implementation from OpenAI Whisper, based on the ctranslate2 library from faster-whisper, and pyannote's speaker-diarization-3.1. Check their documentation if needed.

Installation

To install Whisper-Run, run the following command:

pip install whisper-run

Usage

You can call Whisper-Run from the command line using the following syntax:

whisper-run --file_path=<file_path>

Example

To process an audio file using the CPU and a specific file path:

whisper-run --device=cpu --file_path=your_file_path

When you run the command, you'll be prompted to select a model for audio processing:

[?] Select a model for audio processing:
 > distil-large-v3
   distil-large-v2
   large-v3
   large-v2
   large
   medium
   small
   base
   tiny

Flags

  • --device: Specify the device to use for processing (e.g., cpu or cuda).
  • --file_path: Specify the path to the audio file you want to process.
  • --hf_auth_token: Optional. Pass the Hugging Face Auth Token or set the HF_AUTH_TOKEN environment variable.

Programmatic Usage

You can also use Whisper-Run programmatically in your Python scripts. Below is a basic usage example demonstrating how to use the Whisper-Run library:

Example Script

from whisper_run import AudioProcessor

def main():
    processor = AudioProcessor(file_path="your_file_path",
                               device="cpu",
                               model_name="large-v3"
                               )
    processor.process()

if __name__ == "__main__":
    main()

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

License

This project is licensed under the Apache 2.0 License.

Metadata

Release files for whisper-run 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for whisper-run 1.3.0
File Size Uploaded
whisper-run-1.3.0.tar.gz 6.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for whisper-run 1.3.0
File Interpreter ABI Platform
whisper_run-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.7 MB

Release files / whisper-run-1.3.0.tar.gz

Download URL whisper-run-1.3.0.tar.gz
Size 6.1 MB
Tags Source
SHA-256 checksum
How to use checksums
0cdce505bd95876932217f5e5ec2da7da118d40da3728976e235801eac6f7583
BLAKE2b-256 checksum
How to use checksums
f131da241488885c21576aca05d2fc101258298a690ded5a622859378aed5c02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Release files / whisper_run-1.3.0-py3-none-any.whl

Download URL whisper_run-1.3.0-py3-none-any.whl
Size 5.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e568b57f7576f26c31d1b0181820de5330bb9204de2ac63a070fb9eabbf1010b
BLAKE2b-256 checksum
How to use checksums
08c704929034cbd2a7f6f2436112e903bf87c203c3099d7864bf3b0b765925f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.63

2 release files

1.2.41

1 release file

1.2.7

2 release files

1.2.6

2 release files

1.2.5

1 release file

1.2.4

2 release files

1.2.3

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page