【梅开二度】IAPP 文本转语言

qingjiu   ·   发表于 2个月前   ·   IAPP
//在A处输入编辑框IDug(A,"text",a)//判断输入是否为空f(a==""){//编辑框为空事件tw("输入文字才能翻译哟!")}else{//utf-8转码stobm(a,"utf-8",a)sr(a," ","",a)t(){//调用百度文字转语音接口ss("http://tts.baidu.com/text2audio?ie=UTF-8&lan=zh&text="+a,a)ufnsui(){tw("下载中...",0)}//hd建立文件夹(这个不用详解了吧)hd(a,"%xcapp/转语音/转换后.mp3",true,b)f(b==0){ufnsui(){//tw提示tw("已保存到根目录的%xcapp/转换后目录里面",0)}//bfm播放音频bfm("%xcapp/转语音/转换后.mp3",c)bfms(c,"st")}}}

0 Reply   |  Until 2个月前 | 2527 View
LoginCan Publish Content