实时语音合成
万物皆可读,开口即巅峰
多风格支持
新闻播报,温和柔美,悄悄耳语等10+风格
超低延迟
端到端延迟毫秒级,实时响应
稳定可靠
稳定运行15年,真人客服
简单集成
几行代码即可完成接入(更多示例参阅API文档)
//TTS nodejs sample
async function ttsPostRequest(url,token,bodyData) {
const headers = {
'Content-Type': 'application/json',
'X-Mishu-Token': token
};
try {
const response = await fetch(url, {
method: 'POST',
headers: headers,
body: JSON.stringify(bodyData)
});
if (!response.ok) {
throw new Error(`Server error: ${response.status}`);
}
const jsonResult = await response.json();
return jsonResult;
} catch (error) {
console.error('Request failed:', error.message);
return null;
}
}
//call
const url = "https://api.mishubaobao.com/v1/api/tts";
const token = 'your token';//Change to your own token
const bodyData = {
text: "hello,world",
speed: 1.0,
pitch: 0,
style: "whisper",
voice: "zh-CN-XiaoxiaoNeural"
};
const result = await ttsPostRequest(url,token,bodyData);
console.log('Request result:', result);应用场景
智能客服系统
自媒体短视频
语音助手开发
无障碍辅助工具
教育培训应用
医疗语音记录
灵活定价
按需付费,无最低消费
