Speech to Text Action

Converts speech in an audio file 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/speechToText

Formats: JSON, XML

HTTP Methods: POST

Authentication: Authorization: Bearer token

InputTypeDescription
contentDocumentIdstringRequired. The ID of the audio file stored in Salesforce Files. This value is the contentDocumentId from the ContentDocument object that represents the file to be transcribed.
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 transcript of the audio file, returned as plain text in the detected language.

Sample Input

This sample uses elevenlabs-scribe-v2. You can also set transcriptionModel to whisper-v3-turbo, which is the default if the value isn’t specified.

Sample Output