Skip to main content

llama-index readers openai whisper integration

Project description

OpenAI Whisper Reader

Overview

Whisper Reader reads audio files and transcribes them to text using the OpenAI Whisper API.

Installation

You can install Whisper Reader via pip:

pip install llama-index-readers-whisper

Usage

from llama_index.readers.whisper import WhisperReader

# Initialize WhisperReader
reader = WhisperReader(
    model="whisper-1",
    api_key="your-api-key",
)

# Load data from audio file
documents = reader.load_data("path/to/your/audio/file.mp3")

# load data async
documents = await reader.aload_data("path/to/your/audio/file.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

llama_index_readers_whisper-0.3.0.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.

llama_index_readers_whisper-0.3.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_readers_whisper-0.3.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_whisper-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6fb5e420e54588f8ad99e8862a47885cd8ad7856be9e2d1aff9e659701f616c5
MD5 8132e03278d568cbbca6d73a7cf0e096
BLAKE2b-256 180b109b9f384531fc65e2a8192d6a26f1eccdfe360750d0ba2236725a570c1b

See more details on using hashes here.

File details

Details for the file llama_index_readers_whisper-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_whisper-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef6e5c783e8cdc197d0e249145e48a6bdb47d9515413850486f488fec2d4544a
MD5 c71481eddfd55039949fc3e3fca74162
BLAKE2b-256 0cf470b679dd303457c2d87daf03fa58c8d440ac6182e286c79b8f6e12c83a26

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