Add lyrics

Music partners can support the lyrics functionality using SMAPI. This feature is static and beneficial for users that want to look up song lyrics.

Finding lyrics within the Sonos app

Song lyrics can be found in the app though the song’s Info View (…) > The lyrics page. The name of the The lyrics tab can be customized from the Now Playing screen or list in container.

Implementing lyrics

In order to set up lyrics for songs, you’ll require getExtendedMetadata and getExtendedMetadataText

The SMAPI service must include the relatedText element in the getExtendedMetadataResult tag of the desired track.

The following is an example of a response you would send:

The value of type within the relatedText tag will be the name of the lyrics button in the Sonos app. You can customize the name of the button by changing the value within the type tag.

When a user presses The lyrics button, the Sonos app sends the getExtendedMetadataText call with the ID from the relatedText tag from the last response to request more information.

The following is an example of a response you would send: