This article here should help with your issue:
Fix for bluetooth headphones or speaker using hands-free audio when you only want normal audio output, not hands free