From 12634b05f71fb7a34b157e350a548043f6402bec Mon Sep 17 00:00:00 2001 From: Stephen Sawchuk Date: Fri, 3 Nov 2017 05:21:17 -0400 Subject: [PATCH] speech (docs): Alpha -> Beta in README Fixes #2674 --- README.md | 108 +++++++++++++++++++++++++++--------------------------- 1 file changed, 54 insertions(+), 54 deletions(-) diff --git a/README.md b/README.md index 99bc617d2d4..a72f632a09c 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ This client supports the following Google Cloud Platform services at a [Beta](#v * [Cloud Firestore](https://github.com/googleapis/nodejs-firestore/) (Beta) * [Cloud Pub/Sub](#cloud-pubsub-beta) (Beta) * [Cloud Spanner](https://github.com/googleapis/nodejs-spanner/) (Beta) +* [Cloud Speech](#cloud-speech-beta) (Beta) * [Cloud Video Intelligence](https://github.com/googleapis/nodejs-video-intelligence/) (Beta) * [Cloud Vision](#cloud-vision-beta) (Beta) * [Google BigQuery](#google-bigquery-beta) (Beta) @@ -33,7 +34,6 @@ This client supports the following Google Cloud Platform services at an [Alpha]( * [Cloud Bigtable](https://github.com/googleapis/nodejs-bigtable) (Alpha) * [Cloud DNS](https://github.com/googleapis/nodejs-dns) (Alpha) * [Cloud Resource Manager](#cloud-resource-manager-alpha) (Alpha) -* [Cloud Speech](#cloud-speech-alpha) (Alpha) * [Google Compute Engine](https://github.com/googleapis/nodejs-compute) (Alpha) * [Google Prediction API](#google-prediction-api-alpha) (Alpha) * [Google Stackdriver Debugger](#google-stackdriver-debugger-alpha) (Alpha) @@ -643,6 +643,59 @@ database.runStream('SELECT * FROM Singers') ``` +## Cloud Speech (Beta) + +- [API Documentation][gcloud-speech-docs] +- [Official Documentation][cloud-speech-docs] + +#### Using the Cloud Speech API module + +``` +$ npm install --save @google-cloud/speech +``` + +```js +var speech = require('@google-cloud/speech'); +``` + +#### Authentication + +See [Authentication](#authentication). + +#### Preview + +```js +var speechClient = speech({ + projectId: 'my-project', + keyFilename: '/path/to/keyfile.json' +}); + +var languageCode = 'en-US'; +var sampleRateHertz = 44100; +var encoding = speech.v1.types.RecognitionConfig.AudioEncoding.FLAC; +var config = { + languageCode : languageCode, + sampleRateHertz : sampleRateHertz, + encoding : encoding +}; +var uri = 'gs://gapic-toolkit/hello.flac'; +var audio = { + uri : uri +}; +var request = { + config: config, + audio: audio +}; +speechClient.recognize(request).then(function(responses) { + var response = responses[0]; + // doThingsWith(response) +}) +.catch(function(err) { + console.error(err); +}); +``` + + ## Cloud Vision (Beta) - [API Documentation][gcloud-vision-docs] @@ -970,59 +1023,6 @@ project.getMetadata(function(err, metadata) { ``` -## Cloud Speech (Alpha) - -- [API Documentation][gcloud-speech-docs] -- [Official Documentation][cloud-speech-docs] - -#### Using the Cloud Speech API module - -``` -$ npm install --save @google-cloud/speech -``` - -```js -var speech = require('@google-cloud/speech'); -``` - -#### Authentication - -See [Authentication](#authentication). - -#### Preview - -```js -var speechClient = speech({ - projectId: 'my-project', - keyFilename: '/path/to/keyfile.json' -}); - -var languageCode = 'en-US'; -var sampleRateHertz = 44100; -var encoding = speech.v1.types.RecognitionConfig.AudioEncoding.FLAC; -var config = { - languageCode : languageCode, - sampleRateHertz : sampleRateHertz, - encoding : encoding -}; -var uri = 'gs://gapic-toolkit/hello.flac'; -var audio = { - uri : uri -}; -var request = { - config: config, - audio: audio -}; -speechClient.recognize(request).then(function(responses) { - var response = responses[0]; - // doThingsWith(response) -}) -.catch(function(err) { - console.error(err); -}); -``` - - ## Google Compute Engine (Alpha) - [API Documentation][gcloud-compute-docs]