Replies: 2 comments 1 reply
-
Yes the issue you mentioned does not allow to properly get WAV or PCM data. On a fix right now, still need a bit of testing and will release an updated version of the record_web package. From the exsample code you provide, web supports WAV format. You don't need to mess with your own conversion. |
Beta Was this translation helpful? Give feedback.
-
Streaming is available for PCM mostly. Please see the readme.md file for feature matrix. The path returned by |
Beta Was this translation helpful? Give feedback.
-
Package version
5.0.0-beta.2
Environment
Describe the Issue
Hello. I'm currently studying Flutter and trying to create a project using the 'record' library to record voice with a microphone in a Flutter web app and save it as a wav file.
I came across the discussion in #194 when looking for ways to save the recorded data.
After copying the code from the above link, I tried to download the file directly instead of uploading it to a server. However, the result was a file that couldn't be played at all, and I'm unsure about what went wrong.
Config
Code for start Recording
Code for stop Recording & Download audio file.
The converting data code is copied from #194.
Question
The downloaded file 'test.wav' using the above method does not play. Initially, I recorded with the
start(config)
function and tried to download the file by obtaining the path using thestop()
function. But this method only gave me a path of binary file in HTML format (and it seemed like it didn't even have the recorded data).I then came across Distorted audio recordings on web #194 and installed the beta version of the 'record' library, and tried using the
startStream(config)
function. I expected this would give me the binary data of the recorded audio and was hopeful for success. However, once again, the resulting 'test.wav' file would not play.I'm not sure if it's related to the above, but despite the codec of the config being set to
AudioEncoder.pcm16bits
, I get the following message when starting the recording:Container/codec chosen: audio/webm;codecs=opus
Expected behavior:
I want to save the recorded voice from the web app as a playable wav file.
thanks.
Beta Was this translation helpful? Give feedback.
All reactions