Add MiniMax Cloud TTS engine (minimax-cloud)#117
Open
octo-patch wants to merge 1 commit into
Open
Conversation
- Add src/synthesis/MiniMaxCloudTTS.ts: synthesize() via POST /v1/t2a_v2, 12 verified voice IDs, speech-2.8-hd / speech-2.8-turbo models, speed clamped to [0.5, 2.0], MINIMAX_API_KEY env var support - Update src/api/Synthesis.ts: register minimax-cloud in SynthesisEngine type, SynthesisOptions, defaultSynthesisOptions, synthesis dispatch (case minimax-cloud), voice list dispatch, and synthesisEngines metadata - Add src/tests/MiniMaxCloudTTS.test.ts: 13 unit tests using node:test (voiceList structure, default options, type compliance, error handling, engine registration) - no network calls required - Update docs/Engines.md and README.md to document the new engine
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 as a first-class cloud text-to-speech engine (
minimax-cloud), joining the existing lineup of Google Cloud, Azure, Amazon Polly, OpenAI Cloud, ElevenLabs, and Deepgram.What's included
src/synthesis/MiniMaxCloudTTS.ts— new engine module:POST https://api.minimax.io/v1/t2a_v2(non-streaming, returns hex-encoded MP3)speech-2.8-hd(default) andspeech-2.8-turbomodels[0.5, 2.0]as required by the APIminiMaxCloud.apiKeyoption orMINIMAX_API_KEYenvironment variablesrc/api/Synthesis.ts— integrated into the synthesis pipeline:'minimax-cloud'added toSynthesisEngineunion typeminiMaxCloud?: MiniMaxCloudTTSOptionsinSynthesisOptionscase 'minimax-cloud')synthesisEnginesmetadata entrysrc/tests/MiniMaxCloudTTS.test.ts— 13 unit tests using Node.js built-innode:test:synthesisEnginesdocs/Engines.mdandREADME.md— documentation updatedUsage
Or set
MINIMAX_API_KEYin the environment and omitapiKey.Available voices
English_Graceful_LadyEnglish_Insightful_SpeakerEnglish_radiant_girlEnglish_Persuasive_ManEnglish_Lucky_RobotWise_Womancute_boylovely_girlFriendly_PersonInspirational_girlDeep_Voice_Mansweet_girl