Discover Packages
github.com/polds/golang-samples
speech
livecaption_from_file
command
Version:
v0.0.0-...-71aea42
Opens a new window with list of versions in this module.
Published: Jun 5, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Google Cloud Speech API Go example
Authentication
Create a project with the Google Cloud Console , and enable
the Speech API .
From the Cloud Console, create a service account,
download its json credentials file, then set the
GOOGLE_APPLICATION_CREDENTIALS
environment variable:
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/your-project-credentials.json
Run the sample
Before running any example you must first install the Speech API client:
go get -u cloud.google.com/go/speech/apiv1
To run the example with one of a sample audio file:
go build
livecaption_from_file ../testdata/audio.raw
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.