Generates an speech to text transcription (not streamed).

post/v1/realtime/stt

Request

  • Base URL
    https://api.tryhamsa.com
  • URL
    https://api.tryhamsa.com/v1/realtime/stt
  • Auth
    API key in header Authorization

Request body

audioBase64string required

The audio base64 string that contains the audio data. Audio data should be of type WAV.

language'ar' | 'en'
isEosEnabledboolean

Whether to enable End of Speech detection or not.

eosThresholdnumber

The threshold value for End of Speech detection.

model's2' | 's3'

The STT model to use for transcription.

Example request

{
  "audioBase64": "GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQRChYECGFOAZwH ...",
  "model": "s2"
}

Response

Successful response

textstring

The generated text of the speech audio list.

Changes

No recorded changes to this operation across all 2 revisions of this API.