-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
audioDataList WIth No Json #25
Comments
Hey, the package doesn't support directly reading from an audio file due to various reasons, one of them being scaling! You definitely won't be adding/downloading a audio file each time you want to present a waveform for it. Thus, the normalized json data set coze it's easy to move around and manage. |
this will only work for uncompressed audio file data like PCM/WAV as depicted here: List calculateJson( List filteredData = []; int amplitude = 0; if (bits == 24) { int totalSamples = (rawSamples.length / blockSize).toInt(); for (int i = 0; i < totalSamples; i++) {
} final double multiplier = pow(maxNum, -1).toDouble(); final samples = filteredData.map((e) => (e * multiplier)).toList(); return samples; |
I'm not clearly able to understand ur concern. Could you please elaborate a little on it? |
Sure. Your package is an excellent solution if you have the jason data already. If not you need to create the jason file as a first step. |
Ah ok. As I said, I don't plan to support json data creation through package. May be in future but nothing planned right now. Any contributions are welcome if you plan to work on something like that. Also, wdym by "this will only work for uncompressed audio file data like PCM/WAV as depicted here:" in above message? Am I missing something? |
To extract the JSON Data you need to have access to the uncompressed and raw data.
This is easy with respect to WAV.
MP3 or OGG is a compressed file format. Hence you have to decompress first. This is a rathe complex topic.
Sent from MailDroid
…-----Original Message-----
From: Rutvik Tak ***@***.***>
To: rutvik110/flutter_audio_waveforms ***@***.***>
Cc: Thomas ***@***.***>, Comment ***@***.***>
Sent: Mi., 25 Jan. 2023 5:30
Subject: Re: [rutvik110/flutter_audio_waveforms] audioDataList WIth No Json (Issue #25)
Ah ok. As I said, I don't plan to support json data creation through package. May be in future but nothing planned right now. Any contributions are welcome if you plan to work on something like that.
Also, wdym by "this will only work for uncompressed audio file data like PCM/WAV as depicted here:" in above message? Am I missing something?
--
Reply to this email directly or view it on GitHub:
#25 (comment)
You are receiving this because you commented.
Message ID: ***@***.***>
|
ah ohk. This could be critical for some people. Give me some time, I'll have to think abt how we can better support this. |
Hi, any consideration add unit8list from url support built-in or any guidance to do this? Really need! |
How to made it read from the file audio and not include the json file?
@rutvik110
The text was updated successfully, but these errors were encountered: