Debug: force buffered mode to test webm without MSE
This commit is contained in:
parent
8dffac24f9
commit
a6c30be5b7
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue