Currently i am write a small program which is used to send a voice quality audio file from nokia n770 to a bluetooth headset. i am using python. i can create a sco link with the headset. but all i heard in the headset is only noise. the codec i set up is CVSD (0x0040). the audio file on the mobile device is a wav file. do i need to convert the audio file to cvsd format? if i have to do that, how to do that. I try to change the codec to pcm, but when i change the value (0x0040) it always give me an error.

any advise would be helpful.