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

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_readers_whisper-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b21587158f7e892de2a3887ad2d799a7d6808e8f7bb4e4982a45ce1625071ace
MD5 7622cafe4f957221f419e35cd573321c
BLAKE2b-256 016dd1b4d508b1616b7d3fb9c545df9440137f89916c01d14c419029d34a86cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_whisper-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 19e1e68954c2c3f3f6e979fd28e72cea6e307724f085c61ddfdedbd3eb765960
MD5 ec0409082d009dafeb4118f0f36179ba
BLAKE2b-256 9e7e9c5205649b498f97328cf1523f50a4ccc2f0b5a402bd3a0c9af5e6f80e30

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