Socket
Socket
Sign inDemoInstall

@google-cloud/text-to-speech

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/text-to-speech - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

5

build/src/v1/text_to_speech_client.d.ts

@@ -57,4 +57,3 @@ import type * as gax from 'google-gax';

* Follows the structure of {@link gapicConfig}.
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
* For more information, please check the

@@ -67,3 +66,3 @@ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.

* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
* const client = new TextToSpeechClient({fallback: 'rest'}, gax);
* const client = new TextToSpeechClient({fallback: true}, gax);
* ```

@@ -70,0 +69,0 @@ */

7

build/src/v1/text_to_speech_client.js

@@ -63,4 +63,3 @@ "use strict";

* Follows the structure of {@link gapicConfig}.
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
* For more information, please check the

@@ -73,3 +72,3 @@ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.

* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
* const client = new TextToSpeechClient({fallback: 'rest'}, gax);
* const client = new TextToSpeechClient({fallback: true}, gax);
* ```

@@ -131,3 +130,3 @@ */

}
else if (opts.fallback === 'rest') {
else {
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);

@@ -134,0 +133,0 @@ }

@@ -55,4 +55,3 @@ import type * as gax from 'google-gax';

* Follows the structure of {@link gapicConfig}.
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
* For more information, please check the

@@ -65,3 +64,3 @@ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.

* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
* const client = new TextToSpeechLongAudioSynthesizeClient({fallback: 'rest'}, gax);
* const client = new TextToSpeechLongAudioSynthesizeClient({fallback: true}, gax);
* ```

@@ -68,0 +67,0 @@ */

@@ -63,4 +63,3 @@ "use strict";

* Follows the structure of {@link gapicConfig}.
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
* For more information, please check the

@@ -73,3 +72,3 @@ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.

* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
* const client = new TextToSpeechLongAudioSynthesizeClient({fallback: 'rest'}, gax);
* const client = new TextToSpeechLongAudioSynthesizeClient({fallback: true}, gax);
* ```

@@ -132,3 +131,3 @@ */

}
else if (opts.fallback === 'rest') {
else {
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);

@@ -149,3 +148,3 @@ }

};
if (opts.fallback === 'rest') {
if (opts.fallback) {
lroOptions.protoJson = protoFilesRoot;

@@ -152,0 +151,0 @@ lroOptions.httpRules = [];

@@ -57,4 +57,3 @@ import type * as gax from 'google-gax';

* Follows the structure of {@link gapicConfig}.
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
* For more information, please check the

@@ -67,3 +66,3 @@ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.

* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
* const client = new TextToSpeechClient({fallback: 'rest'}, gax);
* const client = new TextToSpeechClient({fallback: true}, gax);
* ```

@@ -70,0 +69,0 @@ */

@@ -63,4 +63,3 @@ "use strict";

* Follows the structure of {@link gapicConfig}.
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
* For more information, please check the

@@ -73,3 +72,3 @@ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.

* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
* const client = new TextToSpeechClient({fallback: 'rest'}, gax);
* const client = new TextToSpeechClient({fallback: true}, gax);
* ```

@@ -131,3 +130,3 @@ */

}
else if (opts.fallback === 'rest') {
else {
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);

@@ -134,0 +133,0 @@ }

@@ -55,4 +55,3 @@ import type * as gax from 'google-gax';

* Follows the structure of {@link gapicConfig}.
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
* For more information, please check the

@@ -65,3 +64,3 @@ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.

* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
* const client = new TextToSpeechLongAudioSynthesizeClient({fallback: 'rest'}, gax);
* const client = new TextToSpeechLongAudioSynthesizeClient({fallback: true}, gax);
* ```

@@ -68,0 +67,0 @@ */

@@ -63,4 +63,3 @@ "use strict";

* Follows the structure of {@link gapicConfig}.
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
* For more information, please check the

@@ -73,3 +72,3 @@ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.

* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
* const client = new TextToSpeechLongAudioSynthesizeClient({fallback: 'rest'}, gax);
* const client = new TextToSpeechLongAudioSynthesizeClient({fallback: true}, gax);
* ```

@@ -132,3 +131,3 @@ */

}
else if (opts.fallback === 'rest') {
else {
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);

@@ -149,3 +148,3 @@ }

};
if (opts.fallback === 'rest') {
if (opts.fallback) {
lroOptions.protoJson = protoFilesRoot;

@@ -152,0 +151,0 @@ lroOptions.httpRules = [];

@@ -7,2 +7,9 @@ # Changelog

## [5.0.1](https://github.com/googleapis/google-cloud-node/compare/text-to-speech-v5.0.0...text-to-speech-v5.0.1) (2023-09-06)
### Bug Fixes
* [Many APIs] simplify logic for HTTP/1.1 REST fallback option ([#4588](https://github.com/googleapis/google-cloud-node/issues/4588)) ([e5ad564](https://github.com/googleapis/google-cloud-node/commit/e5ad564f74dc7a36c0e8cd8de173428a99f1deae))
## [5.0.0](https://github.com/googleapis/google-cloud-node/compare/text-to-speech-v4.2.3...text-to-speech-v5.0.0) (2023-08-06)

@@ -9,0 +16,0 @@

{
"name": "@google-cloud/text-to-speech",
"description": "Cloud Text-to-Speech API client for Node.js",
"version": "5.0.0",
"version": "5.0.1",
"license": "Apache-2.0",

@@ -62,4 +62,4 @@ "author": "Google LLC",

"jsdoc": "^4.0.0",
"jsdoc-fresh": "^2.0.0",
"jsdoc-region-tag": "^2.0.0",
"jsdoc-fresh": "^3.0.0",
"jsdoc-region-tag": "^3.0.0",
"linkinator": "4.1.2",

@@ -66,0 +66,0 @@ "long": "^5.2.3",

@@ -115,3 +115,3 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost."

Our client libraries follow the [Node.js release schedule](https://nodejs.org/en/about/releases/).
Our client libraries follow the [Node.js release schedule](https://github.com/nodejs/release#release-schedule).
Libraries are compatible with all current _active_ and _maintenance_ versions of

@@ -118,0 +118,0 @@ Node.js.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc