From 4028194b0e9219ad9e7e4728f699200e5aa921a4 Mon Sep 17 00:00:00 2001 From: Celeter <48249130+Celeter@users.noreply.github.com> Date: Wed, 20 Jan 2021 10:05:38 +0800 Subject: [PATCH] add aliyun tts --- app/src/main/assets/defaultData/httpTTS.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/assets/defaultData/httpTTS.json b/app/src/main/assets/defaultData/httpTTS.json index 331c8c8f3..240eb05f5 100644 --- a/app/src/main/assets/defaultData/httpTTS.json +++ b/app/src/main/assets/defaultData/httpTTS.json @@ -138,5 +138,10 @@ "id": -28, "name": "百度评书②", "url": "http://tsn.baidu.com/text2audio,{\n \"method\": \"POST\",\n \"body\": \"tex={{java.encodeURI(java.encodeURI(speakText))}}&spd={{(speakSpeed + 5) / 10 + 4}}&per=4114&cuid=baidu_speech_demo&idx=1&cod=2&lan=zh&ctp=1&pdt=301&vol=5&pit=5&_res_tag_=audio\"\n}" + }, + { + "id": -29, + "name": "阿里云语音", + "url": "/*播音人Aiting可改其他,详见https://ai.aliyun.com/nls/tts*/;eval(''+java.ajax('https://cdn.jsdelivr.net/gh/Celeter/build/.github/scripts/ttsDemo.js'));ttsDemo(speakText,speakSpeed,'Aiting')" } ]