Skip to content

Add MiniMax speech synthesis endpoint - #110

Open
octo-patch wants to merge 1 commit into
1rgs:mainfrom
octo-patch:octo/20260812-tts-tool-recvrpP0Fs54VY
Open

Add MiniMax speech synthesis endpoint#110
octo-patch wants to merge 1 commit into
1rgs:mainfrom
octo-patch:octo/20260812-tts-tool-recvrpP0Fs54VY

Conversation

@octo-patch

Copy link
Copy Markdown

Reason: Add the missing MiniMax text-to-speech route with model selection, regional endpoint configuration, supported request fields, and decoded audio responses.

Changes

  • Add POST /v1/audio/speech for synchronous and streamed speech synthesis.
  • Support the current speech model set, HTTP request fields, audio formats, and global or China endpoints.
  • Decode hexadecimal audio responses into binary output while preserving URL responses as JSON.
  • Add mocked coverage for field forwarding, regional routing, response decoding, streaming, and API errors.

Checks

  • uv run python -m unittest test_speech.py
  • uv run python -m py_compile server.py test_speech.py
  • uv run python tests.py --help
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant