fix(speech): respect SSML toggle in test synthesis (#1063)

This commit is contained in:
Mark L
2026-03-02 02:10:38 +08:00
committed by GitHub
parent 9ca2eefb3f
commit 47a79165fc
@@ -168,7 +168,9 @@ async function generateTestSpeech() {
const input = useSSML.value
? ssmlText.value
: speechStore.supportsSSML ? speechStore.generateSSML(testText.value, voice, { ...providerConfig, pitch: pitch.value }) : testText.value
: ssmlEnabled.value && speechStore.supportsSSML
? speechStore.generateSSML(testText.value, voice, { ...providerConfig, pitch: pitch.value })
: testText.value
const response = await generateSpeech({
...provider.speech(model, providerConfig),