Assuming you have a video file named myvideo.webm, the first step is to extract the audio. To manage API limitations effectively, compress the audio as much as possible.
ffmpeg -i myvideo.webm -ac 1 -b:a 16k -map a output.webm
FFmpeg parameters explained: