Skip to content

Commit

Permalink
Merge pull request #5 from rosiapng/patch-1
Browse files Browse the repository at this point in the history
Update rules-tts.md
  • Loading branch information
freenovel123 authored Dec 14, 2024
2 parents 84fa1d5 + 85d2d04 commit f033512
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/rules-tts.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -208,4 +211,4 @@ return {
https://github.com/yy4382/ms-ra-forwarder-for-ifreetime
https://yfi.moe/post/ifreetime-mstts-selfhost/
```
```

0 comments on commit f033512

Please sign in to comment.