from openai import OpenAI from pathlib import Path client = OpenAI(base_url="https://api.naga.ac/v1", api_key="YOUR_API_KEY") speech_file_path = Path("speech.mp3") resp = client.audio.speech.create( model="speech-02-turbo", voice="alloy", input="Hello from NagaAI Text-to-Speech!" ) resp.stream_to_file(speech_file_path)
MiniMax Speech 02 is a high-quality TTS system based on an AR Transformer architecture. The model demonstrates strong generalization capabilities, supporting 32 languages across a wide range of accents and emotional expressions.