examples/speech_to_text.v1.js
function onEvent(name, event) {
  console.log(name, JSON.stringify(event, null, 2));
}
function onEvent(name, event) {
  console.log(name, JSON.stringify(event, null, 2));
}
function onEvent ( name , event ) { console . log ( name , JSON . stringify ( event , null , 2 ) ) ; }
Displays events on the console.
Displays events on the console .