gnilets commited on
Commit
9c3d2a0
·
verified ·
1 Parent(s): 5e822b4

Update main.ts

Browse files
Files changed (1) hide show
  1. main.ts +9 -14
main.ts CHANGED
@@ -297,20 +297,15 @@ async function handleDemoRequest(req: Request) {
297
  const currentUrl = window.location.origin;
298
 
299
  const examples = \`
300
- GET \${currentUrl}/v1/audio/models
301
- Returns a list of available models.
302
-
303
- POST \${currentUrl}/v1/audio/speech
304
- Request body example:
305
- {
306
- "model": "remy",
307
- "input": "привет",
308
- "voice": "rate:0|pitch:0"
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
  }