如何使用AudioGraph从互联网播放音频文件 [英] How to play audio file from internet using AudioGraph

查看:91
本文介绍了如何使用AudioGraph从互联网播放音频文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在RPI2的USB声卡上播放远程音频文件(主要是mp3格式),但我不知道怎么做。



现有api接受StorageFile,所以我尝试使用以下问题的代码(http://stackoverflow.com/questions/32744794/soundcloud-stream-url-doesnt-work-on-raspberry-pi?noredirect=1#comment53330939_32744794),但它不起作用。



我想要播放的网址将被缓冲,播放将在整个文件下载之前启动。我怎样才能做到这一点?

解决方案

你好CZeSiO,


看看  Windows 10 IoT核心上的录音机应用。  ;此应用程序的重点是录音,但它还可以播放录制音频的
。 如果您的设备可以通过管道传输到媒体流来访问您的流媒体音频源,那么您应该能够实现播放。 


如果这是您的播放方案的解决方案,请告诉我们。




I want to play remote audio file (mainly mp3 format) on USB audio card of RPI2, but i don't know how to do it.

Existing api accepts StorageFile, so I try to use code from following question (http://stackoverflow.com/questions/32744794/soundcloud-stream-url-doesnt-work-on-raspberry-pi?noredirect=1#comment53330939_32744794), but it doesn't work.

I'd like to played url will be buffered and playing will be started before whole file will be downloaded. How can I achieve that?

解决方案

Hello CZeSiO,

Take a look at the Audio Recorder App on Windows 10 IoT Core.  The focus of this application is audio recording, but it also performs playback of the recorded audio.  If your streaming audio source can be accessed by your device piped in to the media stream, you should be able to achieve playback. 

Please let us know if this is a solution for your playback scenario.


这篇关于如何使用AudioGraph从互联网播放音频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆