diff --git a/mimic3-http/mimic3_http/swagger.yaml b/mimic3-http/mimic3_http/swagger.yaml index 35d9c69..8351b03 100644 --- a/mimic3-http/mimic3_http/swagger.yaml +++ b/mimic3-http/mimic3_http/swagger.yaml @@ -13,13 +13,6 @@ paths: get: summary: 'Speak text to WAV' parameters: - - in: query - name: voice - required: true - description: 'Voice in the form /_ optional with # at the end' - schema: - type: string - example: 'en_UK/apope_low' - in: query name: text required: true @@ -27,6 +20,84 @@ paths: schema: type: string example: 'Welcome to the world of speech synthesis!' + - in: query + name: voice + description: 'Voice in the form /_ optional with # at the end' + schema: + type: string + example: 'en_UK/apope_low' + - in: query + name: noiseScale + description: 'Volatility of speaker (0-1, default: 0.667)' + schema: + type: number + example: 0.667 + - in: query + name: noiseW + description: 'Volatility of individual phonemes (0-1, default: 0.667)' + schema: + type: number + example: 0.8 + - in: query + name: lengthScale + description: 'Speed of speaker (default: 1.0, faster < 1 < slower)' + schema: + type: number + example: 1.0 + - in: query + name: ssml + description: 'Input text is SSML' + schema: + type: boolean + example: false + produces: + - audio/wav + responses: + '200': + description: audio + schema: + type: binary + post: + summary: 'Speak text to WAV' + requestBody: + required: true + description: 'Text to speak' + content: + text/plain: + schema: + type: string + example: 'Welcome to the world of speech synthesis!' + parameters: + - in: query + name: voice + description: 'Voice in the form /_ optional with # at the end' + schema: + type: string + example: 'en_UK/apope_low' + - in: query + name: noiseScale + description: 'Volatility of speaker (0-1, default: 0.667)' + schema: + type: number + example: 0.667 + - in: query + name: noiseW + description: 'Volatility of individual phonemes (0-1, default: 0.667)' + schema: + type: number + example: 0.8 + - in: query + name: lengthScale + description: 'Speed of speaker (default: 1.0, faster < 1 < slower)' + schema: + type: number + example: 1.0 + - in: query + name: ssml + description: 'Input text is SSML' + schema: + type: boolean + example: false produces: - audio/wav responses: diff --git a/mimic3-http/mimic3_http/templates/index.html b/mimic3-http/mimic3_http/templates/index.html index cc6a02f..bc51555 100644 --- a/mimic3-http/mimic3_http/templates/index.html +++ b/mimic3-http/mimic3_http/templates/index.html @@ -90,12 +90,6 @@ -
-
- - -
-