Synchronize VoiceActing with Show Text event

First of all Happy new year fellows!

I was just messing round with Show Text event and voice acting and I've noticed small problem with it... I have made a test event to see how by default game will behave and this event works great, but when I skip text (or fast forward it with action key) text eventually dissapear but file
with voice acting plays. So my question is how do you synchronize it so when the dialouge is skipped then stop play voice acting audio file?

PS: function SayDialogLine(x) is nothing more than "Show Text..." event but parameters like facefile, faceIndex, position, type and text are stored in text file and loaded by x argument wich represents line number to display:
fragment of text
Code:
FacePack_1|1|ActorName|2|2|0|Some text to display like "Hello World"
I'm not sure I understand how your skipping system works, or what your problem is.
If you skip a few lines, but the dialogue isn't over yet, it should still work as intended, right? I mean, the next displayed line is voiced as it should be?
So, I guess your problem happens when you skip the end of the dialogue and the last heard sentence can still be heard?
In that case, just insert a Stop SE command at the end of the event.
Give me a moment I record a video of what I mean.

@cabfe Ok, Got it:

This video shows how casual player reads and listen dialouges in game


And here it is where problem starts

Problem: When player skips message, the audio still plays. But audio should stop playing at the same moment, when message was skipped with action key.
OK, so it's my last hypothesis.
What happens if you insert a STOP SE command at the very end of the event?
@cabfe Thank goodness you didn't see my face expression. I'm so embarrassed now...
That solved problem... Oh my god... Such a bummer...

Thank you 🙂 and a Happy New Year
You're welcome!

Original thread: https://forums.rpgmakerweb.com/threads/synchronize-voiceacting-with-show-text-event.116792/