Btchat file sending

hello, how to make it so that after pressing a button you can say something, after that press another button and the sound will be transmitted via bluetooth to another person, I already did to send a message, but I don't know how the files, I made a program based on someone else's btchat project