This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/TLV320DAC3120: Calculation of dB from a Sound File

Part Number: TLV320DAC3120
Other Parts Discussed in Thread: TLV320AIC3254, TLV320AIC3262

Tool/software: Linux

Hi All,

We are using TLV320DAC3120 in our Project.

We are in need of finding the Peak Value of an Audio File in dB.

We would like to know are they any Application or C Libraries to calculate it accurately.

Thanks in Advance.!

  • Hi, Mohan,

    This kind of application requires of an enhanced miniDSP. The TLV320DAC3120 miniDSP doesn't have enough capabilities to handle a peak detect/measurement algorithm.

    I would recommend to start a new E2E thread asking for the TLV320AIC3254 or TLV320AIC3262 capabilities. These are audio CODECs with more capabilities.

    If you have further questions or comments about the TLV320DAC3120 and its DAC family, please let me know.

    Best regards,
    Luis Fernando Rodríguez S.

  • Hi, Luis,

    Thanks for your quick reply.

    Thanks for letting me know the exact codec for measuring the peak detect of an Audio.

    But our intention is, we need to measure the Peak Detect value of an Audio File(Already Recorded File) via Software. Correct me, is it possible to measure by using any software packages.

  • Hi, Mohan,

    The algorithm of the TLV320AIC3254 or TLV320AIC3262 that I mentioned is capable to measure the peak value only in real time. We don't have a software to measure the peak value of a recorded file, but our PurePath Studio tool can be used to program algorithms in the TLV320AIC3254 or TLV320AIC3262. This is a graphical tool that helps to create your own algorithms:

    http://www.ti.com/tool/aicpurepath_studio

    You would need to send the audio via I2S to these audio codecs and the algorithm could be capable to compare the voltage levels.

    This could be a possible solution with our audio devices.

    Best regards,
    Luis Fernando Rodríguez S.

  • Hi, Luis,

    Thanks for your concerns and pointing in us the ways to measure the peak value.