开发者

sending a wave file to a web service in objective C

开发者 https://www.devze.com 2023-02-15 07:30 出处:网络
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 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 appr开发者_StackOverflow中文版eciate 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消