GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — nodejs-docs-samples/speech at master · enterstudio/nodejs-docs-samples

Expand file tree

/

speech

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

speech

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
resources
resources
 
 
system-test
system-test
 
 
README.md
README.md
 
 
package.json
package.json
 
 
quickstart.js
quickstart.js
 
 
recognize.js
recognize.js
 
 
yarn.lock
yarn.lock
 
 

README.md

Outline

Google Cloud Platform logo

Google Cloud Speech API Node.js Samples

The Cloud Speech API enables easy integration of Google speech recognition technologies into developer applications.

Table of Contents

  • Setup
  • Samples
    • Recognize

Setup

  1. Read Prerequisites and How to run a sample first.

  2. Install dependencies:

     npm install
    

Samples

Recognize

View the documentation or the source code.

Usage: node recognize.js --help

Commands:
  sync <filename>     Detects speech in a local audio file.
  sync-gcs <gcsUri>   Detects speech in an audio file located in a Google Cloud Storage bucket.
  async <filename>    Creates a job to detect speech in a local audio file, and waits for the job to complete.
  async-gcs <gcsUri>  Creates a job to detect speech in an audio file located in a Google Cloud Storage bucket, and
                      waits for the job to complete.
  stream <filename>   Detects speech in a local audio file by streaming it to the Speech API.
  listen              Detects speech in a microphone input stream.

Options:
  --help            Show help                                                                                  [boolean]
  --encoding, -e                                                                          [string] [default: "LINEAR16"]
  --sampleRate, -r                                                                             [number] [default: 16000]

Examples:
  node recognize.js sync ./resources/audio.raw -e LINEAR16 -r 16000
  node recognize.js async-gcs gs://my-bucket/audio.raw -e LINEAR16 -r 16000
  node recognize.js stream ./resources/audio.raw  -e LINEAR16 -r 16000
  node recognize.js listen

For more information, see https://cloud.google.com/speech/docs
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.