From 85d2d0436e8583933c56d15a450ce5b3cd12ea8a Mon Sep 17 00:00:00 2001 From: RosiaPng <153376879+rosiapng@users.noreply.github.com> Date: Tue, 10 Dec 2024 14:21:04 +0800 Subject: [PATCH] Update rules-tts.md --- docs/rules-tts.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 +```