Audio Class

Audio.When the object is serialized out as xml, its qualified name is p:audio.

Inheritance Hierarchy


Namespace:  DocumentFormat.OpenXml.Presentation
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)


<ChildElementInfoAttribute(GetType(CommonMediaNode))> _
Public Class Audio _
    Inherits OpenXmlCompositeElement
Dim instance As Audio
public class Audio : OpenXmlCompositeElement


The following table lists the possible child types:

  • CommonMediaNode <p:cMediaNode>

[ISO/IEC 29500-1 1st Edition]

19.5.9 audio (Audio)

This element is used to include audio during an animation. This element specifies that this node within the animation tree triggers the playback of an audio file; the actual audio file used is specified by the sndTgt element (§19.5.70).

[Example: Consider adding applause sound to an animation sequence. The audio element is used as follows:

<p:cTn …>
      <p:cMediaNode vol="11000">…
      <p:sndTgt r:embed="rId2" />

The audio element specifies the location of the audio playback within the animation; its child sndTgt element specifies that the audio to be played is the target of the relationship with ID rId2.

end example]

Parent Elements

childTnLst (§19.5.25); subTnLst (§19.5.78); tnLst (§19.5.87)

Child Elements


cMediaNode (Common Media Node Properties)




isNarration (Is Narration)

This attribute indicates whether the audio is a narration for the slide.

The possible values for this attribute are defined by the W3C XML Schema boolean datatype.

[Note: The W3C XML Schema definition of this element’s content model (CT_TLMediaNodeAudio) is located in §A.3. end note]

© ISO/IEC29500: 2008.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also


Audio Members

DocumentFormat.OpenXml.Presentation Namespace