如何录制流媒体音频到服务器 [英] How to record streaming audio to the server

查看:362
本文介绍了如何录制流媒体音频到服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Flash中创建一个应用程序,将记录用户的声音,并将数据保存在服务器上。
有可能吗?
我应该使用其他语言吗?

解决方案

在Flash中捕捉音频相对容易。如果你的预算,技能和主机平台允许你看看运行一个

/en.wikipedia.org/wiki/Real_Time_Messaging_Protocolrel =nofollow> RMTP服务器,例如Flash Media Server。这将提供实时的音频流到服务器。

如果你坚持传统的网络服务器,你可以通过发送捕获的音频到服务器,通过邮政侧脚本。这不太理想 - 一旦音频被捕获,您将不得不设计一个系统来触发HTTP POST,并且您将受到任何文件大小的限制(如果您使用PHP来处理POST,则通常为2MB) / p>

Flash是否是正确的工具取决于您的应用程序。无论您使用何种语言/技术,您都将面临类似的挑战。至少Flash使音频捕捉成为一个相当平凡的过程。


i'm trying to create an application in flash that will record the sound from the user and will save the data on the server. is it possible ? should i use other language ?

解决方案

Capturing audio within Flash is relatively easy. The tricky part is getting the audio on to the server.

If your budget, skillset and hosting platform allows you should look at running an RMTP server such as the Flash Media Server. This would provide real time streaming of audio to the server.

If you are stuck with a conventional web server you could achieve a workaround by sending the captured audio to a server-side script by POST. This wouldn’t be ideal - you would have to devise a system to trigger the HTTP POST once the audio was captured, and you would be subject to any file size limits (typically 2MB if you are using PHP to process the POST).

Whether Flash is the right tool depends on you application. You will be faced with similar challenges whatever language/technology you use. At least Flash makes the audio capture a fairly trivial process.

这篇关于如何录制流媒体音频到服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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