sarvamai-go SDK Documentation

sarvamai-go SDK Documentation

Code-accurate documentation for the sarvamai-go SDK

NOTE: The SDK and these corresponding documentation is unofficial. It is not affiliated with or endorsed by Sarvam. It is developed and maintained by Shreehari Acharya as an independent project to provide Go developers with a convenient interface to Sarvam's services.

What this docs set covers

This documentation is generated from the current SDK codebase and is organized package-by-package.

Services and Reference

  • client setup: root client, config, and service handles
  • languages: language code constants and language sets
  • chat: chat completions and streaming chat
  • text: translation, transliteration, and language detection
  • speech-to-text: speech-to-text (REST, stream, and batch jobs with per-method docs)
  • translate: speech-to-text-translate (REST + WebSocket stream)
  • tts: text-to-speech (REST + WebSocket stream)
  • translatejob: batch speech-to-text-translate workflow
  • docintel: document intelligence job workflow
  • shared/speech: shared stream/event/data types returned by speech streams
  • errors and retries: SDK error types and retry behavior
  • examples: runnable repository examples mapped to each package

Import path

import "github.com/Shreehari-Acharya/sarvamai-go"

Source of truth

If you update SDK behavior, update these docs pages in the same PR so docs stay code-accurate.

On this page