(Example using an MP3 file shown below) filename = './TEST/test.mp3' Ĭonst client = new speech.SpeechClient() Ĭontent: fs.readFileSync(filename).toString('base64'),Ĭonst = await client.recognize(request) Īnd I've also tried asynchronous recognition for longer audio files I've tried synchronous speech recognition for shorter audio files. The cut-off point is around 5-7 seconds into any uploaded file. It returns the recognition of the first few words, but then ignores the remainder of the audio file. I'm using Google's Speech-to-Text API in node js.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |