HTTP speech service
STT_SERVICE=http sends each voice clip to a speech service with a small HTTP API, run by
you or a partner. Use it when your speech service is not a whisper ASR web service.
The API it expects
POST {STT_HTTP_URL}/v1/transcribe, multipart/form-data:
| Part | |
|---|---|
audio | the clip, a 16 kHz mono 16-bit WAV |
language | the two-letter language (it, en); absent when the session has none, to let the service detect it |
It answers 200 with JSON; the API reads text. An empty text means no speech: the
turn is dropped like any other empty transcription. Any other field is ignored.
{ "text": "Buongiorno" }
Configure the API
STT_SERVICE=http
STT_HTTP_URL=http://speech.example.org:8443
STT_HTTP_URL is the base URL, without the path.