Spaces:
Running
Running
Update main.ts
Browse files
main.ts
CHANGED
@@ -297,20 +297,15 @@ async function handleDemoRequest(req: Request) {
|
|
297 |
const currentUrl = window.location.origin;
|
298 |
|
299 |
const examples = \`
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
}
|
310 |
-
|
311 |
-
Example curl request:
|
312 |
-
curl '\${currentUrl}/v1/audio/speech' -H 'content-type: application/json' --data-raw '{"model":"remy","input":"привет","voice":"rate:0|pitch:0"}' -o voice.mp3
|
313 |
-
\`;
|
314 |
|
315 |
apiExamples.textContent = examples;
|
316 |
}
|
|
|
297 |
const currentUrl = window.location.origin;
|
298 |
|
299 |
const examples = \`
|
300 |
+
получить список голосов:
|
301 |
+
curl \${currentUrl}/v1/audio/models
|
302 |
+
|
303 |
+
синтезировать голос из текста:
|
304 |
+
curl '\${currentUrl}/v1/audio/speech' \
|
305 |
+
-H 'content-type: application/json' \
|
306 |
+
--data-raw '{"model":"brian","input":"привет! хрю-хрю!","voice":"rate:0|pitch:0"}' \
|
307 |
+
-o voice.mp3
|
308 |
+
\`;
|
|
|
|
|
|
|
|
|
|
|
309 |
|
310 |
apiExamples.textContent = examples;
|
311 |
}
|