Not able to store the audio data streamed via nrf5340 to android phone

Hi Team,

We are trying to store the audio that is being captured and transmitted by nrf5340 digital mic and then store it to connected android phone. For this we tried A2DP profile but android is not converted as sink device. 

Do we have any sample or suggestion on how can we achieve the same use case?

Best Regards,

KK

Parents
  • Hello KK,

    Which android device are you using for this? Have you made sure that it is compatible with / support LE Audio?
    The A2DP profile is part of the Bluetooth Classic protocol, and it does not exist in LE Audio. The nRF5340 does not do any Bluetooth Classic at all, so you will not be able to use A2DP to transfer the audio.
    Instead, you could use the LE Audio Basic Audio Profile (BAP), for example.

    Do we have any sample or suggestion on how can we achieve the same use case?

    Just for clarity, are you using the nRF5340 Audio DK, or a nRF5340 DK?
    In case of the former you can use the nRF5340 Audio reference application to transfer or broadcast the audio from the nRF5340 device.

    Best regards,
    Karl

  • Hi Karl,

    Thanks for the information. 

    We are using nRF5340 Audio DK and our end goal is to store the audio data transmitted from Audio DK to the android device and then store it to cloud. End goal is not to play, but to store and then decode and process the audio files.

    Appreciate the link shared by you above. Till broadcast we are clear on how it will work, but can we store the data on android? Does nrf Connect app have such functionality to check it out on android?

    Thanks,

    KK

  • Hello again, KK

    karanshah said:
    Thanks for the update.

    No problem at all - I am happy to help! :)

    karanshah said:
    In that case there is limited support over android We are exploring different options for the same. 

    Yes, there is unfortunately still only limited support for LE Audio on most phones, but fortunately the support is growing! I thought I should mention that we have been using the Pixel 7 for testing of CIS transfers internally, just so you know.

    karanshah said:
    Can you please let me know the possiblity of saving the audio on the nrf5340 DK behaving as receiver or sink? If that is possiblity then we can plan for the same.

    How much data do you intend to save at the same time?
    There is no innate functionality for this in the nRF5340 Audio reference application, but if you intend to exceed the storage that the nRF5340 Audio DK can provide you could easily bypass the Cirrus Logic Hardware Codec by doing the following:


    Which will let you route the I2S data anywhere you'd like, such as to an external storage.

    Best regards,
    Karl

  • How much data do you intend to save at the same time?

    Hi Karl,

    Can you please provide more information on how to test NRF5340 Audio with Pixel 7? I've just received Pixel 7 and I can't connect to any of the configurations (headset/gateway, CIS/BIS) of NRF5340 Audio. Is it possible to connect to BIS from Pixel 7?

    My ticket on the topic

    Many thanks,
    Warm Regards,
    Pavel

  • Hello Pavel,

    That's neat! :) 
    You will need to enable LE Audio in the developer options of the phone before you can use it for LE Audio.
    I suppose they will enable it by default soon, but for the time being you will have to enable it explicitly.

    To my knowledge it is only still CIS that is available in the Pixel 7, so I do not think that the Pixel 7 can do BIS, at least not at the moment.

    Best regards.
    Karl

  • Thank you Karl,

    I tried it again and was able to connect, many thanks

    Warm regards,
    Pavel

  • That's great to hear! :) 

    It is no problem at all, Pavel - we're happy to help!

    Please do not hesitate to ask if you should encounter any issues or questions in the future.

    Good luck with your development!

    Best regards,
    Karl

Reply Children
No Data
Related