Any way to manipulate recorded sound?

In particular, I just want to record something, cancel it and play it back. I looked through Apple docs and found nothing about editing audio. Is it possible?

+4
source share
1 answer

Yes, it is definitely possible. The last thing I checked, the Apple Core Audio docs were not very good, but several months have passed since I worked with it. Here are the steps that I will follow.

  • Record an audio sample.

  • Flip the audio by going through the first half of the array and replacing the value that is there with one equidistant from the end of the array.

  • Play the received sound clip.

Quite frankly, the first step is probably the most difficult. Here 's a decent article on how to make audio on an iPhone, including recording. Make sure you look at all parts of the article. Here's another article about recording sound on an iPhone, but using a different structure. There are really several ways to record on the iPhone, although the last time I checked, if you want to play sound while recording, you need to use RemoteIO.

Edit:

If you want to use RemoteIO (which I prefer), then this site is very useful for getting started with it. In addition, the aurioTouch program that Apple offers is very useful (although more than you want).

If you don't need RemoteIO (because it can be a serious pain, although it is lower level and therefore more flexible), try the SpeakHere sample program. It is made for recording and playback only. However, I just looked at it, and it writes the record to a file, not to a buffer that you don't need. I would recommend going with RemoteIO for this reason (unless you can find a way to write it to the buffer instead).

+4
source

Source: https://habr.com/ru/post/1300364/


All Articles