How do I get the audio pcm data?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

     How do I get the audio data when the BT conencted the iphone ? I want to know the API

0 Likes
1 Solution
Anonymous
Not applicable

Refer to hci_handsfree example. You can use the wiced_bt_sco_setup_voice_path() API and set path to WICED_BT_SCO_OVER_APP_CB and provide the data callback. In this callback, you can modify the data samples as required.

View solution in original post

3 Replies
Anonymous
Not applicable

Are you using HFP or A2DP? The PCM samples can be routed to I2S or to APP. Refer to the A2DP_sink example or headset example.

0 Likes
Anonymous
Not applicable

I'm using the HFP. It is a secure encryption project. I need encrypt audio pcm data or decrypt the data.so I need get the pcm audio data

0 Likes
Anonymous
Not applicable

Refer to hci_handsfree example. You can use the wiced_bt_sco_setup_voice_path() API and set path to WICED_BT_SCO_OVER_APP_CB and provide the data callback. In this callback, you can modify the data samples as required.