This commit is contained in:
Hk-Gosuto
2024-03-11 12:49:34 +08:00
parent bdaf416a10
commit 0c8119cdc1
2 changed files with 15 additions and 6 deletions

View File

@@ -990,6 +990,7 @@ function _Chat() {
api = new ClientApi(ModelProvider.GPT);
const config = useAppConfig.getState();
setSpeechLoading(true);
ttsPlayer.init();
const audioBuffer = await api.llm.speech({
model: config.ttsConfig.model,
input: text,