Skip to main content

Python video transcriber that uses OpenAI's WhisperAI.

Project description

whisper-transcribe

Python video transcriber that uses OpenAI's WhisperAI.

How to install

pip install whisper-transcribe

Trasncribe a video file:

from whisper_transcribe import Transcriber

api_key = "sk-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

with Transcriber(api_key=api_key) as tb:
    trasncription = tb.transcribe("path/to/a/local/video.mp4")

print(transcription)

Create a subtitle of a video:

with Transcriber(api_key=api_key) as tb:
    tb.transcribe("path/to/a/local/video.mp4", output="srt")

Transcribe a YouTube video:

with Transcriber(api_key=api_key) as tb:
    tb.translate("https://youtube.com/myVideo")

Translate a video file:

with Transcriber(api_key=api_key) as tb:
    translation = tb.translate("path/to/a/local/video.mp4")

print(translation)

Summarize a text:

with Transcriber(api_key=api_key) as tb:
    transcription = tb.transcribe("path/to/a/local/video.mp4", output="text")
    summary = tb.summarize(transcription)

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

whisper_transcribe-0.1.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

whisper_transcribe-0.1.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file whisper_transcribe-0.1.1.tar.gz.

File metadata

  • Download URL: whisper_transcribe-0.1.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.9.5 Linux/5.10.102.1-microsoft-standard-WSL2

File hashes

Hashes for whisper_transcribe-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e85733ff24fda0f895de1d00c55aeb99808c29c3864c92befa97b9ca96f5224e
MD5 efb937c3c9c752d698d72f24a450fb95
BLAKE2b-256 b4d60c4f5da2d78672cbd2c0b43656876128777f0c321ecab643126364e4ae81

See more details on using hashes here.

File details

Details for the file whisper_transcribe-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: whisper_transcribe-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.9.5 Linux/5.10.102.1-microsoft-standard-WSL2

File hashes

Hashes for whisper_transcribe-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 61c2bca611e1be76c6f46841c6bd924305c9d5ea4700875dbaf0268e5414e9b8
MD5 1c8066fed27c0309e33c65dbaebadeb1
BLAKE2b-256 ec44f17d168bfd98f748db07048a9eeec8b1618e47e98f943faf75825fcca35c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page