Skip to content

Commit

Permalink
speech (docs): Alpha -> Beta in README
Browse files Browse the repository at this point in the history
Fixes #2674
  • Loading branch information
stephenplusplus committed Nov 3, 2017
1 parent 200f93f commit 12634b0
Showing 1 changed file with 54 additions and 54 deletions.
108 changes: 54 additions & 54 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 12634b0

Please sign in to comment.