When playing audio using the Playback function,
I want the voice to stop when I press the button value.
read() and background() are stopped, but how should playback() be stopped?
I’m asking for help because I don’t know if it will work.
The Playback() function will not stop playing the audio file, you would need to use the Background() function instead, and it will match the DTMF input as an extension on your dial-plan; If you want to play test but stop playing it once a DTMF digit is pressed, then you just need the read command: