Talking Character

Hi

Can anyone tell me how easy/difficult it would be to create a application which has
a talking character? A bit like any of the many ‘talking’ cats, sharks, vegetables etc
but this character would not repeat any audio input but verbalise an audio file attached to
that screen

e.g. Screen 1

1 Character 1 on screen

2 Button 1 Pressed

3 Character 1 animation (inc lipsync) plays with audio file 1

Screen 2

1 Character 2 on screen

2 Button 2 Pressed

3 Character 2 animation (inc lipsync) plays with audio file 2
Many thanks to anyone who can provide help.

Bob

[import]uid: 45029 topic_id: 17461 reply_id: 317461[/import]

i assume it will be pretty easy, animation+sound and text, thats basically all [import]uid: 16142 topic_id: 17461 reply_id: 66227[/import]

Hi darkconsoles

Thanks for taking the time to reply. Can I just import each screen as an .mp4 and add a touch event to play it?

Bob [import]uid: 45029 topic_id: 17461 reply_id: 66229[/import]

problem is that corona now only support native media player and its look bad and i dont know if you can do anything with it except basic things

sprites+audio+text is a way better solution [import]uid: 16142 topic_id: 17461 reply_id: 66230[/import]

@bob8,
The talking characters work on two principals.

  1. They listen for on-screen touch and/or voice input
  2. They have a series of state animations that are played.

The animations on iPhones are a series of frames, which could be a sprite sheet (for efficiency). Generally the animations are *never* videos even if it were programmed using xCode and Objective-C.

I would suggest looking at spriteLoq, an amazing library that will help you create your animations from flash swf files, so if you or your animator can create the animations, then that’s the way to go.
You will also be able to overlay voice and other things, which you wouldn’t with the video.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 17461 reply_id: 66232[/import]

Hi JayanV

Thanks for this information. I want to make the animations myself in Crazy Talk 6 and think I can then export them as SWFs. I will certainly check out spriteLoq.

Regards

Bob [import]uid: 45029 topic_id: 17461 reply_id: 66240[/import]

Take a look at the included ‘Media’ sample code, it’s likely it already has a lot of the code you’re looking for—it’ll just be a matter of positioning things and supplying your own assets!

[import]uid: 52430 topic_id: 17461 reply_id: 66377[/import]

Hi Jonathan

Thanks for this, do you mean ‘media’ sample code that is included in the resources library of Corona? Thanks

Bob [import]uid: 45029 topic_id: 17461 reply_id: 66404[/import]

@bob8: were you able to put this together? 'm trying to build one myself, but the playback keeps getting trimmed on the beginning because (apparently) my code does not record the first second.

I posted my code/error here:
https://developer.anscamobile.com/forum/2012/02/09/sound-recording-delay

Silva [import]uid: 123238 topic_id: 17461 reply_id: 85820[/import]