mirror of
https://github.com/idootop/mi-gpt.git
synced 2025-04-13 13:00:55 +00:00
chore: speaker is undefined
This commit is contained in:
parent
c033235d2c
commit
974fbbf653
|
@ -396,7 +396,9 @@ export class BaseSpeaker {
|
|||
switch (tts) {
|
||||
case "custom":
|
||||
const _text = encodeURIComponent(ttsText);
|
||||
const url = `${process.env.TTS_BASE_URL}/tts.mp3?speaker=${speaker}&text=${_text}`;
|
||||
const url = `${process.env.TTS_BASE_URL}/tts.mp3?speaker=${
|
||||
speaker || ""
|
||||
}&text=${_text}`;
|
||||
res = await play({ url });
|
||||
break;
|
||||
case "xiaoai":
|
||||
|
|
Loading…
Reference in New Issue
Block a user