AVAudioRecorder/Player - How to tune the files recorded? - ios

I've build a simple audio recorder as I'm to the iOS development.
But now, I still have two questions?
1.How can the recorder automatically (without buttons) detect the sound the play it later automatically either?
2.Is is possible to tune the recorded files just like My Talking Tom Cat?
Thanks a lot!

http://mobileorchard.com/tutorial-detecting-when-a-user-blows-into-the-mic/
try this tutorial. its really help full for you...

Related

Good backend way to store song (audio) samples for iOS app?

I need suggestions for a good way to store backend song previews (right now looking at itunes and maybe spotify and soundcloud). The idea is that I need to pre-download and maybe cache the 30-second and less audio files with easy recall.
Then I need a good way of overlaying the audio preview to a user video quickly and generating a new asset for that.
I imagine there are already good libraries for these tasks.
I'm thinking S3 right now for storage? Maybe that or something else? Thanks in advance
Here's a couple of microservices that might help: audio and video if you're ok using a mBAAS.

Record application audio ouput on iOS

I've read some information about recording audio you play on the application (with buttons), but haven't really understood the basics.
What do I need? Can I record audio being played in the application with Remote I/O Unit?
Are there any samples I could study?
Thanks
I want to give you a link to Apple's sample app as a comment. But SO does not allow me because I do not have 50 reputation. So here it is. Good luck.

Pause/Resume Video Recording like Instagram

I try to get some help. I would like to Pause/Resume a video recording on iOS. But it's very complicated. My goal is to get something like in the app of Instagram App (when you press it 's recording).
I find the "CapturePause" app example but it's very complicated from me. A lot of stream bytes algorithm. too complex for me.
I try to develop the solution by using multiple AvCaptureMovieFileOutput, but it's very complicated. And I am losing my mind in it.
Does anyone know a framework or piece of code to do it nicely ? I searched on GG and I found something.
Thank you,
Arnaud
i am also finding similar to Instagram recording.. i find pause recoding
https://github.com/piemonte/PBJVision
i thing helping something

how to convert stereo audio to mono?

Nowadays, I'm developing an app for iPhone in which I want to play an audio in left channel and right channel seperately (ps:The audio played is muti-channel), up to now, I have tried many ways, for example, finding some properties(e.g. setPan:) which I can set to do this, but failed,so,what should I do with this problem, could you please give me some suggestions? Thank you very much!
For manipulating audio at the channel level, see the AVAudioSession class in AVFoundation in the docs that come with Xcode.
In particular, the Audio Session Programming Guide.
I think Novocaine library will be helpful. You can go through
this example.
It'll help you for sure. In example, you can alter following method
- (void)filterData:(float *)data numFrames:(UInt32)numFrames numChannels:(UInt32)numChannels
in NVDSP.mm file to get what you want.
One easy, powerful, free and maintained solution to manipulate audio in iOS is AudioKit. Through it you can create something like this:
leftSignal = AKBooster(input)
leftSignal.rightGain = 0
leftPannedRight = AKPanner(leftSignal, pan: 0.5)
mixer = AKMixer(leftPannedRight)
AudioKit.output = mixer
It's a great solution to audio without the need to deal with low level frameworks. To help you start, there is a lot of tutorials online and answered questions for AudioKit here at StackOverflow. A nice start is with the AudioKit's playgrounds.

How can I generate musical notes on iOS and play them?

I am creating a musical app which generate some music. I already used MIDI functions on Mac to create a MIDI file with MIDI events (unfortunately, I don't remember names of those functions).
I am looking for a way to create instrumental notes (MIDI's or anything else) programmatically in order to play them. I also would like to have multiple channels playing those notes at the same time.
I already tried 'SoundBankPlayer' but apparently, it can't play multiple instruments at the same time.
Have you got an idea?
This answer might be a bit more work than you intended, but you can use PD on iOS to do this. More precisely, you can use libpd for iOS for the synthesis, and then use any number of community-donated patches for the sound you're looking for.
In iOS 5:
MusicSequence, MusicTrack, MusicPlayer will do what you want.
http://developer.apple.com/library/ios/#documentation/AudioToolbox/Reference/MusicSequence_Reference/Reference/reference.html#//apple_ref/doc/uid/TP40009331
Check out AUSampler AudioUnit for iOS, you'll probably have to delve into Core Audio, which has some learning curve. ;)

Resources