These samples require two environment variables to be set:
GOOGLE_APPLICATION_CREDENTIALS- Path to a service account file. You can download one from your Google project's "credentials" page.GCLOUD_PROJECT- ID of your Google project.
See gcloud-node authentication for more details.
Install dependencies first:
npm install
Execute the sample:
node recognize "/path/to/audio.file"