This is an add-on amplifier and speakers I've installed in the hourly chiming cuckoo clock and attached clock speaker output as an input source to PAM8403, all is working great with quality sound, the only issue is with a power consumption of PAM8403 as after hourly chime there is no audio to play around the hour and 3 AA D size batteries power this circuit and that last longs around 80 hours only.
So my question is how I can cut-off the power supply to this circuit when no audio is playing and turned it ON when audio starts at hourly chime which plays cuckoo strikes and some music for 30 around seconds.