Tau: Get volume history

Created on 5 Jun 2020  ·  10Comments  ·  Source: Canardoux/tau

Is your feature request related to a problem? Please describe.
Thanks for the library! I wonder how to get the loudness given a timestamp? For instance, "how loud is it at 1.5s?"

Describe the solution you'd like
Creating a API

Describe alternatives you've considered
N/A

Additional context
N/A

enhancement TODO

Most helpful comment

hi @fzyzcjy

I guess that you want to analyze your record statically (not during a playback) ?
I do not see any simple way to do that.
My advice is to have a look to the FFmpeg documentation (I have never read seriously this doc).
If there is something that you can do, it will be thanks to FFmpeg which is a great utility and which is embedded inside Flutter Sound.
But I am not very optimist ...
Maybe you could try to decode your record to PCM format : it will be more easy to work on a file which is not encoded and compressed.
If someone has a better idea ...
Good luck @fzyzcjy

All 10 comments

hi @fzyzcjy

I guess that you want to analyze your record statically (not during a playback) ?
I do not see any simple way to do that.
My advice is to have a look to the FFmpeg documentation (I have never read seriously this doc).
If there is something that you can do, it will be thanks to FFmpeg which is a great utility and which is embedded inside Flutter Sound.
But I am not very optimist ...
Maybe you could try to decode your record to PCM format : it will be more easy to work on a file which is not encoded and compressed.
If someone has a better idea ...
Good luck @fzyzcjy

I am thinking to your problem :
I think that what I suggested is the good way for you :
If you convert your file to PCM, it should be simple to access to your record randomly. Because you will know the sample rate of your PCM file, you can access directly into it, and get the value for 1.5s .
If your file is PCM-linear16 this is a 16bits integer.
If your file is PCM-float this is a floating point number.

Probably you will want the value in decibels, so you will have to process this value.
Again, good luck...

Thank you so much for your detail reply and suggestions! I will try your advice, thanks!

I think that this feature would be very interesting in Flutter Sound.
If you are working on this issue, I would be very interested to have some Pull Request from you so that you will contribute for others Flutter Sound users.
If you do not work on this issue, I will work on it later (actually I am very busy).

I really think that it would be great feature in Flutter Sound 👍

I may work on it later because I may run it on the server, or directly record the DB value during recording (also using this wonderful library) :)

This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.

Dear 'Bot', please keep this issue open 😄

Dear "bot", please keep this issue open. 😡

+1

Was this page helpful?
0 / 5 - 0 ratings