I have finally found what is causing my Galaxy S7 active to randomly mute my audio.(Only happens when using speaker)
If there are any active notifications at the top left corner my speaker will work for a second then mute. When I dismiss the notifications the speaker no longer mutes.