Analyzing Audio to sync with talking animation

0 favourites
  • 5 posts
From the Asset Store
Sync animations, animation frames, mirror state, sounds and anything else using these methods.
  • Is there a way to analyze the loaded audio, whether through Construct itself or plug-ins? Basically, I need to play an audio file and have the speech in that audio file control whether a character opens or closes their mouth. To do that, I decided that the game should analyze the audio file every frame and check its current amplitude (NOTE: This has nothing to do with the controllable volume level in the game itself). If the amplitude's higher or equal to a certain number, then the character would have opened their mouth. If the amplitude is below that number, then the character would have closed their mouth. So, is there a way to do it? If it can't be done through Construct itself, is there a plug-in, that could have the needed features?

  • I highly doubt this is possible with C2, but I could be wrong.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Well, as I mentioned earlier, if it's not possible with Construct itself, isn't there a plug-in or something with such features?

  • You could take a look at this article https://www.scirra.com/tutorials/47/xaudio2-peak-and-rms

    There is also an audio analyzer example in the default construct 2 examples. I think what you want to do would be possible, would just be a bit of work.

  • Yes, this is exactly what I needed! And the technique works! (Well, it's not perfect, because analyzing the Amplitude itself does not differentiate between "S" sounds and vowels, but that's because of the audio data itself) Thanks a lot!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)