tryAGI / tryAGI/MiniMax

createTextToSpeech with stream:true answers SSE, but only the buffered JSON response is modelled — no CreateTextToSpeechAsStreamAsync

Open
#33 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
0
Forks
1
Avg merge
1m
Merged PRs (30d)
9

Description

Problem

POST /v1/t2a_v2 (createTextToSpeech) accepts stream: true plus stream_options (TtsStreamOptions is in the spec), but src/libs/MiniMax/openapi.yaml declares only

responses:
  "200":
    content:
      application/json:
        schema:
          $ref: '#/components/schemas/TextToSpeechResponse'

With stream: true the API answers text/event-stream — one data: {…} event per audio chunk (data.audio hex, data.status), the last one carrying the aggregate — and the generated CreateTextToSpeechAsync tries to deserialize that SSE body as a single TextToSpeechResponse. There is no CreateTextToSpeechAsStreamAsync, so streaming synthesis is unreachable through the package and a consumer cannot get first-audio latency from MiniMax without a raw HttpClient.

Fix

Add the text/event-stream response (a TextToSpeechStreamEvent/TextToSpeechResponse per event) to the operation so AutoSDK emits the IAsyncEnumerable variant — the same shape Mistral.ChatClient.ChatCompletionAsStreamAsync already has in a sibling SDK.

Found while auditing which tryAGI TTS SDKs can feed a PCM streaming sink (HavenDV/Advantage, 2026-09-15).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/libs/MiniMax/openapi.yaml at the createTextToSpeech operation and review TtsStreamOptions plus the sibling Mistral.ChatClient.ChatCompletionAsStreamAsync shape. Model the text/event-stream response so AutoSDK can emit the streaming variant, then verify that CreateTextToSpeechAsStreamAsync exposes each audio event and the final aggregate.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, openapi
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.