vvvirani / flutter_audio_trimmer

Trimming an audio file means cutting a portion of the audio from the beginning or end of the file or removing some part from the middle.
MIT License
1 stars 2 forks source link

Trimming timing too restrictive #4

Closed SebasRebazCoding closed 3 months ago

SebasRebazCoding commented 3 months ago

I am currently using this package to trim audio files, but when I set the start too close to the audio's actual beginning, it throws an exception saying the following in a more technical fashion: The start and end Durations in Seconds cannot be zero.

This doesn't work very well when trying to trim content near the start or the end of an audio. Most online audio editors allow the user to trim a file with a precision down to the hundredth of a second. I suggest changing the assertion method from ".inSeconds" to ".inMilliseconds". imagen_2024-07-08_174951461

vvvirani commented 3 months ago

Hello @SebasRebazCoding It's supported for only seconds

SebasRebazCoding commented 3 months ago

I see. Thank you for your response.