简体中文
cURL
curl --request POST \ --url https://api.ppinfra.com/v3/minimax-voice-cloning \ --header 'Authorization: <authorization>' \ --header 'Content-Type: <content-type>' \ --data '{ "audio_url": "<string>", "text_validation": "<string>", "text": "<string>", "model": "<string>", "accuracy": 123, "need_noise_reduction": true, "need_volume_normalization": true }'
{ "demo_audio_url": "<string>", "voice_id": "<string>" }
application/json
Show properties
speech-02-hd
speech-02-turbo
请求:
curl \ -X POST https://api.ppinfra.com/v3/minimax-voice-cloning \ -H "Authorization: Bearer $your_api_key" \ -H "Content-Type: application/json" \ -d '{ "audio_url": "https://example.com/voice.mp3", "text": "近年来,人工智能在国内迎来高速发展期,技术创新与产业应用齐头并进。从基础的大模型研发到语音识别、图像处理、自然语言理解等关键技术突破,AI 正在深度赋能医疗、金融、制造、交通等多个领域。同时,政策支持和资本推动加速了技术落地,众多科技企业、创业团队和科研机构持续投入,形成了活跃的创新生态。AI 正逐步从实验室走向实际生产力,成为推动数字中国建设和经济高质量发展的重要引擎,未来发展潜力巨大。", "model": "speech-01-hd", "need_noise_reduction": true, "need_volume_normalization": true }'
响应:
{ "demo_audio_url": "https://demo.com/audio.mp3", // 音频样例 "voice_id": "xxxxxxx" // 生成的 voice_id }