Hello everyone,
I am trying to implement a chat program in java using stream sockets.I want to add voice chat option in it.But I dont know how to transfer voice data over sockets.Can anyone help me?I have gone through the materials on the internet but those source codes do not work.Can anyone provide me the source code for getting voice data from headphone and then transfering it to server over the socket?

Please help me, I need to submit it in my minor project.I will be thankful to u.

Thanks i n advance