Ethazeriel / discord-bot

Horse.
Other
2 stars 0 forks source link

normalize volume #23

Open Whuppee opened 3 years ago

Whuppee commented 3 years ago

https://developer.spotify.com/documentation/web-api/reference/#/operations/get-audio-featureshttps://api.spotify.com/v1/audio-features/${id},

"loudness (float): The overall loudness of a track in decibels (dB). Loudness values are averaged across the entire track and are useful for comparing relative loudness of tracks. Loudness is the quality of a sound that is the primary psychological correlate of physical strength (amplitude). Values typical range between -60 and 0 db."

Whuppee commented 3 years ago

ytdl's getBasicInfo(${id}) includes

player_response.playerConfig.audioConfig.loudnessDb player_response.playerConfig.audioConfig.perceptualLoudnessDb