SDKs
Commotion publishes official SDKs in Python and Node. Each SDK is scoped to a single product - install the one for the product you are calling.
Voice AI
pip install commotion-voicefrom commotion_voice import VoiceClient
client = VoiceClient(api_key="eak_live_your_key_here")
with open("sample.wav", "rb") as audio: result = client.speech_to_text(file=audio, language="en")print(result.text)npm install commotion-voiceimport { VoiceClient } from "commotion-voice";import { readFileSync } from "node:fs";
const client = new VoiceClient({ apiKey: "eak_live_your_key_here" });const result = await client.speechToText({ file: readFileSync("sample.wav"), language: "en",});console.log(result.text);Universal API
Coming in phase 2. The packages will be commotion-universal for Python and commotion-universal on npm.