Skip to main content
Known Participant
December 13, 2012
Question

Advice on including audio for IOS app

  • December 13, 2012
  • 3 replies
  • 624 views

I am working on an app that has about 30 sentences of audio plus about 60 individual words plus a 30 second audio loop. I was just importing all the audio into the library in Flash CS6 and exporting for action script.

I am wondering if it is better to store the audio in an external folder? I obviously do not want any lag when I call up an audio file for the first time.

I would find it useful to be able to detect when an audio file has finished playing as I string some sentences together e.g "Touch the " [INSERT COLOR] "shape"

Any advice appreciated.

My app is for iPhone and iPad initially and then the plan is to port to Android too but happy for advice on the IOS only side of things for now.

Thanks

Paul

This topic has been closed for replies.

3 replies

Colin Holgate
Inspiring
December 13, 2012

If you look at this app I made (it's free):

https://itunes.apple.com/us/app/meet-heckerty-funny-interactive/id514220257?mt=8

In the Read to Me path the playback is just a timeline animation, with a lot of individual library sounds laid out in the timeline, set to Stream, to make the animation keep sync with the audio.

In the Read by Myself path it's still timeline audio, but with the highlighting done on a line by line basis.

For both of those cases I'm just letting Flash do the playback for me, I'm not playing a sound with code. If though you touch any of the words you see, then an external sound file is played with code. The Read by Myself path is a little easier to test that on. Try touching in quick succession various words in the story, and you'll get a sense of whether there is any lag in playing sounds from an external folder.

P StevenAuthor
Known Participant
December 14, 2012

Thank you Colin - I have downloaded the app and had a play (great title by the way)

I am not experiencing any lag on an iPad 2 so that is reassuring enough to me to allow me to make the voice over external.

Out of interest, one of the main reasons I considered switching to external voice over files is that I read that all internal audio must be loaded into RAM and therefore can effect the performance of the app - is this actually the case or not?

It does however make managing the app assets easier having the voice over external as I am currently using dummy audio files for all voice over and will get the final voice over recorded when I have finished programming the app and improved my voice over skills (I am working on a budget of zero for voice over though did buy a Yeti microphone to assist me)

Colin Holgate
Inspiring
December 14, 2012

All of the main voice over lines are just timeline sounds, and so those are part of the swf. I'm not sure if they are all preloaded into RAM, or just loaded from the swf as they're needed. You would think that the initial music is loaded into RAM, but that all happens quickly enough.

The touching of words is the only case where the sounds are external. It would be interesting to see if you notice any difference between touching a word for a second time, compared to the first time. The sound may still be cached in RAM, and play quicker the second time.