-2

Pretty new to xcode and need some help. I want to play audio files one after each other.

Let's say I have these files with the audio:

audio1 = "Hello", audio2 = "how", audio3 = "are", audio4 = "you"

...and when I press the "Play sound" button it should read out "Hello How are you".

Can anyone help me out with this? I have googled this a lot, but there is no easy example for this matter... for newbies ;)

TommyF
  • 381
  • 1
  • 7
  • 22
  • Are you trying to use voice synthesizer (text to speech) or simply want to play audio files simultaneously? – Desdenova Jan 13 '14 at 13:24
  • I usually use iTunes to play audio. Xcode is just an IDE. – Abizern Jan 13 '14 at 13:34
  • @Desdenova: I want to play audio files simultaneously... or after each other that is. – TommyF Jan 13 '14 at 14:33
  • @Abizern: I guess you are trying to be funny. You're not. – TommyF Jan 13 '14 at 14:35
  • @trojanfoe: It would be nice if you actually read my question before you throw the duplicate card. Quote: "I want to play audio files". My reputation drops like a rock when you do what you do. Please don't. – TommyF Jan 13 '14 at 14:39

1 Answers1

0

You can use AVQueuePlayer's method

+ (AVQueuePlayer *)queuePlayerWithItems:(NSArray *)items

and you can refer to this question

iOS xcode4 AVQueuePlayer not playing sound

Community
  • 1
  • 1