-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"@context": "https://www.w3.org/2022/wot/td/v1.1", | ||
"id": "urn:uuid:79d19958-b176-4cb2-bf5f-c90a2bd5ddab", | ||
"title": "Whisper ASR Service", | ||
"description": "REST API for Whisper service providing speech-to-text. Takes audio encoded as WAV data as input, returns text.", | ||
"base": "http://192.168.30.138:5052", | ||
"@type": [ | ||
"Thing", | ||
"ASRService" | ||
], | ||
"securityDefinitions": { | ||
"nosec_sc": { | ||
"scheme": "nosec" | ||
} | ||
}, | ||
"security": "nosec_sc", | ||
"actions": { | ||
"transcribe": { | ||
"title": "Convert text to speech", | ||
"description": "Take the speech given (in the BODY, using POST method, as WAV data, encoded using multipart form data upload) and convert to text.", | ||
"safe": true, | ||
"idempotent": true, | ||
"output": { | ||
"type": "object", | ||
"properties": { | ||
"text": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"forms": [ | ||
{ | ||
"href": "/v1/audio/transcriptions", | ||
"op": "invokeaction", | ||
"contentType": "multipart/form-data; boundary=------------------------bcc8fd5c7a0f93ea", | ||
"response": { | ||
"contentType": "application/json" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |