一键导入
streaming-tts-openai
Streaming text-to-speech via OpenAI Audio Speech API with adaptive sentence chunking
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Streaming text-to-speech via OpenAI Audio Speech API with adaptive sentence chunking
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Edit, transform, and enhance images using AI models
Extract text from images using OCR and vision AI
Neural text-to-speech via Amazon Polly
Speaker diarization — identifies and tracks who is speaking at each moment in an audio stream
Semantic endpoint detection — uses an LLM to classify whether the user's utterance is a complete thought, reducing false turn boundaries on mid-sentence pauses
Batch speech-to-text via Google Cloud Speech-to-Text API
| name | streaming-tts-openai |
| description | Streaming text-to-speech via OpenAI Audio Speech API with adaptive sentence chunking |
| category | voice |
Low-latency streaming text-to-speech using OpenAI's TTS API. Buffers incoming LLM tokens into natural sentence chunks before making API requests, enabling audio playback to begin within the first sentence rather than waiting for full LLM output.
Set OPENAI_API_KEY in your environment or agent secrets store.
., ?, !, or ; boundaryIn agent.config.json:
{
"voice": {
"tts": "openai"
}
}
Provider-specific options via providerOptions:
{
"voice": {
"tts": "openai",
"providerOptions": {
"model": "tts-1",
"voice": "nova",
"format": "opus",
"maxBufferMs": 2000
}
}
}
| Event | Payload | Description |
|---|---|---|
utterance_start | { text: string } | Sentence chunk dispatched for synthesis |
audio_chunk | EncodedAudioChunk | Synthesized audio buffer ready for playback |
utterance_complete | { text, durationMs } | Synthesis complete for a sentence chunk |
cancelled | { remaining: string } | Session was cancelled; remaining text not rendered |
error | Error | Synthesis request failed |
close | — | Session fully terminated |