add_audio_frame_embedded method
Contents
[
Hide
]add_audio_frame_embedded
Creates a new audio frame with an embedded WAV file and adds it to the end of the shape collection. The embedded audio is added to the Presentation.Audios collection.
Returns
The newly created IAudioFrame.
def add_audio_frame_embedded(self, x, y, width, height, audio_stream):
...
| Parameter | Type | Description |
|---|---|---|
| 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. |
add_audio_frame_embedded
Creates a new audio frame and adds it to the end of the shape collection using an existing audio object from the Presentation.Audios list.
Returns
The newly created IAudioFrame.
def add_audio_frame_embedded(self, x, y, width, height, audio):
...
| Parameter | Type | Description |
|---|---|---|
| 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. |
See Also
- class
IAudio - class
IAudioFrame - class
IShapeCollection - module
aspose.slides - library
Aspose.Slides