transcribe

abstract suspend fun transcribe(request: SpeechToTextRequest, authorization: SpeechToTextAuthorization = SpeechToTextAuthorization.ConfiguredApiKey): Transcription(source)

Transcribes the complete audio or video file in request.

Throws

when a request field or credential is invalid.

when ElevenLabs returns a non-successful HTTP response.

when no HTTP response can be obtained.

when the request exceeds a transport timeout.

when the response does not match the documented schema.