Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion librarian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,6 @@ libraries:
- path: google/cloud/speech/v1
- path: google/cloud/speech/v1p1beta1
copyright_year: "2026"
skip_generate: true
nodejs:
default_version: v1
dependencies:
Expand Down
22 changes: 0 additions & 22 deletions packages/google-cloud-speech/.OwlBot.yaml

This file was deleted.

31 changes: 15 additions & 16 deletions packages/google-cloud-speech/.repo-metadata.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"name": "speech",
"name_pretty": "Cloud Speech",
"product_documentation": "https://cloud.google.com/speech-to-text/docs/",
"client_documentation": "https://googleapis.dev/nodejs/speech/latest",
"issue_tracker": "https://issuetracker.google.com/savedsearches/559758",
"release_level": "stable",
"language": "nodejs",
"repo": "googleapis/google-cloud-node",
"distribution_name": "@google-cloud/speech",
"api_id": "speech.googleapis.com",
"requires_billing": false,
"codeowner_team": "@googleapis/ml-apis",
"default_version": "v1",
"api_shortname": "speech",
"library_type": "GAPIC_COMBO"
}
"api_description": "Converts audio to text by applying powerful neural network models.",
"api_id": "speech.googleapis.com",
"api_shortname": "speech",
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/speech/latest",
"default_version": "v1",
"distribution_name": "@google-cloud/speech",
"issue_tracker": "https://issuetracker.google.com/savedsearches/559758",
"language": "nodejs",
"library_type": "GAPIC_AUTO",
"name": "speech",
"name_pretty": "Cloud Speech-to-Text",
"product_documentation": "https://cloud.google.com/speech-to-text/docs",
"release_level": "stable",
"repo": "googleapis/google-cloud-node"
}
4 changes: 0 additions & 4 deletions packages/google-cloud-speech/prettier.config.js

This file was deleted.

131 changes: 0 additions & 131 deletions packages/google-cloud-speech/src/helpers.ts

This file was deleted.

45 changes: 10 additions & 35 deletions packages/google-cloud-speech/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,46 +11,21 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// ** This file is automatically generated by synthtool. **
// ** https://github.com/googleapis/synthtool **
// ** All changes to this file may be overwritten. **

import {ImprovedStreamingClient} from './helpers';
import * as v1p1beta1 from './v1p1beta1';
import * as v1 from './v1';
import * as v1p1beta1 from './v1p1beta1';
import * as v2 from './v2';

// The following code is adapted from http://www.typescriptlang.org/docs/handbook/mixins.html
// tslint:disable-next-line no-any
Object.defineProperty(
v1.SpeechClient.prototype,
'streamingRecognize',
Object.getOwnPropertyDescriptor(
ImprovedStreamingClient.prototype,
'streamingRecognize'
)!
);
Object.defineProperty(
v1p1beta1.SpeechClient.prototype,
'streamingRecognize',
Object.getOwnPropertyDescriptor(
ImprovedStreamingClient.prototype,
'streamingRecognize'
)!
);
Object.defineProperty(
v2.SpeechClient.prototype,
'streamingRecognize',
Object.getOwnPropertyDescriptor(
ImprovedStreamingClient.prototype,
'streamingRecognize'
)!
);
Comment on lines +15 to -45

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Do not manually edit generated TypeScript client files. Any changes or updates must be made upstream in the generator. If the custom streamingRecognize helper (previously in helpers.ts) needs to be restored, please ensure this is handled upstream in the generator rather than manually editing the files in this repository.

References
  1. Do not manually edit generated TypeScript client files. Any changes or updates must be made upstream in the generator.


const SpeechClient = v1.SpeechClient;
type SpeechClient = v1.SpeechClient;
const AdaptationClient = v1.AdaptationClient;
type AdaptationClient = v1.AdaptationClient;
export {v1, v1p1beta1, v2, SpeechClient, AdaptationClient};
// For compatibility with JavaScript libraries we need to provide this default export:
// tslint:disable-next-line no-default-export
export default {v1, v1p1beta1, v2, SpeechClient, AdaptationClient};
const SpeechClient = v1.SpeechClient;
type SpeechClient = v1.SpeechClient;

export {v1, v1p1beta1, v2, AdaptationClient, SpeechClient};
export default {v1, v1p1beta1, v2, AdaptationClient, SpeechClient};
import * as protos from '../protos/protos';
export {protos};
Binary file not shown.
111 changes: 0 additions & 111 deletions packages/google-cloud-speech/system-test/speech_system_test.js

This file was deleted.

Loading
Loading