Search code examples
audioffmpegcompressiongoogle-speech-apiflac

Webm to Flac using FFMPEG


I am recording audio from HTML and it is getting stored as .webm format. I feeding that audio to google speech api to get the transcript from it. I found out that .flac is lossless so I converted it from webm to flac using FFMPEG. But i am having one doubt, converting audio from webm to flac increases the size of file but if an audio is already lossy with webm format converting to flac will still be lossy because the information is already lost. Am i wrong with this assumption ?


Solution

  • Am i wrong with this assumption ?

    No. FLAC conversion will only preserve the data in the source file. Any data lost during original conversion to WebM codec (Opus/vorbis) is gone.