|
@@ -170,8 +170,7 @@
|
|
const res = await synthesizeOpenAISpeech(
|
|
const res = await synthesizeOpenAISpeech(
|
|
localStorage.token,
|
|
localStorage.token,
|
|
$settings?.audio?.tts?.voice ?? $config?.audio?.tts?.voice,
|
|
$settings?.audio?.tts?.voice ?? $config?.audio?.tts?.voice,
|
|
- text,
|
|
|
|
- $settings?.audio?.tts?.model ?? $config?.audio?.tts?.model
|
|
|
|
|
|
+ text
|
|
).catch((error) => {
|
|
).catch((error) => {
|
|
toast.error(error);
|
|
toast.error(error);
|
|
assistantSpeaking = false;
|
|
assistantSpeaking = false;
|
|
@@ -267,8 +266,7 @@
|
|
const res = await synthesizeOpenAISpeech(
|
|
const res = await synthesizeOpenAISpeech(
|
|
localStorage.token,
|
|
localStorage.token,
|
|
$settings?.audio?.tts?.voice ?? $config?.audio?.tts?.voice,
|
|
$settings?.audio?.tts?.voice ?? $config?.audio?.tts?.voice,
|
|
- sentence,
|
|
|
|
- $settings?.audio?.tts?.model ?? $config?.audio?.tts?.model
|
|
|
|
|
|
+ sentence
|
|
).catch((error) => {
|
|
).catch((error) => {
|
|
toast.error(error);
|
|
toast.error(error);
|
|
|
|
|