Skip to main content

Sarvam AI STT, TTS, and LLM integration for Vision Agents

Project description

Sarvam AI Plugin

This plugin provides STT, TTS, and LLM capabilities using Sarvam AI, a suite of AI models built for Indian languages.

Features

  • STT: WebSocket streaming speech-to-text (Saarika / Saaras) with Voice Activity Detection for turn events.
  • TTS: WebSocket streaming text-to-speech (Bulbul) with configurable speaker, pace, and language.
  • LLM: OpenAI-compatible chat completions (Sarvam-30B / Sarvam-105B / Sarvam-M) via the existing ChatCompletionsLLM from the OpenAI plugin.

Installation

uv add vision-agents-plugins-sarvam

Usage

from vision_agents.core import Agent, User
from vision_agents.plugins import getstream, sarvam, smart_turn

agent = Agent(
    edge=getstream.Edge(),
    agent_user=User(name="Sarvam AI"),
    instructions="Reply in Hindi or English, whichever the user speaks",
    llm=sarvam.LLM(model="sarvam-30b"),
    stt=sarvam.STT(language="hi-IN"),
    tts=sarvam.TTS(speaker="shubh"),
    turn_detection=smart_turn.TurnDetection(),
)

All three services read the same SARVAM_API_KEY environment variable and send it via the api-subscription-key header.

References

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

vision_agents_plugins_sarvam-0.5.7.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

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

vision_agents_plugins_sarvam-0.5.7-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

Details for the file vision_agents_plugins_sarvam-0.5.7.tar.gz.

File metadata

  • Download URL: vision_agents_plugins_sarvam-0.5.7.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for vision_agents_plugins_sarvam-0.5.7.tar.gz
Algorithm Hash digest
SHA256 231621b0bf893e967a5fa8afe449056f1f214a12027dbc8da076464a5c7a4ab4
MD5 a8a124085d7c3cc78951198c6af21fd8
BLAKE2b-256 4eda6fb783ae9d16d1dd6fa575420fdd8b690070d7e4bb182714c9374b3772fe

See more details on using hashes here.

File details

Details for the file vision_agents_plugins_sarvam-0.5.7-py3-none-any.whl.

File metadata

  • Download URL: vision_agents_plugins_sarvam-0.5.7-py3-none-any.whl
  • Upload date:
  • Size: 25.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for vision_agents_plugins_sarvam-0.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5abe4472b5d59a986911d3aba5453637beb65881b8c80dde782cd0d2825ae52b
MD5 4a650160a3446f3361ad772e5e742920
BLAKE2b-256 26ef5cf20754f67880bacfdc51e9c1e986cd9c3cb0a703e69a375678da0a3dd7

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