audio_waveforms icon indicating copy to clipboard operation
audio_waveforms copied to clipboard

Can fix wave max length width when Record?

Open brainer3220 opened this issue 1 year ago • 8 comments

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?

brainer3220 avatar Sep 06 '22 07:09 brainer3220

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 avatar Sep 06 '22 09:09 ujas-m-simformsolutions

@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.

brainer3220 avatar Sep 06 '22 11:09 brainer3220

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 avatar Sep 06 '22 14:09 ujas-m-simformsolutions

@ujas-m-simformsolutions IMAGE 2022-09-07 00:03:14

Um.. No, just set max wave form length. (Allow early stop)

brainer3220 avatar Sep 06 '22 15:09 brainer3220

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 avatar Sep 07 '22 05:09 ujas-m-simformsolutions

@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.

brainer3220 avatar Sep 07 '22 06:09 brainer3220

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 avatar Sep 07 '22 08:09 ujas-m-simformsolutions

@ujas-m-simformsolutions I think Yes.

brainer3220 avatar Sep 07 '22 09:09 brainer3220