addAudio
addAudio
BASIC / ADVANCED / PREMIUM
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). |
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 1.0:
- new method.