目前,我正在从事音频数据分析项目。
我想让用户键入YouTube网址
并将网址的youtube音频数据返回到我的网站。
获取数据后,我想将它们存储在一维数组中以进行进一步的信号处理。
只能通过Javascript完成此任务吗?
提前致谢。
顺便说一句,音频数据就像:(例如:wav音频格式)
[0.5,0.9,0.26,0.44,0.23,0.01,0.11,0.54,......]
最佳答案
在这里看看:https://developers.google.com/youtube/terms
II. Prohibitions
...
separate, isolate, or modify the audio or video components of any YouTube audiovisual content made available through the YouTube API;
promote separately the audio or video components of any YouTube audiovisual content made available through the YouTube API;
因此,您无法将音频与视频分开。
关于javascript - 如何通过给定的URL获取YouTube音频数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29392148/