| 1 |
--- |
| 2 |
openapi: "3.0.0" |
| 3 |
info: |
| 4 |
title: 'Wyoming ASR' |
| 5 |
version: '1.0.0' |
| 6 |
description: 'API for Automated Speech Recognition' |
| 7 |
paths: |
| 8 |
/api/info: |
| 9 |
get: |
| 10 |
summary: 'Get service information' |
| 11 |
responses: |
| 12 |
'200': |
| 13 |
description: OK |
| 14 |
content: |
| 15 |
application/json: |
| 16 |
schema: |
| 17 |
/api/speech-to-text: |
| 18 |
post: |
| 19 |
summary: 'Transcribe WAV data to text' |
| 20 |
requestBody: |
| 21 |
description: 'WAV data (16-bit 16Khz mono preferred)' |
| 22 |
required: true |
| 23 |
content: |
| 24 |
audio/wav: |
| 25 |
schema: |
| 26 |
type: string |
| 27 |
format: binary |
| 28 |
parameters: |
| 29 |
- in: query |
| 30 |
name: uri |
| 31 |
description: 'URI of Wyoming ASR service' |
| 32 |
schema: |
| 33 |
type: string |
| 34 |
- in: query |
| 35 |
name: model |
| 36 |
description: 'Name of model to use for transcription' |
| 37 |
schema: |
| 38 |
type: string |
| 39 |
- in: query |
| 40 |
name: language |
| 41 |
description: 'Language to use for transcription' |
| 42 |
schema: |
| 43 |
type: string |
| 44 |
responses: |
| 45 |
'200': |
| 46 |
description: OK |
| 47 |
content: |
| 48 |
application/json: |
| 49 |
schema: |
| 50 |
type: object |