NRF5340 AUDIO DK, USB audio output Headset device & Microphone input on Gateway

Hello,

I'm using two NRF5340 Audio DKs — one as a Gateway and one as a Headset — running the nrf5340_audio example.

  1. Is it possible to configure the Headset device to output audio via USB while maintaining audio input through I2S (LINE IN) on the Gateway?
  2. How can I integrate an external electret microphone on the Gateway to replace the built-in PDM MEMS microphone?

Currently, I'm using LINE IN on the Gateway with an external microphone, but the audio is sent to the Headset as audio data. When output through the Headset, it is recognized as audio data rather than microphone data. I'm currently using an external DAC on the Headset device in this set up but I would like to use the NRF5340 to do this task instead.

Thanks!

Parents Reply Children
  • Hello, here is the answer I got from our Audio team: 

    In CIS bidirectional mode, the gateway consumes almost all the CPU resource (USB audio stack and LC3 enc/dec)
    Not sure if gateway still have chance to split the input/output to different interface, since CPU now need to handle the interrupt from USB and also I2S.

    Kind regards,
    Øyvind

  • Thank you for the response. My question specifically refers to the Headset and not the Gateway. By default the Headset outputs through the I2S (Line Out), is it possible to output through the USB on the Headset device instead of the I2S (Line Out)?

  • Hello again, sorry, there was a slight misunderstanding here. Please ignore my last comment. Still working on an answer to this. 

    O_Hndfrd99 said:
    My question specifically refers to the Headset and not the Gateway. By default the Headset outputs through the I2S (Line Out), is it possible to output through the USB on the Headset device instead of the I2S (Line Out)?

    That said, it is still not clear what you are trying to achieve. Is there a reason for why you have the headset connected to the computer and not the gateway? As the head-set is what you have on you head/in your ear?

    What exactly are you trying to achieve with your setup? Please provide more details for our audio team to understand.

    Is it possible to configure the Headset device to output audio via USB while maintaining audio input through I2S (LINE IN) on the Gateway?

    The headset and the gateway are two different devices. As far as I know there is nothing preventing the user from configuring the inputs and outputs of the two devices differently

    How can I integrate an external electret microphone on the Gateway to replace the built-in PDM MEMS microphone?

    the audio is sent to the Headset as audio data. When output through the Headset, it is recognized as audio data rather than microphone data.

    What exactly does this mean? The output of the microphone is an audio signal, i.e. audio data.

    I'm currently using an external DAC on the Headset device in this set up but I would like to use the NRF5340 to do this task instead.

    Can't you use the microphone input on the kit i.e. line in?

    O_Hndfrd99 said:
    I have attached an illustration to give more context, essentially my current problem is getting USB audio out the Headset device.

    The figure also says "bidirectional audio", but the arrow is going in one direction only. Are you expecting sound both ways? 

    Kind regards,
    Øyvind

  • Essentially im trying to create an Auracast microphone. The Gateway broadcasts the signal, & multiple Headsets receive the audio signal. The Headsets would be a simple USB dongle (Receiver).

    I'm trying to get the Headset to output its audio through the USB, and would then need to change the USB audio data to be recognised as microphone audio data.

    The USB output data from the Headset needs to be in USB microphone data format so the PC for example recognises it as microphone data and not audio data which cant be an input.

    I'm using the 'LINE IN' on the Gateway for the microphone yes. This line in data is sent as Audio data and not Microphone data to the Headset. So at the output of the Headset there is Audio data and not Microhpone data, how ever this can be switched around.

    Applogoes I by mistake put biderectional, I meant unidirectional audio. Thank you for your response.

Related