搜索结果

×

搜索结果将在这里显示。

😃 AI 语音

Azure TTS API 接口
本接口用于微软 Azure Speech 文字转语音合成,支持中文多音色、情感语音、真人聊天风格,并返回 MP3 音频。

接口地址

主用接口:https://api.ku.cm/tts/index.php

备用接口:https://api.xk.ee/tts/index.php

请求方式

请求方式 返回格式
GET MP3 Audio

请求参数

参数 类型 是否必填 说明
text string 需要合成的文本(限制200字)
speaker int 音色编号
style string 情感风格
rate string 语速
pitch string 音调

音色列表

1 = 晓晓 2 = 晓伊 3 = 晓辰 4 = 晓涵 5 = 晓墨 6 = 晓秋 7 = 晓睿 8 = 晓双 9 = 云希(男声) 10 = 云扬 11 = 云健 12 = 云皓 13 = 云泽

风格列表

chat 真人聊天(推荐) cheerful 开心活泼 affectionate 温柔撒娇 customerservice 客服语气 calm 平静 sad 悲伤 angry 生气

请求示例

https://api.ku.cm/tts/?text=你好呀&speaker=2&style=affectionate&rate=-5%&pitch=+2%

HTML 调用示例

<audio controls src="https://api.ku.cm/tts/?text=你好呀&speaker=2&style=affectionate&rate=-5%&pitch=+2%"> </audio>

状态码说明

状态码 说明
200 请求成功
400 请求参数错误
429 请求过于频繁
500 服务器内部错误