forked from TensorSpeech/TensorFlowTTS
-
Notifications
You must be signed in to change notification settings - Fork 3
/
swagger.yaml
57 lines (52 loc) · 1.4 KB
/
swagger.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
openapi: 3.0.1
info:
title: ainize-tensorflowtts-swagger
description: |
Convert text into a speech
---
How to use:
* Select feature_generator and vocoder
* Input text
* Execute and wait little time
contact:
name: Ainizer - Sangil Park
version: "0.1"
license:
name: "Apache License Version 2.0"
url: https://github.com/psi1104/TensorFlowTTS/blob/server/LICENSE
servers:
- url: https://server-tensor-flow-tts-psi1104.endpoint.ainize.ai
paths:
/predict:
post:
requestBody:
required: true
description: "Convert text into a speech"
content:
multipart/form-data:
schema:
type: object
properties:
language:
type: string
enum: [english, korean, chinese]
feature_generator:
type: string
enum: [TACOTRON, FASTSPEECH2, FASTSPEECH]
vocoder:
type: string
enum: [MB-MELGAN, MELGAN-STFT, MELGAN]
input_text:
type: string
responses:
'200':
description: success
content:
audio/wav:
schema:
type: string
format: binary
'400':
description: Bad Request
'500':
description: Server side error