Canardoux / flutter_sound

Flutter plugin for sound. Audio recorder and player.
Mozilla Public License 2.0
850 stars 553 forks source link

[BUG]: pcmToWaveBuffer run wrong #1042

Open quyetvu95 opened 3 weeks ago

quyetvu95 commented 3 weeks ago

Flutter Sound Version : 9.4.17

When I using function pcmToWaveBuffer convert pcmToWaveBuffer and save in File (wav) . File have only 1 second duration.

Larpoux commented 3 weeks ago

No, if you want WAV record, just specify this codec during the recording. No need to use RAW PCM.

quyetvu95 commented 3 weeks ago

I using PCM for recordToStream and send data wav to Server via Socket

Larpoux commented 3 weeks ago

You can record a WAV record and call waveToPCMBuffer() (and not pcmToWaveBuffer(), of course).

Larpoux commented 3 weeks ago

I suggest that you use first, files and not buffers, so that you will be able to look to them int the debugger. And if everything OK, you may use buffers instead of files.