Silverlight 中的音频录制和播放
我有一个 Silverlight 4 应用程序,可以通过麦克风录制用户的声音。现在,录音完成后,我需要将录制的语音播放给用户,然后再将其发布到服务器。是否有可能在不进行格式转换等的情况下向用户播放它?欢迎任何想法。谢谢!
I have a Silverlight 4 application that records user's voice through the mic. Now, as soon as the recording is completed, I need to play the recorded voice back to the user before posting it to the server. Is it at all possible to play it back to the user without getting into format conversions etc? Any ideas are welcome. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信您可以创建一个 MediaElement 控件,然后使用它的 SetSource() 方法向其传递包含应用程序通过 CaptureSource 接收到的数据的流。
例如:
这有帮助吗?
I believe you can create a MediaElement control, and then use it's SetSource() method to pass it the stream containing the data your application has received via CaptureSource.
For example:
Does this help?