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 | Accepts Output Streams | Description |
| PromptId | String | True | False | The unique identifier of the prompt whose audio file will be downloaded. |
| FileName | String | False | False | The full local path to save the downloaded audio file. When specified, the file is written to disk and FileData is not populated. |
| FileStream | String | False | True | An output stream to write the audio file content to. Used only if FileName is not specified. |
| Encoding | String | False | 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. |