How to know if a song that is played does actually work

Hello everyone,

I am new to appium. I am testing an audio app. I wanted to check if a song is actually working. Can we detect the speaker setting of the phone as to know if actually song is been played or not? Can we do that in appium?

@SIJO_JOHN As per my understanding detecting the hardware(speaker) response/output is not possible in appium but we can check the status of the audio play and pause button. through which we can understand the audio is playing or not.

If there is any possibility to to know if the audio is playing really in the phone using appium then I am very much interested to know that. Someone can post their valuable inputs.