Bluetooth with headphones

Hello, I have an application to translate using Bluetooth and headphones, but when I connect my devices, I cannot receive sound from my devices to the application, but I can transmit sound from my application to the headphones. How can I do this? Thank you in advance for your interest.