lc3 implementation

Hi,

    I am using nrf54l15 ,here I have bare i2s code for reading data from mics and ble code for notifying that data but here I am planning to use lc3 codec to compress data and send over BLE .Can you guide me how can i use library of lc3 to encode .I found library in ncs location and do I need to compress each channel data separately ? Can you sugges any example how can i implement to bare i2s code .And i gone through Audio sample but couldn't able to find implementation for i2s as i have only one 5340 board but i need for nrf54l15 .

  • Hello,

             I have followed same thing now I got following error.I am using sdk v2.9 and toolchain v2.8

    c11941@VT-11941l:~/nrf_ble_samples/nrf5340_audio$ python3 /home/c11941/nrf_ble_samples/nrf5340_audio/tools/buildprog/buildprog.py -c both -b debug -d gateway -p
    +------------+----------+---------+--------------+---------------------+---------------------+
    |    snr     | snr conn |  device | only reboot  | core app programmed | core net programmed |
    +------------+----------+---------+--------------+---------------------+---------------------+
    |    1000    |  False   | headset | Not selected |     Not selected    |     Not selected    |
    | 1050196183 |   True   | gateway | Not selected |       Selected      |       Selected      |
    |    1000    |  False   | headset | Not selected |     Not selected    |     Not selected    |
    +------------+----------+---------+--------------+---------------------+---------------------+
    Invoking build step
    Net core uses precompiled hex or child image
    Run: west build /home/c11941/nrf_ble_samples/nrf5340_audio -b nrf5340_audio_dk/nrf5340/cpuapp --sysbuild -d /home/c11941/nrf_ble_samples/nrf5340_audio/build/dev_gateway/build_debug 
    /usr/bin/env: ‘python3.9’: No such file or directory
    FATAL ERROR: command exited with status 127: /home/c11941/ncs/toolchains/b81a7cd864/usr/local/bin/cmake --build /home/c11941/nrf_ble_samples/nrf5340_audio/build/dev_gateway/build_debug
    Traceback (most recent call last):
      File "/home/c11941/nrf_ble_samples/nrf5340_audio/tools/buildprog/buildprog.py", line 418, in <module>
        __main()
      File "/home/c11941/nrf_ble_samples/nrf5340_audio/tools/buildprog/buildprog.py", line 401, in __main
        __build_module(build_cfg, options)
      File "/home/c11941/nrf_ble_samples/nrf5340_audio/tools/buildprog/buildprog.py", line 176, in __build_module
        raise Exception("cmake error: " + str(ret_val))
    Exception: cmake error: 32512
            

  • To add on,If i tried to solve python error ,I got following error

    Invoking build step
    Net core uses precompiled hex or child image
    Run: west build /home/c11941/nrf_ble_samples/nrf5340_audio -b nrf5340_audio_dk/nrf5340/cpuapp --sysbuild -d /home/c11941/nrf_ble_samples/nrf5340_audio/build/dev_gateway/build_debug 
    ninja: error: loading 'build.ninja': No such file or directory
    FATAL ERROR: command exited with status 1: /home/c11941/ncs/toolchains/b81a7cd864/usr/local/bin/cmake --build /home/c11941/nrf_ble_samples/nrf5340_audio/build/dev_gateway/build_debug
    Traceback (most recent call last):
      File "/home/c11941/nrf_ble_samples/nrf5340_audio/tools/buildprog/buildprog.py", line 418, in <module>
        __main()
      File "/home/c11941/nrf_ble_samples/nrf5340_audio/tools/buildprog/buildprog.py", line 401, in __main
        __build_module(build_cfg, options)
      File "/home/c11941/nrf_ble_samples/nrf5340_audio/tools/buildprog/buildprog.py", line 176, in __build_module
        raise Exception("cmake error: " + str(ret_val))
    Exception: cmake error: 256

  • Kashyap23 said:
    r.I am using sdk v2.9 and toolchain v2.8

    Please make sure to always match the SDK and toolchain versions and make sure that you're building the audio application from the SDK version you're using.

    If you need input with the basics of NCS, building and seeing how things works together, I strongly recommend you spend some time in our academy pages 

    https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/ and https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/ 

    Kind regards,
    Andreas

  • I have removed the existing builds and i ran the script ,it worked now.

    I assume sample uses default usb audio but here i will be getting PCM data from mic with i2s .Can you guide me on that .

    Can you look into this?

  • Hi,

    Great,

    Kashyap23 said:
    I assume sample uses default usb audio but here i will be getting PCM data from mic with i2s .Can you guide me on that .

    Can you look into this?

    Unless any of the samples showcases how to do this, I'm afraid you are on your own w.r.t doing this work. I recommend you thoroughly investigate the Audio application docs, the i2s sample I sent as well as search the forums for any input.

    Everything you need should be present there.

    Kind regards,
    Andreas

Related