add text chunking for long-form generation (Fixes #4)

This commit is contained in:
ANLGBOY
2025-11-19 18:08:30 +09:00
parent d31536d9fc
commit c31b6745e4
30 changed files with 1813 additions and 102 deletions

View File

@@ -186,15 +186,15 @@ async function generateSpeech() {
`;
const totalStep = parseInt(totalStepInput.value);
const textList = [text];
showStatus(' <strong>Generating speech from text...</strong>');
const tic = Date.now();
const { wav, duration } = await textToSpeech.call(
textList,
text,
currentStyle,
totalStep,
totalStep,
0.3,
(step, total) => {
showStatus(` <strong>Denoising (${step}/${total})...</strong>`);
}