Search code examples
javascriptgoogle-apps-scriptspeech-recognitionaudio-recording

How to get audio file from mic in Google Apps Script?


Using Google Apps Script I would like to ask user for audio input through a microphone, and then save the resulting file to google drive (preferably in flac format). I can then send the file to Google Cloud Speech API and get the text.

What are the approaches I can take to get the audio file from mic?


Solution

  • AFAIK Google Apps Script doesn't include a service that helps to get the audio from a mic but you could use an external API or with JavaScript / HTML5 by creating a UI by using the HTML Service.

    Related