feat: add MiniMax TTS provider support#4413
Open
octo-patch wants to merge 1 commit intocoqui-ai:devfrom
Open
Conversation
- Add TTS/minimax_tts.py with standalone MiniMaxTTS class - Supports speech-2.8-hd and speech-2.8-turbo models - Streams SSE response from MiniMax T2A v2 API, decodes hex audio - Returns float32 numpy array at 32 kHz, compatible with coqui TTS utils - Add MINIMAX_API_KEY environment variable support - Add unit tests (mock-based) and integration tests (skip without API key)
|
|
Contributor
|
Development is now at https://github.com/idiap/coqui-ai-TTS. However, Coqui TTS is for open-source models, not for accessing commercial APIs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds MiniMax TTS support to coqui-ai/TTS via a lightweight, standalone
MiniMaxTTSclass.What's added
TTS/minimax_tts.py— a newMiniMaxTTSclass that:float32numpy array at 32 kHz, fully compatible with coqui-ai/TTS audio utilities (save_wav, etc.)speech-2.8-hd(default) andspeech-2.8-turbomodelsMINIMAX_API_KEYenvironment variabletests/tts_tests/test_minimax_tts.py— comprehensive test suite:MINIMAX_API_KEYis not set)Usage
API reference
Dependencies
No new dependencies are introduced. The MP3→numpy conversion uses
torchaudio(already inrequirements.txt) with a fallback tosoundfile.