I need an app written in Xcode (for iOS). that works as follows:
It uses the OpenEars framework to allow voice recognition on the device.
(it will also use the two plugins 'Rejecto' and 'SaveThatWave' which are paid plugins, but you can develop it with the free demos).
I'm basically making an audio 'choose your own adventure' app - a chapter is played out with a wav file, and then the user speaks a command to choose the next route. The app recognises the word and goes to the correct chapter in order to continue the story.
I'd like some additional features in there like headphone recognition and recording (which is available using OpenEars)
I'd like to be able to create the chapters by making numbered folders in Xcode. In each folder are where I can put the files that will control the chapter (audio/jpegs etc) along with an XML file.
The XML file would have the variables as below (for example) - allowing me to design the chapter:
chapterno (the number of the current chapter)
bgaudio (a wav or mp3 that plays as background audio throughout the whole sequence)
iphonebgimage (an image that appears on an iPhone screen whilst the chapter is played out - jpg format)
ipadbgimage (an image that appears on an iPad whilst the chapter is played out - jpg format)
track1 (a wav or mp3 that has the story and the choices for the user)
*We should be able to string wav files together by having track2, track3 if required.
choice1 (Word 1 that OpenEars should be listening for to make a decision)
choice2 (Word 2 that OpenEars should be listening for to make a decision)
choice1path (the next chapter to go to, if user says choice1)
choice2path (the next chapter to go to, if user says choice2)
*we should be able to have one choice, or multiple choices i.e. we could have .
The words used should be the only ones that OpenEars is listening for. OpenEars should have the Rejecto plugin enabled (the demo is fine as I'll upgrade once I have the finished Xcode project) to make sure it only recognises the correct words - otherwise it will play an error track as below, which will ask them to say it again.
errortrack (the .wav / mp3 to play if OpenEars doesn't detect either of the right choices)
errortrackpause (if OpenEars doesn't detect anything - how long in seconds to wait before playing the errortrack>
record (if this is populated - OpenEars should record the users response and store it as a .wav file - should use SaveThatWave plugin for OpenEars - the demo is fine as I'll upgrade once I have the finished Xcode project)
The folder number to put the recorded .wav file into
ending (if this is populated with 'yes' - then this is an ending, in which case play the track and then go back to main menu chapter at the beginning).
When the user starts the app for the first time, there will be a 'main menu chapter' that gives them instructions, then will ask them to say 'begin'. They will then go to the 1st chapter.
I'd like the app to 'save' where the user is if they quit the app. This could be done by the app just writing the current chapter to a textfile.
If the user then quits and restarts the app there will be another 'main menu chapter' that will ask them to start again, or continue. If they start again, the textile should reset to 0 and they begin again, otherwise carry on from the chapter number stored in the textfile.
The app should only work if you are wearing headphones. So some code in there to detect if the user has headphones plugged in.
If headphones are not plugged in or removed, it should play a wav file and display a background image (again, programmable in an XML file - but ultimately these will inform the user to plug their headphones in).
If the user plugs the headphones back in, the app continues where it left off.
I'd like this delivered as a working Xcode project, that I can then populate myself and compile.