如何以不同的速度或节奏播放SoundCloud?
从中,以下是如何获取声音的流式URL:如何以不同的速度或节奏播放SoundCloud?,soundcloud,Soundcloud,从中,以下是如何获取声音的流式URL: import soundcloud # create a client object with your app credentials client = soundcloud.Client(client_id='YOUR_CLIENT_ID') # fetch track to stream track = client.get('/tracks/293') # get the tracks streaming URL stream_url = cl
import soundcloud
# create a client object with your app credentials
client = soundcloud.Client(client_id='YOUR_CLIENT_ID')
# fetch track to stream
track = client.get('/tracks/293')
# get the tracks streaming URL
stream_url = client.get(track.stream_url, allow_redirects=False)
# print the tracks stream URL
print stream_url.location
有没有办法命令API以不同的速度返回声音的URL,或者更好,以不同的速度返回声音的URL?这不是SoundClouds API的功能。你需要以某种方式分析你的轨迹来改变节奏/速度/bpm。为此,您可以使用EchoNest/Spotify API 检查此问题: 如果更改为JavaScript,则可以在Chrome和/或FireFox上使用浏览器内置的WebAudio/WebMIDI API Mozilla的API说明: 谷歌的例子: Hackday项目基于使用WebAudio+WebMIDI(仅限Chrome)的Samplr+SoundCloud API: