Debug: force buffered mode to test webm without MSE

This commit is contained in:
russell@unturf.com 2026-01-27 10:07:21 -05:00
parent 8dffac24f9
commit a6c30be5b7

View file

@ -461,8 +461,8 @@ export async function generateTitleForTTS(text) {
export async function handleTTS(text, voice = "alloy", rate = 0.9, model = "tts-1-qwen") {
try {
const mode = getTTSMode();
console.log(`handleTTS: using ${mode} mode`);
if (mode === "streaming") {
console.log(`handleTTS: using ${mode} mode (forced buffered for debug)`);
if (false && mode === "streaming") {
return await speakTextStreaming(text, voice, rate, model);
} else {
const result = await speakTextDirect(text, voice, rate, model);