Detects when a user is done speaking. Pairs with an STT model for real-time voice pipelines.
Smart Turn v2 (pipecat-ai/smart-turn-v2) is a audio-stt model from Pipecat. Pricing via AIgateway: $0.0021 per minute. Call it via https://api.aigateway.sh/v1/audio/transcriptions — set model="pipecat-ai/smart-turn-v2". Best for: Voice agents, IVR, Meeting assistants.
curl https://api.aigateway.sh/v1/audio/transcriptions \
-H "Authorization: Bearer $AIGATEWAY_API_KEY" \
-F model="pipecat-ai/smart-turn-v2" \
-F file="@audio.mp3"# multipart/form-data — use curl -F or SDK file upload model="pipecat-ai/smart-turn-v2" file=@audio.mp3 response_format=json # or "verbose_json", "text", "srt", "vtt" language=en # optional
{
"text": "Hello from AIgateway.",
"language": "en",
"duration": 1.82
}from openai import OpenAI
client = OpenAI(base_url="https://api.aigateway.sh/v1", api_key="sk-aig-...")
with open("audio.mp3", "rb") as f:
r = client.audio.transcriptions.create(model="pipecat-ai/smart-turn-v2", file=f)
print(r.text)