This repository has been archived by the owner on May 7, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
editor.swagger.txt
executable file
·99 lines (99 loc) · 2.28 KB
/
editor.swagger.txt
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
swagger: '2.0'
info:
description: Service TextToSpeech by IBM for Surirobot
version: 1.0.0
title: TextToSpeech
termsOfService: ''
contact:
email: fabien.roussel921@gmail.com
license:
name: ISC
url: 'https://www.gnu.org/licenses/license-list.html#ISC'
tags:
- name: speak
description: tranduces a text into a audio .wav
paths:
/speak:
post:
tags:
- speak
summary: tranduces a text into a audio .wav
description: ''
operationId: speak
produces:
- application/json
consumes:
- application/json
parameters:
- name: "body"
in: "body"
description: "See definition of InputTTS object"
required: true
schema:
$ref: '#/definitions/InputTTS'
responses:
'200':
description: Ok
schema:
$ref: '#/definitions/OutputMessages'
'300':
description: Eroor creating the audio file
schema:
$ref: '#/definitions/OutputError'
'400':
description: Missing field audio
schema:
$ref: '#/definitions/OutputError'
'422':
description: field language is unknown
schema:
$ref: '#/definitions/OutputError'
x-swagger-router-controller: Speak
definitions:
OutputMessages:
type: object
properties:
code:
type: integer
msg:
type: string
data:
type: array
items:
type: object
properties:
text:
type: string
confidence:
type: array
items:
type: object
properties:
percentage:
type: number
OutputError:
properties:
code:
type: integer
msg:
type: string
InputTTS:
type: object
properties:
text:
type: string
example: "Bonjour !"
description: "Text that should be transcripted in audio speech - REQUIRED"
language:
type: string
example: "fr-FR"
description: "Language of the speech"
default: "fr-FR"
enum:
- "fr-FR"
- "en-US"
host: virtserver.swaggerhub.com
basePath: /fabienr/Service-TextToSpeech/1.0.0
schemes:
- https
- http