add_audio method
Contents
[
Hide
]add_audio
Adds a copy of an audio file from an another presentation.
Returns
Added audio.
def add_audio(self, audio):
...
Parameter | Type | Description |
---|---|---|
audio | IAudio | Source audio. |
add_audio
Creates and adds a audio to a presentation from stream.
Returns
Added audio.
def add_audio(self, stream):
...
Parameter | Type | Description |
---|---|---|
stream | io.RawIOBase | Stream to add audio from. |
add_audio
Creates and adds a audio to a presentation from byte array.
Returns
Added audio.
def add_audio(self, audio_data):
...
Parameter | Type | Description |
---|---|---|
audio_data | bytes | Audio bytes. |
add_audio
Creates and adds a audio to a presentation from stream.
Returns
Added audio.
def add_audio(self, stream, loading_stream_behavior):
...
Parameter | Type | Description |
---|---|---|
stream | io.RawIOBase | Stream to add video audio from. |
loading_stream_behavior | LoadingStreamBehavior | The behavior which will be applied to the stream. |
See Also
- class
AudioCollection
- class
IAudio
- enumeration
LoadingStreamBehavior
- module
aspose.slides
- library
Aspose.Slides