diff --git a/docs/rules-tts.md b/docs/rules-tts.md index 198df99..6fd7258 100644 --- a/docs/rules-tts.md +++ b/docs/rules-tts.md @@ -186,7 +186,10 @@ http://localhost:3000/api/aiyue?voiceName=zh-CN-XiaoxiaoNeural&text=你好 ```javascript linenums="1" // 请求地址 -let url = 'https://你的ip地址:3000/api/aiyue?voiceName=@{voiceType}&text=@{text}' + +let encodeData = encodeURIComponent('@{text}') + +let url = `https://你的ip地址:3000/api/aiyue?voiceName=@{voiceType}&text=${encodeData}` return { url, @@ -208,4 +211,4 @@ return { https://github.com/yy4382/ms-ra-forwarder-for-ifreetime https://yfi.moe/post/ifreetime-mstts-selfhost/ -``` \ No newline at end of file +```