Skip to content

Commit

Permalink
docs(samples): removing migrated samples (#985)
Browse files Browse the repository at this point in the history
* chore: remove migrated samples

* chore: remove migrated samples

* chore: remove migrated samples

* chore: remove migrated samples

* chore: remove migrated samples

* chore: remove migrated samples

* chore: remove migrated samples

* chore: update README to point to migrated samples location

* chore: remove migrated samples

* chore: remove migrated samples

* chore: remove migrated samples

* chore: remove migrated samples

* chore: remove resources for migrated samples

* chore: remove samples testing

* chore: remove samples testing

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: revert removal of quickstart.js as it's used by the library

* chore: revert removal of samples tests as it's still used by the library

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: revert removing samples tests

* delete all other samples tests

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Sofia Leon <[email protected]>
  • Loading branch information
3 people authored Jan 19, 2023
1 parent 66ea4a2 commit 73a92c2
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 200 deletions.
10 changes: 0 additions & 10 deletions packages/google-cloud-node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-speech/tree

| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
| Microphone stream | [source code](https://github.com/googleapis/nodejs-speech/blob/main/samples/MicrophoneStream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/MicrophoneStream.js,samples/README.md) |
| Beta Features | [source code](https://github.com/googleapis/nodejs-speech/blob/main/samples/betaFeatures.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/betaFeatures.js,samples/README.md) |
| Export-to-storage.v1p1beta1 | [source code](https://github.com/googleapis/nodejs-speech/blob/main/samples/export-to-storage.v1p1beta1.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/export-to-storage.v1p1beta1.js,samples/README.md) |
| Infinite Streaming | [source code](https://github.com/googleapis/nodejs-speech/blob/main/samples/infiniteStreaming.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/infiniteStreaming.js,samples/README.md) |
| Model Adaptation | [source code](https://github.com/googleapis/nodejs-speech/blob/main/samples/modelAdaptation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/modelAdaptation.js,samples/README.md) |
| Multi Region | [source code](https://github.com/googleapis/nodejs-speech/blob/main/samples/multiRegion.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/multiRegion.js,samples/README.md) |
| Profanity Filter | [source code](https://github.com/googleapis/nodejs-speech/blob/main/samples/profanityFilter.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/profanityFilter.js,samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/nodejs-speech/blob/main/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
| Recognize | [source code](https://github.com/googleapis/nodejs-speech/blob/main/samples/recognize.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/recognize.js,samples/README.md) |
| Recognize speech with metadata | [source code](https://github.com/googleapis/nodejs-speech/blob/main/samples/recognize.v1p1beta1.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/recognize.v1p1beta1.js,samples/README.md) |
| Transcribe Context Classes | [source code](https://github.com/googleapis/nodejs-speech/blob/main/samples/transcribeContextClasses.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/transcribeContextClasses.js,samples/README.md) |



Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-node/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/google-cloud-node/protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

188 changes: 0 additions & 188 deletions packages/google-cloud-node/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,7 @@

* [Before you begin](#before-you-begin)
* [Samples](#samples)
* [Microphone stream](#microphone-stream)
* [Beta Features](#beta-features)
* [Export-to-storage.v1p1beta1](#export-to-storage.v1p1beta1)
* [Infinite Streaming](#infinite-streaming)
* [Model Adaptation](#model-adaptation)
* [Multi Region](#multi-region)
* [Profanity Filter](#profanity-filter)
* [Quickstart](#quickstart)
* [Recognize](#recognize)
* [Recognize speech with metadata](#recognize-speech-with-metadata)
* [Transcribe Context Classes](#transcribe-context-classes)

## Before you begin

Expand All @@ -39,129 +29,6 @@ Before running the samples, make sure you've followed the steps outlined in



### Microphone stream

Streams audio input from microphone, translates to text.

View the [source code](https://github.com/googleapis/nodejs-speech/blob/main/samples/MicrophoneStream.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/MicrophoneStream.js,samples/README.md)

__Usage:__


`node MicrophoneStream.js <encoding> <sampleRateHertz> <languageCode>`


-----




### Beta Features

View the [source code](https://github.com/googleapis/nodejs-speech/blob/main/samples/betaFeatures.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/betaFeatures.js,samples/README.md)

__Usage:__


`node samples/betaFeatures.js`


-----




### Export-to-storage.v1p1beta1

View the [source code](https://github.com/googleapis/nodejs-speech/blob/main/samples/export-to-storage.v1p1beta1.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/export-to-storage.v1p1beta1.js,samples/README.md)

__Usage:__


`node samples/export-to-storage.v1p1beta1.js`


-----




### Infinite Streaming

Performs infinite streaming using the streamingRecognize operation with the Cloud Speech API.

View the [source code](https://github.com/googleapis/nodejs-speech/blob/main/samples/infiniteStreaming.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/infiniteStreaming.js,samples/README.md)

__Usage:__


`node infiniteStreaming.js <encoding> <sampleRateHertz> <languageCode> <streamingLimit>`


-----




### Model Adaptation

View the [source code](https://github.com/googleapis/nodejs-speech/blob/main/samples/modelAdaptation.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/modelAdaptation.js,samples/README.md)

__Usage:__


`node samples/modelAdaptation.js`


-----




### Multi Region

View the [source code](https://github.com/googleapis/nodejs-speech/blob/main/samples/multiRegion.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/multiRegion.js,samples/README.md)

__Usage:__


`node samples/multiRegion.js`


-----




### Profanity Filter

View the [source code](https://github.com/googleapis/nodejs-speech/blob/main/samples/profanityFilter.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/profanityFilter.js,samples/README.md)

__Usage:__


`node samples/profanityFilter.js`


-----




### Quickstart

View the [source code](https://github.com/googleapis/nodejs-speech/blob/main/samples/quickstart.js).
Expand All @@ -174,61 +41,6 @@ __Usage:__
`node samples/quickstart.js`


-----




### Recognize

View the [source code](https://github.com/googleapis/nodejs-speech/blob/main/samples/recognize.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/recognize.js,samples/README.md)

__Usage:__


`node samples/recognize.js`


-----




### Recognize speech with metadata

Analyzes an audio stream, and detects speech along with metadata.

View the [source code](https://github.com/googleapis/nodejs-speech/blob/main/samples/recognize.v1p1beta1.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/recognize.v1p1beta1.js,samples/README.md)

__Usage:__


`node recognize.v1p1beta1.js ./resources/commercial_mono.wav <encoding> <sampleRateHertz> <languageCode>`


-----




### Transcribe Context Classes

Provides "hints" to the speech recognizer to favor specific words and phrases in the results.

View the [source code](https://github.com/googleapis/nodejs-speech/blob/main/samples/transcribeContextClasses.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-speech&page=editor&open_in_editor=samples/transcribeContextClasses.js,samples/README.md)

__Usage:__


`node samples/transcribeContextClasses.js <storageUri>`





Expand Down

0 comments on commit 73a92c2

Please sign in to comment.