Print text when playing sound

Hello, I am trying to make a dialog when playing the game. For example, when the user is playing a sound is playing (the other character speaking) and the text is shown on the bottom of the screen. Is there a way to toggle when the text is displayed or now when playing the audio of the person talking?

Hope this helps