Spaces:
Running
Running
Update main.ts
Browse files
main.ts
CHANGED
@@ -191,8 +191,8 @@ async function handleDemoRequest(req: Request) {
|
|
191 |
|
192 |
document.getElementById('synthesizeButton').addEventListener('click', () => {
|
193 |
const text = document.getElementById('inputText').value || 'Hello world';
|
194 |
-
const rate = document.getElementById('rate').value || '
|
195 |
-
const pitch = document.getElementById('pitch').value || '0.
|
196 |
const voice = \`rate:\${rate}|pitch:\${pitch}\`;
|
197 |
const model = document.getElementById('voiceSelect').value;
|
198 |
|
|
|
191 |
|
192 |
document.getElementById('synthesizeButton').addEventListener('click', () => {
|
193 |
const text = document.getElementById('inputText').value || 'Hello world';
|
194 |
+
const rate = document.getElementById('rate').value || '0.0';
|
195 |
+
const pitch = document.getElementById('pitch').value || '0.0';
|
196 |
const voice = \`rate:\${rate}|pitch:\${pitch}\`;
|
197 |
const model = document.getElementById('voiceSelect').value;
|
198 |
|