Metadata-Version: 2.1
Name: whisper-transcribe
Version: 0.1.0
Summary: Python video transcriber that uses OpenAI's WhisperAI.
License: MIT
Author: Daniel K. Elder
Author-email: elder.dk@gmail.com
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: openai (>=0.27.2,<0.28.0)
Requires-Dist: tiktoken (>=0.3.2,<0.4.0)
Requires-Dist: yt-dlp (>=2023.3.4,<2024.0.0)
Description-Content-Type: text/markdown

# whisper-transcribe
Python video transcriber that uses OpenAI's WhisperAI.

# 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)
