How is a track's 30sec defined that's obtained from preview_url (Spotify Web API)?

随声附和 提交于 2020-12-27 07:07:45

问题


I am interested to use an audio raw dataset provided by Spotify Web API in Python. I wonder if the audio sample follows any rules to define the 30sec provided by the preview_url.

preview_url | string | A link to a 30 second preview (MP3 format) of the track. Can be null

Is the 30sec of the track extracted from:

  1. The first 30 sec?
  2. The track after 1 minute?
  3. The track between 1-3mins?
  4. A random part of the track?

回答1:


Spotify analyses every track and then is able to tell where different parts of the song begin and end.

I suppose that what you hear in the 30s preview is a guess that Spotify makes of what the refrain/main part of the songs is.

Therefore you can't generally say which part is chosen because that is determined by an AI for each song respectively.



来源:https://stackoverflow.com/questions/64979102/how-is-a-tracks-30sec-defined-thats-obtained-from-preview-url-spotify-web-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!