Update app.ts
Browse files
app.ts
CHANGED
|
@@ -308,7 +308,7 @@ async function handleDemoRequest(req: Request) {
|
|
| 308 |
const apiVoices = document.getElementById('apiVoices');
|
| 309 |
const currentUrl = window.location.origin;
|
| 310 |
const voices_pre = \`curl \${currentUrl}/v1/audio/models\`;
|
| 311 |
-
const examples_pre = \`curl
|
| 312 |
-H 'content-type: application/json' \\\\\\\\
|
| 313 |
--data-raw '{"model":"brian","input":"привет! хрю-хрю!","voice":"rate:0|pitch:0"}' \\\\\\\\
|
| 314 |
-o tts_voice.mp3
|
|
|
|
| 308 |
const apiVoices = document.getElementById('apiVoices');
|
| 309 |
const currentUrl = window.location.origin;
|
| 310 |
const voices_pre = \`curl \${currentUrl}/v1/audio/models\`;
|
| 311 |
+
const examples_pre = \`curl \${currentUrl}/v1/audio/speech \\\\\\\\
|
| 312 |
-H 'content-type: application/json' \\\\\\\\
|
| 313 |
--data-raw '{"model":"brian","input":"привет! хрю-хрю!","voice":"rate:0|pitch:0"}' \\\\\\\\
|
| 314 |
-o tts_voice.mp3
|