Song
Stentor API Reference / stentor-models/src / Song
Interface: Song
Defined in: packages/stentor-models/src/Media/Song.ts:8
An individual song.
Extendsβ
Extended byβ
Propertiesβ
subtitle?β
optionalsubtitle:string
Defined in: packages/stentor-models/src/Media/Audio.ts:30
Subtitle for the audio.
This is typically the category or artist name.
Inherited fromβ
description?β
optionaldescription:string
Defined in: packages/stentor-models/src/Media/Audio.ts:37
Description of the audio
Max length is 160 characters, limited by Google.
Inherited fromβ
image?β
optionalimage:string
Defined in: packages/stentor-models/src/Media/Audio.ts:43
Image for the audio, typically the album art.
Dimensions must be square, minimum 480 by 480 pixels
Inherited fromβ
backgroundImage?β
optionalbackgroundImage:string
Defined in: packages/stentor-models/src/Media/Audio.ts:49
When applicable (Alexa), the background image for display surfaces.
Minimum dimensions are 1024 by 640 pixels
Inherited fromβ
urlβ
url:
string
Defined in: packages/stentor-models/src/Media/Playable.ts:9
The URL for the playable object.
Inherited fromβ
id?β
optionalid:string
Defined in: packages/stentor-models/src/Media/Playable.ts:13
An ID for the playable object.
Inherited fromβ
token?β
optionaltoken:string
Defined in: packages/stentor-models/src/Media/Playable.ts:17
A token for the playable object that represents a unique playback of the track.
Inherited fromβ
length?β
optionallength:number
Defined in: packages/stentor-models/src/Media/Playable.ts:23
The length of the playable object in milliseconds.
A length of -1 denotes the playable has no end.
Inherited fromβ
visuals?β
optionalvisuals:Visuals
Defined in: packages/stentor-models/src/Media/Playable.ts:29
Things to show on screens if the device is capable of showing.
This is used primarily on Google for media cards.
Inherited fromβ
typeβ
type:
"Song"
Defined in: packages/stentor-models/src/Media/Song.ts:9
The type of media.
Overridesβ
titleβ
title:
string
Defined in: packages/stentor-models/src/Media/Song.ts:10
Title (or name) of the audio.
This is typically the track title or podcast episode name.
Overridesβ
artist?β
optionalartist:string
Defined in: packages/stentor-models/src/Media/Song.ts:11
album?β
optionalalbum:string
Defined in: packages/stentor-models/src/Media/Song.ts:12