I want to use google speech api to convert audio files to string. But it seems that it only accepts .raw files.
Asked
Active
Viewed 147 times
-1
-
https://henquist.github.io/0.5.2/coefficients_from_wav.html – Robert Harvey Dec 13 '22 at 16:14
-
`ffmpeg` can do this (it's not just for video files). There is a lot of information out there and I know it works with node.js (https://www.npmjs.com/package/ffmpeg-nodejs), check out this answer here to get started: https://stackoverflow.com/a/4854627/8678978 – chrisbyte Dec 13 '22 at 16:15
1 Answers
1
You don't have to convert them. See the Introduction to audio encoding documentation which discusses file formats vs encoding and shows the Supported audio encodings.

Ronnie Royston
- 16,778
- 6
- 77
- 91