Skip to main content

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

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.6.5.tar.gz (9.7 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.6.5-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vision_agents_plugins_sarvam-0.6.5.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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.6.5.tar.gz
Algorithm Hash digest
SHA256 9f23dd345356e4b870fe57fb2c9dc3a159aa549d146b29d7cf467b97e78e70b0
MD5 37feae95f1bb06ea2b38241e2b635922
BLAKE2b-256 d264307167a5b3b2fb4c5689c6619e0d573f3645f945de50048869568467aac5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vision_agents_plugins_sarvam-0.6.5-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 46833558138eecb73e61cde48c175f414acb3e908d75b60c9096371ee4a2c885
MD5 3c3ac5754b0bd159c44e78674c93d401
BLAKE2b-256 b8f66defc7c56b096ea451526e69fda6247ad10750f4e34eec7f1c7f42dd9174

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 Sentry Error logging StatusPage Status page