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.
Supported REST HTTP Methods
URI: /services/data/v66.0/actions/standard/speechToText
Formats: JSON, XML
HTTP Methods: POST
Authentication: Authorization: Bearer token
Inputs
| Input | Type | Description |
|---|---|---|
| contentDocumentId | string | Required. 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. |
Outputs
| Output | Type | Description |
|---|---|---|
| convertedText | The transcript of the audio file, returned as plain text in the detected language. |
Usage
Sample Input
1{
2 "inputs": [
3 {
4 "contentDocumentId": "069xx000004WhFoAAK",
5 }
6 ]
7}Sample Output
1{
2 "outputs": [
3 {
4 "convertedText": "Thank you for contacting support. How can I help you today?"
5 }
6 ]
7}