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

Metadata

Release files for vision-agents-plugins-sarvam 0.6.9

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

Source distribution (sdist)

Source distribution for vision-agents-plugins-sarvam 0.6.9
File Size Uploaded
vision_agents_plugins_sarvam-0.6.9.tar.gz 9.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vision-agents-plugins-sarvam 0.6.9
File Interpreter ABI Platform
vision_agents_plugins_sarvam-0.6.9-py3-none-any.whl Python 3 none any Details

Total release size: 21.3 kB

Release files / vision_agents_plugins_sarvam-0.6.9.tar.gz

Download URL vision_agents_plugins_sarvam-0.6.9.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
54a5178127afee3ebb4ea9c0de6c653ba70b6fe988da5bd67104c5024ac0e0b4
BLAKE2b-256 checksum
How to use checksums
839e95e10a5ba1388cd6b78d5e14a7d0a1944bac9665a40822eda6a2058f44d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","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}

Release files / vision_agents_plugins_sarvam-0.6.9-py3-none-any.whl

Download URL vision_agents_plugins_sarvam-0.6.9-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b3858a775a4252e84d74d41ab54f2d65f13848ae9037bdccc4823fb87603668e
BLAKE2b-256 checksum
How to use checksums
dd34d2051dd7896c39f39642d0f5ab0e5bcceab4ab84fe6395ef55ebc7e4b7e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","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}

Release history Release notifications | RSS feed

This release

0.6.9 This release

2 release files

0.6.8

2 release files

0.6.7

2 release files

0.6.6

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.9

2 release files

0.5.8

2 release files

0.5.7

2 release files

0.5.6

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

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