add_audio_frame_embedded method

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):
    ...
ParameterTypeDescription
xfloatThe x-coordinate of the new audio frame, in points.
yfloatThe y-coordinate of the new audio frame, in points.
widthfloatThe width of the new audio frame, in points.
heightfloatThe height of the new audio frame, in points.
audio_streamio.RawIOBaseAn input stream containing WAV audio data to embed.

Examples

The following examples shows how to create Audio Frame.

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):
    ...
ParameterTypeDescription
xfloatThe x-coordinate of the new audio frame, in points.
yfloatThe y-coordinate of the new audio frame, in points.
widthfloatThe width of the new audio frame, in points.
heightfloatThe height of the new audio frame, in points.
audioIAudioAn IAudio instance from the Presentation.Audios collection.

See Also