This repository has been archived by the owner on Jun 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger.yml
87 lines (86 loc) · 2.04 KB
/
swagger.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
76
77
78
79
80
81
82
83
84
85
86
87
swagger: "2.0"
info:
description: "Synthesis audio files using EKI tts tooling"
version: "1.0.0"
title: "synthproxy"
host: "localhost:3382"
basePath: "/synth/v1"
tags:
- name: "synth"
description: "synth tts"
schemes:
- "http"
paths:
/synth:
post:
tags:
- "synth"
summary: "Synthesis audio files using EKI tts tooling"
description: ""
operationId: "synth"
consumes:
- "application/x-www-form-urlencoded"
produces:
- "application/json"
parameters:
- in: "formData"
name: "text"
description: "text to use for audio file synthesis"
required: true
type: "string"
- in: "formData"
name: "extension"
description: "audio file extension (type) to produce"
type: "string"
enum:
- "wav"
- "mp3"
responses:
200:
description: "successful operation"
schema:
$ref: "#/definitions/SynthData"
400:
description: "Invalid input"
schema:
$ref: "#/definitions/Error"
500:
description: "Internal error"
schema:
$ref: "#/definitions/Error"
definitions:
SynthData:
type: "object"
properties:
url:
type: "string"
description: "audio file url"
example: "https://example.com/file.mp3"
meta:
$ref: "#/definitions/Meta"
Meta:
type: "object"
properties:
audio_duration:
type: "number"
description: "audio duration in seconds"
example: 1234
file_size:
type: "number"
description: "file size in bytes"
example: 1234
voice_name:
type: "string"
description: "voice that was used in text to speech synthesis"
example: "tonu"
file_extension:
type: "string"
description: "audio file extension"
example: "mp3"
Error:
type: "object"
properties:
error:
type: "string"
description: "error message"
example: "error"