如何在我的应用程序上录制语音然后将其发送到服务器?
我正在尝试构建一个可以在 iPhone 上录制声音(麦克风)的应用程序, 然后将它们发送到我的服务器上存储。
谁能帮我解决这个问题。 我什至不知道从哪里开始:)
非常感谢, 奥德.
Im trying to build an application that will record voices (mic) on my iPhone,
and then will send them to store on my server.
can anyone help me with this one.
i even don't know where to began with this :)
Thank you very much,
Oded.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只需在 google 中搜索“如何录制 iphone”,几秒钟内即可获得。
录制后,文件将在您的文档文件夹中创建。
检索该路径并提取 NSData 中的数据并通过 POST 方法发送到服务器。
示例代码,
Just google it "how to record iphone" and you get it in a seconds.
After recording, file will create in your Documents folder.
Retrieve that path and extract data in NSData and send to server through POST method.
Sample code,
有录音示例代码 -
there is sample code with recording - SpeakHere on iOS developer site. After recording you can save it and send as any binary file.