Skip to content

Add Text to Speech support via ITextToSpeechClient#130

Merged
kzu merged 1 commit intomainfrom
dev/voice
Apr 30, 2026
Merged

Add Text to Speech support via ITextToSpeechClient#130
kzu merged 1 commit intomainfrom
dev/voice

Conversation

@kzu
Copy link
Copy Markdown
Member

@kzu kzu commented Apr 30, 2026

Implements ITextToSpeechClient for the xAI/Grok TTS API with support for both unary and streaming synthesis:

  • GrokTextToSpeechClient: unary via POST /v1/tts and streaming via WebSocket wss://.../v1/tts
  • GrokTextToSpeechOptions: extends TextToSpeechOptions with Grok-specific parameters (SampleRate, BitRate, OptimizeStreamingLatency, TextNormalization)
  • AsITextToSpeechClient extension on GrokClient for easy setup
  • Full unit test coverage for request mapping, codec/media-type resolution, error handling, and streaming event processing
  • readme: documents unary synthesis, streaming with progressive file writes, and Grok-specific options including available voices and audio formats

Implements ITextToSpeechClient for the xAI/Grok TTS API with support
for both unary and streaming synthesis:

- GrokTextToSpeechClient: unary via POST /v1/tts and streaming via
  WebSocket wss://.../v1/tts
- GrokTextToSpeechOptions: extends TextToSpeechOptions with
  Grok-specific parameters (SampleRate, BitRate,
  OptimizeStreamingLatency, TextNormalization)
- AsITextToSpeechClient extension on GrokClient for easy setup
- Full unit test coverage for request mapping, codec/media-type
  resolution, error handling, and streaming event processing
- readme: documents unary synthesis, streaming with progressive file
  writes, and Grok-specific options including available voices and
  audio formats

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@kzu kzu added the enhancement New feature or request label Apr 30, 2026
@kzu kzu enabled auto-merge (rebase) April 30, 2026 12:40
@kzu
Copy link
Copy Markdown
Member Author

kzu commented Apr 30, 2026

56 passed 56 passed 36 skipped

🧪 Details on Ubuntu 24.04.4 LTS

from retest v1.1.0 on .NET 10.0.7 with 💜 by @devlooped

@kzu kzu merged commit b69d577 into main Apr 30, 2026
4 checks passed
@kzu kzu deleted the dev/voice branch April 30, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant