Spaces:
Running
Running
Update main.ts
Browse files
main.ts
CHANGED
@@ -301,10 +301,10 @@ async function handleDemoRequest(req: Request) {
|
|
301 |
curl \${currentUrl}/v1/audio/models
|
302 |
|
303 |
синтезировать голос из текста:
|
304 |
-
curl '
|
305 |
-
-H 'content-type: application/json'
|
306 |
-
--data-raw '{"model":"brian","input":"привет! хрю-хрю!","voice":"rate:0|pitch:0"}'
|
307 |
-
-o
|
308 |
\`;
|
309 |
|
310 |
apiExamples.textContent = examples;
|
|
|
301 |
curl \${currentUrl}/v1/audio/models
|
302 |
|
303 |
синтезировать голос из текста:
|
304 |
+
curl 'https://gnilets-tts.hf.space/v1/audio/speech' \\\
|
305 |
+
-H 'content-type: application/json' \\\
|
306 |
+
--data-raw '{"model":"brian","input":"привет! хрю-хрю!","voice":"rate:0|pitch:0"}' \\\
|
307 |
+
-o tts_voice.mp3
|
308 |
\`;
|
309 |
|
310 |
apiExamples.textContent = examples;
|