当前位置: 动力学知识库 > 问答 > 编程问答 >

iphone - sending a wave file to a web service in objective C

问题描述:

I would like to capture a voice file in .wav format with iphone and send this .wav file to a web service. As i searched through the internet I saw that this must be done in objective C language. Since I am an absolute beginner with objective C i would appreciate if you could suggest me any ideas, approaches about how this could be performed. Thanks in advance.

网友答案:

There is a question on Stack Overflow regarding the recording part. For creating a WAV file from your recorded audio, you could use libsndfile if you are comfortable releasing your app as LGPL, although you could probably handle writing the conversion from a raw byte stream to a WAV file yourself. It's not a complicated format if you skip the compression. You basically need to prepend a header that wouldn't change much from file to file.

分享给朋友:
您可能感兴趣的文章:
随机阅读: