Search code examples
javascriptnode.jsspeech-to-textgoogle-speech-api

Is there a way to convert .wav files to .raw in node?


I want to use google speech api to convert audio files to string. But it seems that it only accepts .raw files.


Solution

  • 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.