439 B
439 B
- Added
XAISTTServicefor real-time speech-to-text using xAI's voice STT WebSocket API (wss://api.x.ai/v1/stt). Streams raw audio (PCM, µ-law, or A-law) and emits interim and final transcription frames driven by the server'sis_final/speech_finalflags. Settings exposeinterim_results,endpointing,language,multichannel,channels, anddiarize. Requires thexaioptional extra (pip install "pipecat-ai[xai]").