This repository has been archived by the owner on May 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.oas.yml
75 lines (74 loc) · 2.33 KB
/
openapi.oas.yml
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
openapi: 3.0.0
info:
description: An api to generate sound files from text using festival.
version: "0.1.0"
license:
name: "GPL v3"
url: https://www.gnu.org/licenses/gpl-3.0.en.html
title: Text2Wave Festival Api
contact:
name: Josiah Bull
email: josiah.bull7@gmail.com
components:
schemas:
PhrasePackage:
type: object
required:
- word
properties:
word:
type: string
example: university
lang:
type: string
description: Must be a 2-letter language code. https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes Note that only 'en' is supported presently.
example: en
speed:
type: number
description: A float between 0.5 and 3, values outside of these will be truncated.
example: 0.7
fmt:
type: string
description: The file format you want to be sent. `wav` is preferred.
example: wav
paths:
/docs:
get:
summary: Load docs for all endpoints of this api.
responses:
'200':
description: A webpage containing information about the api.
/api/convert:
post:
summary: Convert a phrase into a .wav or .mp3 file.
requestBody:
description: Provide the phrase package you wish to convert.
content:
application/json:
schema:
$ref: '#/components/schemas/PhrasePackage'
required: true
responses:
'200':
description: Succesfully converted phrase package to the requested file type.
content:
audio/mpeg:
schema:
type: string
format: binary
'400':
description: Bad request! Likely some of your values are out of range on the PhrasePackage.
content:
text/plain:
schema:
type: string
example: "word contains invalid characters"
'422':
description: Missing/invalid fields on your PhrasePackage.
content:
text/plain:
schema:
type: string
example: "Missing field 'fmt' on line 4"
'500':
description: Panic! Something has gone horribly wrong on our end. Please open an issue at https://github.com/JosiahBull/festival-api.