xAI : Grok Speech to Text
xAI's Grok speech-to-text: transcribes audio files in a single call or streams audio in real time over WebSocket with word-level timestamps, selected by endpoint (/v1/stt) rather than by a model parameter.
Fournisseurs
Plusieurs fournisseurs peuvent héberger le même modèle. Choisissez-en un lorsque vous avez besoin d’un backend fixe, ou laissez le routage choisir parmi eux.
Langues prises en charge
Aucune liste de langues vérifiée pour ce modèle pour le moment.
Fonctionnalités
Transcribes spoken audio to text.
speech_to_text
Real-time streaming transcription over WebSocket (wss://api.x.ai/v1/stt).
streaming
Transcribes a fully-submitted audio file in a single synchronous request.
synchronous
Supports 25 languages.
multilingual_transcription
Returns a words array with text, start, and end.
word_timestamps
Code
STT en streaming avec l’ElevenLabs SDK
Diffuse l’audio du micro ou d’un fichier via la route AllModels compatible ElevenLabs.
import { ElevenLabsClient } from "elevenlabs";
const client = new ElevenLabsClient({
apiKey: process.env.ALLMODELS_API_KEY,
baseUrl: "https://api.allmodels.io/el"
});
const connection = await client.speechToText.realtime.connect({
modelId: "xai/grok-stt",
languageCode: "en"
}, {
queryParams: {
provider: {
"only": [
"grok"
]
}
}
});
// Send audio frames to connection, then handle transcript events.
