Skip to main content

llama-voice

PyPI version License Python Version CI Status

Llama Voice (llama-voice) is a toolkit for integrating voice interaction capabilities within the LlamaSearch AI ecosystem. It provides functionalities for processing voice input, potentially including speech-to-text (STT) and text-to-speech (TTS) using various models.

Key Features

  • Voice Processing: Core components for handling voice data (processor/).
  • Model Support: Designed to work with different voice models (models/), allowing flexibility in STT/TTS engines.
  • Core Orchestration: A central module (core.py) likely manages the voice processing flow.
  • Utilities: Includes helper functions for voice-related tasks (utils/).
  • Configurable: Allows customization through configuration files (config.py).

Installation

pip install llama-voice
# Or install directly from GitHub for the latest version:
# pip install git+https://github.com/llamasearchai/llama-voice.git

Usage

(Usage examples demonstrating voice input processing, STT, or TTS will be added here.)

# Placeholder for Python client usage
# from llama_voice import VoiceClient, VoiceConfig

# config = VoiceConfig.load("path/to/config.yaml")
# client = VoiceClient(config)

# # Example: Speech-to-Text
# text_result = client.transcribe(audio_file="path/to/audio.wav")
# print(f"Transcription: {text_result}")

# # Example: Text-to-Speech
# audio_output = client.synthesize("Hello from Llama Voice!")
# with open("output.wav", "wb") as f:
#     f.write(audio_output)

Architecture Overview

graph TD
    A[Audio Input / Text Input] --> B{Core Orchestrator (core.py)};
    B -- STT Request --> C{Voice Processor (processor/)};
    C -- Uses Model --> D[STT Model (models/)];
    C --> E[Text Output];

    B -- TTS Request --> F{Voice Processor (processor/)};
    F -- Uses Model --> G[TTS Model (models/)];
    F --> H[Audio Output];

    I[Configuration (config.py)] -- Configures --> B;
    I -- Configures --> C;
    I -- Configures --> F;
    J[Utilities (utils/)] -- Used by --> C;
    J -- Used by --> F;

    style B fill:#f9f,stroke:#333,stroke-width:2px
  1. Input: Receives either audio for transcription or text for synthesis.
  2. Core Orchestrator: Manages the request and directs it to the processor.
  3. Voice Processor: Handles the specific STT or TTS task, interacting with the selected model.
  4. Models: Contains implementations or interfaces for different STT/TTS engines.
  5. Output: Produces either transcribed text or synthesized audio.
  6. Config/Utils: Configuration (config.py) controls behavior; Utilities (utils/) provide support functions.

Configuration

(Details on configuring STT/TTS models, language settings, audio formats, etc., will be added here.)

Development

Setup

# Clone the repository
git clone https://github.com/llamasearchai/llama-voice.git
cd llama-voice

# Install in editable mode with development dependencies
pip install -e ".[dev]"

Testing

pytest tests/

Contributing

Contributions are welcome! Please refer to CONTRIBUTING.md and submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for llama-voice 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-voice 0.1.0
File Size Uploaded
llama_voice-0.1.0.tar.gz 36.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llama-voice 0.1.0
File Interpreter ABI Platform
llama_voice-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 77.6 kB

Release files / llama_voice-0.1.0.tar.gz

Download URL llama_voice-0.1.0.tar.gz
Size 36.3 kB
Tags Source
SHA-256 checksum
How to use checksums
fa24a6d4bb189ab3fdcdffe0b265dcbd9615beff9ae78fcfe0153acbe8978710
BLAKE2b-256 checksum
How to use checksums
41c28b4249188129e25b2601a721102493645bc8c3d8179c6dbff6add364eb4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / llama_voice-0.1.0-py3-none-any.whl

Download URL llama_voice-0.1.0-py3-none-any.whl
Size 41.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b77c04cbed469dcb366138ff5aef7e1f586c882e11955db94b8da07357c5c1d9
BLAKE2b-256 checksum
How to use checksums
41de1ba810d1385723f072e4beba237a35cb3077023bbb439113f60ca90693a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page