JSON API - addAudio
- getTemplateVariables
- getTemplateVariablesType
- processTemplate
- removeVariableAudio
- removeVariableImage
- removeVariableText
- removeVariableVideo
- replaceVariableAudio
- replaceVariableHtml
- replaceVariableImage
- replaceVariableList
- replaceVariablePptxFragment
- replaceVariableTable
- replaceVariableText
- replaceVariableVideo
- setTemplateSymbol
addAudio
PREMIUM
TRIAL / ADVANCED
Inserts an audio into the PowerPoint presentation.
Note
You are reading the JSON API documentation. For the PHP API method please go to addAudio.
JSON data
| Key | Description |
|---|---|
| audio | Audio path, Base64 string, or URL. Audio formats: flac, mp3, wav, wma. |
| coordinateX | EMUs (English Metric Unit). |
| coordinateY | EMUs (English Metric Unit). |
| sizeX | EMUs (English Metric Unit). |
| sizeY | EMUs (English Metric Unit). |
| name | Internal name. If not set, a random name is generated. |
| order | Set the display order. Default after existing contents. 0 is the first order position. If the order position doesn't exist add after existing contents. |
| image |
|
| mime | Forces a mime (audio/mpeg, audio/x-wav, audio/x-ms-wma, audio/unknown). |
| descr | Placeholder alt text (descr) value. |
Code samples
Example #1
Release notes
- phppptx 5.0:
- new action.