Muokkaa

Jaa


Audio facet

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

The Audio resource groups audio-related properties on an item into a single structure.

If a DriveItem has a non-null audio facet, the item represents an audio file. The properties of the Audio resource are populated by extracting metadata from the file.

The Audio resource is only supported on OneDrive Personal.

JSON representation

{
  "album": "string",
  "albumArtist": "string",
  "artist": "string",
  "bitrate": 128,
  "composers": "string",
  "copyright": "string",
  "disc": 0,
  "discCount": 0,
  "duration": 567,
  "genre": "string",
  "hasDrm": false,
  "isVariableBitrate": false,
  "title": "string",
  "track": 1,
  "trackCount": 16,
  "year": 2014
}

Properties

Property Type Description
album string The title of the album for this audio file.
albumArtist string The artist named on the album for the audio file.
artist string The performing artist for the audio file.
bitrate Int32 Bitrate expressed in kbps.
composers string The name of the composer of the audio file.
copyright string Copyright information for the audio file.
disc Int32 The number of the disc this audio file came from.
discCount Int32 The total number of discs in this album.
duration Int64 Duration of the audio file, expressed in milliseconds
genre string The genre of this audio file.
hasDrm Boolean Indicates if the file is protected with digital rights management.
isVariableBitrate Boolean Indicates if the file is encoded with a variable bitrate.
title string The title of the audio file.
track Int32 The number of the track on the original disc for this audio file.
trackCount Int32 The total number of tracks on the original disc for this audio file.
year Int32 The year the audio file was recorded.

Remarks

For more information about the facets on a DriveItem, see DriveItem.