Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/svn/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何以不同的速度或节奏播放SoundCloud?_Soundcloud - Fatal编程技术网

如何以不同的速度或节奏播放SoundCloud?

如何以不同的速度或节奏播放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

从中,以下是如何获取声音的流式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 = 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: