xAI: Grok Speech to Text
xai/grok-stt
提供中
stt
1プロバイダー
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.
作成者xAI
言語multilingual
ステータス提供中
プロバイダー
同じモデルを複数のプロバイダーがホストしている場合があります。バックエンドを固定したい場合は1つのプロバイダーを選び、そうでなければルーティングに選択を任せられます。
プロバイダーSlug1時間あたりレイテンシiTTSのレイテンシは音声の最初のバイトが届くまでの時間、STTのレイテンシは最初のトークンが届くまでの時間で計測しています。モード稼働率
xAI
11個のパラメーター
grok
$0.1から
—
同期 · ストリーミング
対応言語
このモデルの確認済み言語リストはまだありません。
機能
Speech to text
Transcribes spoken audio to text.
speech_to_text
Streaming
Real-time streaming transcription over WebSocket (wss://api.x.ai/v1/stt).
streaming
Synchronous
Transcribes a fully-submitted audio file in a single synchronous request.
synchronous
Multilingual transcription
Supports 25 languages.
multilingual_transcription
Word-level timestamps
Returns a words array with text, start, and end.
word_timestamps
コード
ElevenLabs SDKでのストリーミングSTT
マイクまたはファイルの音声を、ElevenLabs互換のAllModelsルート経由でストリーミングします。
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.
