Google Speech API: Can recognize speech from OGG file

Viewed 1059

I'm using Google Speech API to recognize Vietnamese speech in an .OGG file audio using Python. But it doesn't give back any results.

2 Answers

Try using this config, for me works using nodejs

const config = {
  encoding: 'OGG_OPUS',
  sampleRateHertz: 16000,
  languageCode: 'YOUR_LAUNGAGE CODE'
}

I'm working with telegram audio file that are OGA

Related