Skip to content

Sample code for sending mic audio from webpage to Google Cloud Speech to Text API using the Google SDK for .Net

Notifications You must be signed in to change notification settings

jacodv/GoogleSTT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoogleSTT

Sample code for sending mic audio from webpage to Google Cloud Speech to Text API using the Google SDK for .Net

First prize

Stream audio from mic to Google Speech to Text proxied through a backend

Second prize

Send full audio file from web page to backend to Google STT

Status

  • Successfully achieved the Second prize (branch_Record-in-browser-before-sending-all | index.html)
  1. Capture audio and buffer in page
  2. Send WAV from web page to backend via POST
  3. Send WAV from backend to Google STT
  4. Handle the responses and send back via websocket.
  • Working on First prize (branch_Record-in-browser-before-sending-all | mediaStreamRecorder.html)
  1. Capturing audio in 1 sec intervals
  2. Sending WAV chunks to backend via POST
  3. Save chucks to disk and ensure are playable WAV files for each chunck
  4. Send each WAV chunk to Google STT
  5. No response (400 error)
  • Received some results on the GoogleSample.html tests using web sockets and streaming
  1. But mostly still 400 errors in the Google Cloud Console for Speech To Text Api

TODO

About

Sample code for sending mic audio from webpage to Google Cloud Speech to Text API using the Google SDK for .Net

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published