Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 7 of 7

Thread: I2s input limitation 16 bits 44100 ?

  1. #1
    Junior Member
    Join Date
    Jul 2021
    Posts
    3

    I2s input limitation 16 bits 44100 ?

    Hello
    Can the audio lib get from I2S in 24 bits 192 khz?
    with an external ADC planned for that.

    I read that it was limited to 16 bit 44100,
    if so what teensy card
    thank you

  2. #2
    Senior Member
    Join Date
    Jul 2014
    Posts
    3,336
    Quote Originally Posted by artouste View Post
    Hello
    Can the audio lib get from I2S in 24 bits 192 khz?
    with an external ADC planned for that.

    I read that it was limited to 16 bit 44100,
    if so what teensy card
    thank you
    The audio library is designed for 16bot 44.1 kHz, but you can change. There is lot of evidence on this forum.

  3. #3
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    9,387
    44.1/16 bit is CD quality.... not sure if 192/24 makes much sense...

  4. #4
    Junior Member
    Join Date
    Jul 2021
    Posts
    3
    Quote Originally Posted by WMXZ View Post
    The audio library is designed for 16bot 44.1 kHz, but you can change. There is lot of evidence on this forum.
    Thank you for your quick response
    I will browse the forum a bit more.

    If you have 1 or 2 links that speak of that that would be great

  5. #5
    Senior Member
    Join Date
    Jul 2020
    Posts
    1,345
    Quote Originally Posted by artouste View Post
    Hello
    Can the audio lib get from I2S in 24 bits 192 khz?
    with an external ADC planned for that.
    The official library is 16 bit throughout, though some people are working on branches that extend to higher bitdepth -
    have a search around, theres a few active threads on these IIRC.

    I read that it was limited to 16 bit 44100,
    if so what teensy card
    thank you
    The default sample rate is 44100Hz, but you can change this with one line I believe. On a fast Teensy its
    not a problem to run lots faster. The bat-detector thread has details of a project using high sample rates for
    ultrasound for instance.

    The library is optimized for 32-bit processors without floating point support so it'll work on any ARM-based
    Teensy. Its interrupt driven and many I/O objects use DMA for best performance.

  6. #6
    Junior Member
    Join Date
    Jul 2021
    Posts
    3
    Quote Originally Posted by MarkT View Post
    The bat-detector thread has details of a project using high sample rates for
    ultrasound for instance.

    The library is optimized for 32-bit processors without floating point support so it'll work on any ARM-based
    Teensy. Its interrupt driven and many I/O objects use DMA for best performance.
    Thank you
    this is exactly what i need
    I will read (mora mora) 36 pages of the topic

  7. #7
    Senior Member CorBee's Avatar
    Join Date
    Jun 2018
    Location
    Netherlands
    Posts
    507
    The code I am using for the TeensyBat on a Teensy4.1 can be found overhere:
    https://forum.pjrc.com/threads/65225...%2C+true%29%3B

    for a Teenst 3.6 our code is based on:
    https://github.com/FrankBoesing/AudioTiming/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •