insert_audio_frame_embedded method

insert_audio_frame_embedded

Insert an AudioFrame with embedded audio file. Embedded audio file sound can be a WAV only. It adds new audio into Presentation.Audios list.

Returns

Created AudioFrame object.

def insert_audio_frame_embedded(self, index, x, y, width, height, audio_stream):
    ...
ParameterTypeDescription
indexintThe zero-based index at which value should be inserted.
xfloatX coordinate of a new audio frame.
yfloatY coordinate of a new audio frame.
widthfloatWidth of a new audio frame.
heightfloatHeight of a new audio frame.
audio_streamio.RawIOBaseAudio stream.

insert_audio_frame_embedded

Insert an AudioFrame with embedded audio file. It uses audio file from Presentation.Audios list.

Returns

Created AudioFrame object.

def insert_audio_frame_embedded(self, index, x, y, width, height, audio):
    ...
ParameterTypeDescription
indexintThe zero-based index at which value should be inserted.
xfloatX coordinate of a new audio frame.
yfloatY coordinate of a new audio frame.
widthfloatWidth of a new audio frame.
heightfloatHeight of a new audio frame.
audioIAudioAudio from Presentation.Audios list.

See Also