DownloadPromptAudioFile
Downloads the audio file for the specified prompt by obtaining a temporary download link and streaming the content.
Stored Procedure-Specific Information
To execute this procedure, enter:
EXEC DownloadPromptAudioFile PromptId='value'
Input
| Name | Type | Required | Description |
| PromptId | String | True | The unique identifier of the prompt whose audio file will be downloaded. |
| FileName | String | False | The full local path to save the downloaded audio file. When specified, the file is written to disk and FileData is not populated. |
| Encoding | String | False | The encoding applied to the FileData output. Set to NONE to return raw bytes as a string. Default is BASE64.
The allowed values are NONE, BASE64. The default value is BASE64. |
Result Set Columns
| Name | Type | Description |
| Success | Boolean | Whether the audio file was downloaded successfully. |
| FileData | String | The downloaded audio file content encoded per the Encoding parameter. Populated only when FileName and FileStream are not specified. |