Convert Base64 Speech to Text Action

Converts Base64-encoded audio captured from a microphone to text using AI-powered speech recognition.

This action is available in API version 66.0 and later.

URI: /services/data/v66.0/actions/standard/voiceToText

Formats: JSON, XML

HTTP Methods: POST

Authentication: Authorization: Bearer token

InputTypeDescription
voiceContentstringRequired. Base64-encoded audio content captured from a microphone.
transcriptionModelstringOptional. The transcription model used to convert speech to text. Valid values are whisper-v3-turbo and elevenlabs-scribe-v2. If you don’t specify a value, whisper-v3-turbo is used.
OutputTypeDescription
convertedText The transcribed text generated from the provided audio input.

Sample Input

This sample converts Base64-encoded microphone audio to text using the Convert Base64 Speech to Text action. It sets transcriptionModel to elevenlabs-scribe-v2. You can also use whisper-v3-turbo, which is the default if the value isn’t specified.

Sample Output

This sample shows the transcribed text returned by the Speech to Text microphone capture action for the provided Base64-encoded audio input.