insert_audio_frame_embedded method
Contents
[
Hide
]insert_audio_frame_embedded
Creates a new audio frame with an embedded WAV file and inserts it into the shape collection at the specified index. The embedded audio is added to the Presentation.Audios collection.
Returns
The newly created IAudioFrame
.
def insert_audio_frame_embedded(self, index, x, y, width, height, audio_stream):
...
Parameter | Type | Description |
---|---|---|
index | int | The zero-based index at which to insert the audio frame. |
x | float | The x-coordinate of the new audio frame, in points. |
y | float | The y-coordinate of the new audio frame, in points. |
width | float | The width of the new audio frame, in points. |
height | float | The height of the new audio frame, in points. |
audio_stream | io.RawIOBase | An input stream containing WAV audio data to embed. |
insert_audio_frame_embedded
Creates a new audio frame and inserts it into the shape collection at the specified index using an existing audio object from the Presentation.Audios list.
Returns
The newly created IAudioFrame
.
def insert_audio_frame_embedded(self, index, x, y, width, height, audio):
...
Parameter | Type | Description |
---|---|---|
index | int | The zero-based index at which to insert the audio frame. |
x | float | The x-coordinate of the new audio frame, in points. |
y | float | The y-coordinate of the new audio frame, in points. |
width | float | The width of the new audio frame, in points. |
height | float | The height of the new audio frame, in points. |
audio | IAudio | An IAudio instance from the Presentation.Audios collection to embed. |
See Also
- class
IAudio
- class
IAudioFrame
- class
ShapeCollection
- module
aspose.slides
- library
Aspose.Slides