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.2.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.2.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_readers_whisper-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ec797c3a3e3c44e85f513692480816a582ca263d4c050ae9237bc1081cdd5dc9
MD5 88c3fee244f0ab72cc9b2357ab0b3760
BLAKE2b-256 127d12fad71ce9415c6ea1ed92d0fe98ed1bb13d58349ab18bffc1e5677c4494

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_whisper-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c8e94a82660e34fea32ffffd52395ff5e1ef9848648d08237e16a4a5d3bfde1
MD5 cd70d8c6d19987270846c2dba6dae27d
BLAKE2b-256 b8522c24642650c679ad257d9992f604e9967d6c96de085d393e43c2ff1a1490

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