Skip to main content

Agent Framework plugin for services using Soniox's API.

Project description

Soniox plugin for LiveKit Agents

Support for Soniox Speech-to-Text and Text-to-Speech APIs, using WebSocket streaming interfaces.

See STT documentation and TTS documentation for more information.

Installation

pip install livekit-plugins-soniox

Pre-requisites

The Soniox plugin requires an API key to authenticate. You can get your Soniox API key here.

Set API key in your .env file:

SONIOX_API_KEY=<your_soniox_api_key>

Usage

Speech-to-Text (STT)

Use Soniox STT in an AgentSession or as a standalone transcription service:

from livekit.plugins import soniox

session = AgentSession(
    stt=soniox.STT(),
    # ... llm, tts, etc.
)

Text-to-Speech (TTS)

Use Soniox TTS for real-time speech synthesis:

from livekit.plugins import soniox

session = AgentSession(
    tts=soniox.TTS(
        language="en",
        voice="Maya",
    ),
    # ... stt, llm, etc.
)

The TTS supports real-time streaming from LLM - text chunks are tokenized and sent to Soniox as words are formed, enabling low-latency speech synthesis.

More information and reference

Explore integration details and find comprehensive examples:

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

livekit_plugins_soniox-1.5.11.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

livekit_plugins_soniox-1.5.11-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file livekit_plugins_soniox-1.5.11.tar.gz.

File metadata

  • Download URL: livekit_plugins_soniox-1.5.11.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for livekit_plugins_soniox-1.5.11.tar.gz
Algorithm Hash digest
SHA256 91b895cb5967af22a9bd65d080d5b681d633e8f417da2369ba083e00fdea6cc6
MD5 31a137888c79ab40b064dfef49dd662a
BLAKE2b-256 6967cd58398679f3a60ccb4b283504957e75c87000a9fbd7231959c7358763f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for livekit_plugins_soniox-1.5.11.tar.gz:

Publisher: publish.yml on livekit/agents

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file livekit_plugins_soniox-1.5.11-py3-none-any.whl.

File metadata

File hashes

Hashes for livekit_plugins_soniox-1.5.11-py3-none-any.whl
Algorithm Hash digest
SHA256 18e727065cd3f43e614c80c9406332e85aff60e2a2fe40e6bda7ed5c322250b2
MD5 f89927cfc0159c1ee2a68eedd3e38943
BLAKE2b-256 188af7ceedf683058c989330f8e265f8e017b1404d5ea1d06731f65cc5b82a51

See more details on using hashes here.

Provenance

The following attestation bundles were made for livekit_plugins_soniox-1.5.11-py3-none-any.whl:

Publisher: publish.yml on livekit/agents

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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