audio_waveforms
audio_waveforms copied to clipboard
Can fix wave max length width when Record?
Example code is when recording not fixed wavelength and allow move to gesture.
But, I want fix specific max wavelength(ex. millisecond unit).
Can available?
If I understood you correctly you want to fix the recording time of the audio recorder, if yes then you can just create a Duration
instance and wait for it. After it completes just stop the recorder.
@ujas-m-simformsolutions Thank you for response.
I want not only fix recording time, but also fix Waveform max length.
For example expended waveform when record more then certain time length, but I want don't expend waveform but weveform length by percentage.
I think you want the fixed number of waves shown on the screen and when the user uses the mic all the fixed number of waves should react to it, right?
@ujas-m-simformsolutions
Um.. No, just set max wave form length. (Allow early stop)
The current default implementation for recording waves is they start from the middle of the provided width so you want the full width if yes then in WaveStyle
there is a parameter extendWaveform
if you provide true then waveforms will take the full provided width.
@ujas-m-simformsolutions Yes, I know.
But a few seconds later, waveforms move to left.
I think set compressed num(?) when finish the record.
If have two different time length audio files.
I want the waveform length to be different, but currently the same.
so you want a custom middle line position. Where waveforms shouldn't pass that custom-provided offset which is right now size.width/2
if extendWaveform isn't set to true.
@ujas-m-simformsolutions I think Yes.