How to modify a recorded voice to playback and sound "funny" in iOS? - iphone

I am creating one application which requires recording voice and then funny voice will play.
Is there any library to use this work function better?

The SpeakHere sample application provided from the SDK site has a working example of how to use the microphone to record the voice.
Now how to play funny voice.
For that there are no built-in iOS APIs that will do independent time-pitch modification.
There is open source code that implements time-pitch stretching in Audacity, but I don't know whether this code has been ported to iOS. Same with SoundTouch.
There is a Time-Pitch Stretch Tutorial on the DSP Dimensions site.
Some more blogs on it
http://purplelilgirl.tumblr.com/post/9377269385/making-that-talking-app
http://maniacdev.com/2011/08/tutorials-how-to-change-pitch-instantenously-without-changing-tempo-like-the-talking-tom-app/
http://dirac.dspdimension.com/Dirac3_Technology_Home_Page/Dirac3_Technology.html

Related

How to recognize the human voice by code in iphone?

I want to integrate voice detection in my iPhone app. The iPhone app allow the user to search the word by using their voice. But, i don't know a single info about Voice Recognition in iPhone. Can you please suggest me any ideas,tutorials or sample code for this?
You can also use Google Chrome API to integrate voice recognition on your application, but there is a big problem : the API works only with FLAC encoded files, but this encoding isn't supported natively on iOS... :/
You can see those 2 links for more information :
http://www.albertopasca.it/whiletrue/2011/09/objective-c-use-google-speech-iphone/
http://8byte8.com/blog/2012/07/voice-recognition-ios/
EDIT :
I realized an application including voice recognition using Nuance SDK, but it's not free to use. You can register for free and get a developer key that allows you to test your application for 90-days. An application example is included, you can see the code, it's very easy to implement.
Good luck :)
The best approach will probably be to:
Record the voice on the phone
Send the recording to a server that runs the speech recognition software
Then return something to the phone to indicate what it should do
This approach is favorable as there are a number of open source voice to text softwares out there & you are not limited by computing power in the backend.
Having said that, iOS has OpenEars which is based on Pocket Sphinx. It looks promising...
Well voice recognition is not correlated with iphone. All you can do is record the voice in iphone. Once done, you can either code your one voice recognition module, or find a third party API and reuse it.
You can do google search on that.

Adding recorded voice recognition iPhone

In my program I have some recorded voice. After that I need to recognition it, for example: I launched program, saying something, and when program received word that have been recorded it shows UIAlertView. Anybody knows any sdk or example code? Thanks..
Hope the below link will helpful for you. They will also provide sample app for recognizing sounds. Download it and try it.
Ispeech SDK
Please note that ispeech does not perform natural voice recognition and the advertising materials are very misleading. The voice recognition piece of iSpeech requires a set vocabulary similar to the open source (and free) OpenEars SDK.
Nuance recently updated their developer program to give mobile developers limited free access to their speech recognition servers. Look at http://dragonmobile.nuancemobiledeveloper.com/public/index.php
If you don't want to use network to transfer audio, try OpenEars, the library for embedded speech recognition on IPhone
http://www.politepix.com/openears

How can I reduce the speed of sound playing on Iphone using Objective C

I have an mp3 that I want to play slowly without altering the pitch. Is there a way to do it? I can convert into other forms, if I can do it in other forms. This is for a iPhone app that I am developing.
Thanks
A time-pitch modification/stretching algorithm or library could be used for this. You could develop some DSP analysis/resynthesis code for a phase vocoder, a PSOLA pitch corrector, or use a commecial library such as Dirac.
See the stackoverflow question: iPhone voice changer for some other answers to a similar question.

Simple embeddable MidiSynth for iOS?

I have a guitar diagram app for Android that I am porting to iOS. Android has a embedded midi synthesizer (sonivox), so I can generate midi files and let Android handle the playback.
Is there a way to do this on iOS? Or are there very lightweight embeddable synths for iOS?
Since iOS 5 there's now the AUSampler audio unit for which you can load a sound bank (apple preset and soundfonts) and then control the sampler/synth via MIDI messages.
Seee this example app:
https://developer.apple.com/library/ios/#samplecode/LoadPresetDemo/Listings/ReadMe_txt.html
It works great!
Update: My answer is out-of-dated. #lukebuehler's answer is much appropriate.
If you don't mind non-opensource solution, try FMOD. Being a commercial audio engine for games, fmod equips a simple MIDI synth. I've tried the free evaluation version. It plays GM MIDI files correctly on my iPhone 3G.
If what you want is not just a SMF file player, you want a full function GS/GM softsynth, which can response individual midi events in realtime. You can try the midisynth from CrimsonTech. Its license fee is fair. Crimsontech provides several demo apps in the appstore. Besides, it also provides an evaluation SDK for free. You don't need to pay a penny for the license until you're really going to publish your app.
I don't think MIDI support in iOS 4.2 allows playback of MIDI data from the phone itself. It is merely for sending and receiving MIDI commands to other MIDI devices.
From the recent iOS 4.2 docs, it seems that you can use the MIDI support to send MIDI commands to other devices for playback. You can also receive commands from other devices and make changes to these commands, or to save it in a file. However I can't find any support to actually play MIDI file from the phone directly. Someone please correct me if I'm wrong (I wish I'm wrong!!).
There is MIDI support in iOS 4.2. If it is the same as what OS X provides then trhere will also be a basic synth included. Check it out.

Playing audio using the iPhone SDK

I'm introducing a functionality in my iPhone app that allows user to mix and play selected audio files.
What is the difference between just using two AVAudioPlayer to play the music files concurrently versus using Apple's example class, MixerHost, to play the files?
The class MixerHost can be found on here:
http://developer.apple.com/library/ios/#samplecode/MixerHost/Listings/Classes_MixerHostAudio_h.html
MixerHost gives you much more precise control over the relative timing of the two audio inputs.