@google-cloud/speech
Advanced tools
Comparing version 5.0.3 to 5.1.0
import * as v1p1beta1 from './v1p1beta1'; | ||
import * as v1 from './v1'; | ||
import * as v2 from './v2'; | ||
declare const SpeechClient: typeof v1.SpeechClient; | ||
@@ -7,6 +8,7 @@ declare type SpeechClient = v1.SpeechClient; | ||
declare type AdaptationClient = v1.AdaptationClient; | ||
export { v1, v1p1beta1, SpeechClient, AdaptationClient }; | ||
export { v1, v1p1beta1, v2, SpeechClient, AdaptationClient }; | ||
declare const _default: { | ||
v1: typeof v1; | ||
v1p1beta1: typeof v1p1beta1; | ||
v2: typeof v2; | ||
SpeechClient: typeof v1.SpeechClient; | ||
@@ -13,0 +15,0 @@ AdaptationClient: typeof v1.AdaptationClient; |
@@ -16,3 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.protos = exports.AdaptationClient = exports.SpeechClient = exports.v1p1beta1 = exports.v1 = void 0; | ||
exports.protos = exports.AdaptationClient = exports.SpeechClient = exports.v2 = exports.v1p1beta1 = exports.v1 = void 0; | ||
const helpers_1 = require("./helpers"); | ||
@@ -23,2 +23,4 @@ const v1p1beta1 = require("./v1p1beta1"); | ||
exports.v1 = v1; | ||
const v2 = require("./v2"); | ||
exports.v2 = v2; | ||
// The following code is adapted from http://www.typescriptlang.org/docs/handbook/mixins.html | ||
@@ -28,2 +30,3 @@ // tslint:disable-next-line no-any | ||
Object.defineProperty(v1p1beta1.SpeechClient.prototype, 'streamingRecognize', Object.getOwnPropertyDescriptor(helpers_1.ImprovedStreamingClient.prototype, 'streamingRecognize')); | ||
Object.defineProperty(v2.SpeechClient.prototype, 'streamingRecognize', Object.getOwnPropertyDescriptor(helpers_1.ImprovedStreamingClient.prototype, 'streamingRecognize')); | ||
const SpeechClient = v1.SpeechClient; | ||
@@ -35,5 +38,5 @@ exports.SpeechClient = SpeechClient; | ||
// tslint:disable-next-line no-default-export | ||
exports.default = { v1, v1p1beta1, SpeechClient, AdaptationClient }; | ||
exports.default = { v1, v1p1beta1, v2, SpeechClient, AdaptationClient }; | ||
const protos = require("../protos/protos"); | ||
exports.protos = protos; | ||
//# sourceMappingURL=index.js.map |
@@ -7,2 +7,12 @@ # Changelog | ||
## [5.1.0](https://github.com/googleapis/nodejs-speech/compare/v5.0.3...v5.1.0) (2022-09-30) | ||
### Features | ||
* Speech v2 API ([#967](https://github.com/googleapis/nodejs-speech/issues/967)) ([a3989b0](https://github.com/googleapis/nodejs-speech/commit/a3989b0a88784d4418510e232919539427f17409)) | ||
**Note:** the v2 API is not enabled yet, it will be enabled within a few weeks. The v1 version is still the default at this moment. | ||
We'll switch the default to v2 in the next major release of the library. | ||
## [5.0.3](https://github.com/googleapis/nodejs-speech/compare/v5.0.2...v5.0.3) (2022-09-22) | ||
@@ -9,0 +19,0 @@ |
{ | ||
"name": "@google-cloud/speech", | ||
"description": "Cloud Speech Client Library for Node.js", | ||
"version": "5.0.3", | ||
"version": "5.1.0", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "author": "Google Inc.", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5545207
49
84473