add_audio_frame_embedded method

add_audio_frame_embedded

Adds a new audio frame with embedded audio file to the end of a collection. Embedded audio file can be a WAV only. It adds new audio into Presentation.Audios list.

Returns

Created AudioFrame object.

def add_audio_frame_embedded(self, x, y, width, height, audio_stream):
    ...
ParameterTypeDescription
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.RawIOBaseInout stream with audio data.

add_audio_frame_embedded

Adds a new audio frame with embedded audio file to the end of a collection. It uses audio file from Presentation.Audios list.

Returns

Created AudioFrame object.

def add_audio_frame_embedded(self, x, y, width, height, audio):
    ...
ParameterTypeDescription
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