add speed parameter

This commit is contained in:
ANLGBOY
2025-11-19 19:42:24 +09:00
parent c31b6745e4
commit 8518b839c1
30 changed files with 246 additions and 61 deletions

View File

@@ -25,6 +25,7 @@ const textInput = document.getElementById('text');
const voiceStyleSelect = document.getElementById('voiceStyleSelect');
const voiceStyleInfo = document.getElementById('voiceStyleInfo');
const totalStepInput = document.getElementById('totalStep');
const speedInput = document.getElementById('speed');
const generateBtn = document.getElementById('generateBtn');
const statusBox = document.getElementById('statusBox');
const statusText = document.getElementById('statusText');
@@ -186,6 +187,7 @@ async function generateSpeech() {
`;
const totalStep = parseInt(totalStepInput.value);
const speed = parseFloat(speedInput.value);
showStatus(' <strong>Generating speech from text...</strong>');
const tic = Date.now();
@@ -194,6 +196,7 @@ async function generateSpeech() {
text,
currentStyle,
totalStep,
speed,
0.3,
(step, total) => {
showStatus(` <strong>Denoising (${step}/${total})...</strong>`);