insert_audio_frame_embedded method

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):
    ...
ParameterTypeDescription
indexintThe zero-based index at which to insert the audio frame.
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.

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):
    ...
ParameterTypeDescription
indexintThe zero-based index at which to insert the audio frame.
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 to embed.

See Also