优化代码

pull/754/head^2
gedoor 4 years ago
parent 6543996051
commit 14180ff525
  1. 8
      app/src/main/assets/help/httpTTSHelp.md

@ -2,14 +2,14 @@
* 在线朗读规则为url规则,同书源url * 在线朗读规则为url规则,同书源url
* js参数 * js参数
~~~ ```
speakText //朗读文本 speakText //朗读文本
speakSpeed //朗读速度,0-45 speakSpeed //朗读速度,0-45
~~~ ```
* 例: * 例:
~~~ ```
http://tts.baidu.com/text2audio,{ http://tts.baidu.com/text2audio,{
"method": "POST", "method": "POST",
"body": "tex={{java.encodeURI(java.encodeURI(speakText))}}&spd={{String((speakSpeed + 5) / 10 + 4)}}&per=5003&cuid=baidu_speech_demo&idx=1&cod=2&lan=zh&ctp=1&pdt=1&vol=5&pit=5&_res_tag_=audio" "body": "tex={{java.encodeURI(java.encodeURI(speakText))}}&spd={{String((speakSpeed + 5) / 10 + 4)}}&per=5003&cuid=baidu_speech_demo&idx=1&cod=2&lan=zh&ctp=1&pdt=1&vol=5&pit=5&_res_tag_=audio"
} }
~~~ ```
Loading…
Cancel
Save