语音合成(优图)-TtaSynthesis
返回内容介绍
public static String sample(TAipSpeech client) throws Exception {
//参数内容
String text="小帅开发者";//合成的文本内容
int model_type=0;//语音发音人编码 女生 0 女生纯英文 1 男生 2 喜道公子 6
int speed = 0;// 0.6倍速 -2 0.8倍速 -1 正常速度 0 1.2倍速 1 1.5倍速 2
String result = client.TtaSynthesis(text);//语音合成(优图) 默认参数
String result = client.TtaSynthesis(text,model_type,speed );//语音合成(优图) 全部参数
return result;
}