mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
parent
b212fcf87e
commit
ae1663560f
1 changed files with 2 additions and 2 deletions
|
|
@ -50,8 +50,8 @@ export async function generateAudio (text, speaker = '随机', language = '中
|
|||
]
|
||||
}
|
||||
let space = Config.ttsSpace
|
||||
if (space.endsWith('api/generate')) {
|
||||
let trimmedSpace = _.trimEnd(space, '/api/generate')
|
||||
if (space.endsWith('/api/generate')) {
|
||||
let trimmedSpace = space.substring(0, space.length - 13)
|
||||
logger.warn(`vits api 当前为${space},已校正为${trimmedSpace}`)
|
||||
space = trimmedSpace
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue