Skip to content

feat: add MiniMax TTS provider support#2483

Open
octo-patch wants to merge 1 commit intoelebumm:masterfrom
octo-patch:feature/add-minimax-provider
Open

feat: add MiniMax TTS provider support#2483
octo-patch wants to merge 1 commit intoelebumm:masterfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch
Copy link
Copy Markdown

Summary

  • Add MiniMax as a new TTS provider using the MiniMax T2A v2 API
  • Register MiniMaxTTS in the TTSProviders dictionary (video_creation/voices.py)
  • Add configuration options to .config.template.toml (minimax_api_key, minimax_voice_name, minimax_tts_model, minimax_api_url)
  • Add unit tests and a live integration test (tests/test_minimax_tts.py)

How to use

Set voice_choice = "MiniMax" in your config and add your API key:

[settings.tts]
voice_choice = "MiniMax"
minimax_api_key = "sk-api-..."        # or set MINIMAX_API_KEY env var
minimax_voice_name = "English_Graceful_Lady"  # optional, this is the default
minimax_tts_model = "speech-2.8-hd"           # optional, this is the default

Available voices: English_Graceful_Lady, English_Insightful_Speaker, English_radiant_girl, English_Persuasive_Man, English_Lucky_Robot, English_expressive_narrator

Available models: speech-2.8-hd (default, HD quality), speech-2.8-turbo (faster)

API References

- Add MiniMax TTS provider (TTS/minimax_tts.py) using the MiniMax T2A v2 API
- Register MiniMax in TTSProviders dict (video_creation/voices.py)
- Add MiniMax config options to .config.template.toml (minimax_api_key, minimax_voice_name, minimax_tts_model)
- Add unit and integration tests (tests/test_minimax_tts.py)
- Support MINIMAX_API_KEY environment variable
- Default model: speech-2.8-hd; default voice: English_Graceful_Lady
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