Skip to content

Commit 12634b0

Browse files
speech (docs): Alpha -> Beta in README
Fixes #2674
1 parent 200f93f commit 12634b0

File tree

1 file changed

+54
-54
lines changed

1 file changed

+54
-54
lines changed

README.md

+54-54
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ This client supports the following Google Cloud Platform services at a [Beta](#v
2323
* [Cloud Firestore](https://github.com/googleapis/nodejs-firestore/) (Beta)
2424
* [Cloud Pub/Sub](#cloud-pubsub-beta) (Beta)
2525
* [Cloud Spanner](https://github.com/googleapis/nodejs-spanner/) (Beta)
26+
* [Cloud Speech](#cloud-speech-beta) (Beta)
2627
* [Cloud Video Intelligence](https://github.com/googleapis/nodejs-video-intelligence/) (Beta)
2728
* [Cloud Vision](#cloud-vision-beta) (Beta)
2829
* [Google BigQuery](#google-bigquery-beta) (Beta)
@@ -33,7 +34,6 @@ This client supports the following Google Cloud Platform services at an [Alpha](
3334
* [Cloud Bigtable](https://github.com/googleapis/nodejs-bigtable) (Alpha)
3435
* [Cloud DNS](https://github.com/googleapis/nodejs-dns) (Alpha)
3536
* [Cloud Resource Manager](#cloud-resource-manager-alpha) (Alpha)
36-
* [Cloud Speech](#cloud-speech-alpha) (Alpha)
3737
* [Google Compute Engine](https://github.com/googleapis/nodejs-compute) (Alpha)
3838
* [Google Prediction API](#google-prediction-api-alpha) (Alpha)
3939
* [Google Stackdriver Debugger](#google-stackdriver-debugger-alpha) (Alpha)
@@ -643,6 +643,59 @@ database.runStream('SELECT * FROM Singers')
643643
```
644644

645645

646+
## Cloud Speech (Beta)
647+
648+
- [API Documentation][gcloud-speech-docs]
649+
- [Official Documentation][cloud-speech-docs]
650+
651+
#### Using the Cloud Speech API module
652+
653+
```
654+
$ npm install --save @google-cloud/speech
655+
```
656+
657+
```js
658+
var speech = require('@google-cloud/speech');
659+
```
660+
661+
#### Authentication
662+
663+
See [Authentication](#authentication).
664+
665+
#### Preview
666+
667+
```js
668+
var speechClient = speech({
669+
projectId: 'my-project',
670+
keyFilename: '/path/to/keyfile.json'
671+
});
672+
673+
var languageCode = 'en-US';
674+
var sampleRateHertz = 44100;
675+
var encoding = speech.v1.types.RecognitionConfig.AudioEncoding.FLAC;
676+
var config = {
677+
languageCode : languageCode,
678+
sampleRateHertz : sampleRateHertz,
679+
encoding : encoding
680+
};
681+
var uri = 'gs://gapic-toolkit/hello.flac';
682+
var audio = {
683+
uri : uri
684+
};
685+
var request = {
686+
config: config,
687+
audio: audio
688+
};
689+
speechClient.recognize(request).then(function(responses) {
690+
var response = responses[0];
691+
// doThingsWith(response)
692+
})
693+
.catch(function(err) {
694+
console.error(err);
695+
});
696+
```
697+
698+
646699
## Cloud Vision (Beta)
647700

648701
- [API Documentation][gcloud-vision-docs]
@@ -970,59 +1023,6 @@ project.getMetadata(function(err, metadata) {
9701023
```
9711024

9721025

973-
## Cloud Speech (Alpha)
974-
975-
- [API Documentation][gcloud-speech-docs]
976-
- [Official Documentation][cloud-speech-docs]
977-
978-
#### Using the Cloud Speech API module
979-
980-
```
981-
$ npm install --save @google-cloud/speech
982-
```
983-
984-
```js
985-
var speech = require('@google-cloud/speech');
986-
```
987-
988-
#### Authentication
989-
990-
See [Authentication](#authentication).
991-
992-
#### Preview
993-
994-
```js
995-
var speechClient = speech({
996-
projectId: 'my-project',
997-
keyFilename: '/path/to/keyfile.json'
998-
});
999-
1000-
var languageCode = 'en-US';
1001-
var sampleRateHertz = 44100;
1002-
var encoding = speech.v1.types.RecognitionConfig.AudioEncoding.FLAC;
1003-
var config = {
1004-
languageCode : languageCode,
1005-
sampleRateHertz : sampleRateHertz,
1006-
encoding : encoding
1007-
};
1008-
var uri = 'gs://gapic-toolkit/hello.flac';
1009-
var audio = {
1010-
uri : uri
1011-
};
1012-
var request = {
1013-
config: config,
1014-
audio: audio
1015-
};
1016-
speechClient.recognize(request).then(function(responses) {
1017-
var response = responses[0];
1018-
// doThingsWith(response)
1019-
})
1020-
.catch(function(err) {
1021-
console.error(err);
1022-
});
1023-
```
1024-
1025-
10261026
## Google Compute Engine (Alpha)
10271027

10281028
- [API Documentation][gcloud-compute-docs]

0 commit comments

Comments
 (0)