feat: add MiniMax TTS integration#16
Open
octo-patch wants to merge 1 commit intoysharma3501:mainfrom
Open
Conversation
- Add NovaSR/minimax_tts.py with generate_speech() and generate_and_enhance() - generate_speech() streams MiniMax TTS API (speech-2.8-hd / speech-2.8-turbo) and returns MP3 bytes; supports MINIMAX_API_KEY env var - generate_and_enhance() combines MiniMax TTS with FastSR to produce 48 kHz enhanced audio in one call, fulfilling NovaSR's stated use case of enhancing TTS model quality with near-zero computational cost - Add unit tests (13 tests, all passing, fully mocked/offline) - Update README with MiniMax TTS integration examples
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 a
NovaSR/minimax_tts.pymodule that integrates MiniMax TTS with NovaSR's audio super-resolution pipeline — fulfilling the use case already described in the README:What's added
NovaSR/minimax_tts.py— Two public functions:generate_speech(text, ...)— streams the MiniMax TTS API (speech-2.8-hd/speech-2.8-turbo) and returns MP3 bytes; readsMINIMAX_API_KEYfrom the environmentgenerate_and_enhance(text, upsampler, ...)— one-call pipeline: MiniMax TTS → FastSR → 48 kHz enhanced audiotests/test_minimax_tts.py— 13 unit tests (fully mocked / offline, all passing)README.md— MiniMax TTS integration section with copy-paste examplesUsage
API references