Open Graph metadata

og:audio:type

Provides the MIME type of the audio resource declared by the preceding og:audio property.

Parameters

audio/mpeg
Represents MP3 audio files.
<meta property="og:audio:type" content="audio/mpeg">
audio/wav
Represents Waveform Audio files.
<meta property="og:audio:type" content="audio/wav">
audio/ogg
Represents Ogg Vorbis audio files.
<meta property="og:audio:type" content="audio/ogg">
export type Og:audio:type =
     /**
   * Represents MP3 audio files.
  **/
    'audio/mpeg'
    /**
   * Represents Waveform Audio files.
  **/
    'audio/wav'
    /**
   * Represents Ogg Vorbis audio files.
  **/
    'audio/ogg'

Code examples

Good example
<meta property="og:audio:type" content="audio/mpeg">
The registered media type for MP3 audio.
Good example
<meta property="og:audio:type" content="audio/ogg">
The registered media type for audio in an Ogg container.
Avoid this example
<meta property="og:audio:type" content="video/mp4">
A video media type does not describe the audio resource.
Avoid this example
<meta property="og:audio:type" content="audio/x-mpeg">
Use the registered audio/mpeg type for MP3 instead.

Recommendations

  • 01
    Match Content Type Exactly
    Use the media type served for the file. A guessed or mismatched value can mislead consumers.
  • 02
    Use Standard MIME Types
    Choose the registered IANA media type for the file format.

Related documentation

Related meta tags

og:audio

property

Provides the URL of an audio file that accompanies the Open Graph object.

<meta property="og:audio" content="https://example.com/birdsong.mp3">
An absolute, public URL to the audio file.

Provides an alternate HTTPS URL for the audio declared by the preceding og:audio property.

<meta property="og:audio:secure_url" content="https://example.com/music/song.mp3">
A valid HTTPS alternate for the audio resource.

Provides the MIME type of the audio resource declared by the preceding og:audio property.

<meta property="og:audio:type" content="audio/mpeg">
The registered media type for MP3 audio.

og:audio:url

property

An alias of og:audio. It provides the URL of an audio file that accompanies the object.

<meta property="og:audio:url" content="https://example.com/audio.mp3">
An absolute URL to the audio file.

Provides a one or two sentence description of the Open Graph object.

<meta property="og:description" content="A practical guide to choosing and caring for indoor plants in low-light rooms.">
Explains the subject in one specific sentence.