Record audio on nRF5340 Audio

1/ I cloneed code from nrf5340_audio and i added the config in pro.config to enable record audio as below

#I2S
CONFIG_AUDIO_SOURCE_I2S=y

CONFIG_NRFX_I2S=y

2 i started nrfx_i2s_start(&initial_buffers, I2S_DATA_BLOCK_WORDS, 0);  line 229 at https://github.com/letrthong/nordicsemi/blob/main/nrf5340_audio/src/modules/audio_i2s.c

3 I  can receive call function at i2s_comp_handler() line 81.  but m_buffer_rx32u is null when i show log at audio_system_record_raw() in line 224.

I tried more time but can not record audio now. If you can support please help me

Thank you

Thong LT

Thong LT

Parents
  • Hi Thong

    What are you going to do with the recorded audio? 
    Will you be storing it somewhere?

    I would recommend not changing the lower level files unless you have no choice. The LE Audio application already implements reading sound data over I2S, buffering it temporarily, and forwarding the buffered data to other parts of the system. I think it would be a better approach to add your changes further up the chain. 

    Are you planning to use the LC3 encoder, or do you want to record uncompressed audio?

    Best regards
    Torbjørn

Reply
  • Hi Thong

    What are you going to do with the recorded audio? 
    Will you be storing it somewhere?

    I would recommend not changing the lower level files unless you have no choice. The LE Audio application already implements reading sound data over I2S, buffering it temporarily, and forwarding the buffered data to other parts of the system. I think it would be a better approach to add your changes further up the chain. 

    Are you planning to use the LC3 encoder, or do you want to record uncompressed audio?

    Best regards
    Torbjørn

Children
Related