addAudio
- getTemplateVariables
- getTemplateVariablesType
- removeVariableAudio
- removeVariableImage
- removeVariableText
- removeVariableVideo
- replaceVariableAudio
- replaceVariableHtml
- replaceVariableImage
- replaceVariableList
- replaceVariablePptxFragment
- replaceVariableTable
- replaceVariableText
- replaceVariableVideo
- setTemplateSymbol
addAudio

Inserts an audio into the PowerPoint presentation.
Description
public addAudio($audio, $position, $audioStyles = array(), $options = array())
This method inserts audios into the PowerPoint presentation.
Parameters
audio
Audio path. Audio formats: flac, mp3, wav, wma.
position
Key | Type | Description |
---|---|---|
new | array |
A new position is generated.
|
audioStyles
Key | Type | Description |
---|---|---|
image | array |
|
mime | string | Forces a mime (audio/mpeg, audio/x-wav, audio/x-ms-wma, audio/unknown). |
options
Key | Type | Description |
---|---|---|
descr | string | Placeholder alt text (descr) value. |
Exceptions
Audio doesn't exist.
Audio format is not supported.
Image doesn't exist.
Image format is not supported.
Position not valid.
Release notes
- phppptx 3.5:
- descr option.
- phppptx 1.0:
- new method.