Audio Class

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

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Presentation.Audio

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(CommonMediaNode))> _
Public Class Audio _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As Audio
[ChildElementInfoAttribute(typeof(CommonMediaNode))]
public class Audio : OpenXmlCompositeElement

Remarks

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:stCondLst>…</p:stCondLst>
  <p:childTnLst>…</p:childTnLst>
  <p:subTnLst>
    <p:audio>
      <p:cMediaNode vol="11000">…
        <p:tgtEl>
      <p:sndTgt r:embed="rId2" />
        </p:tgtEl>
      </p:cMediaNode>
    </p:audio>
  </p:subTnLst>
</p:cTn>

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

Subclause

cMediaNode (Common Media Node Properties)

§19.5.29

Attributes

Description

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

Reference

Audio Members

DocumentFormat.OpenXml.Presentation Namespace