Socket
Socket
Sign inDemoInstall

@google-cloud/text-to-speech

Package Overview
Dependencies
Maintainers
4
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 0.4.0 to 0.5.0

29

CHANGELOG.md

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

## v0.5.0
02-05-2019 13:22 PST
### New Features
- feat: add the effects_profile_id property. ([#173](https://github.com/googleapis/nodejs-text-to-speech/pull/173))
### Dependencies
- fix(deps): update dependency google-gax to ^0.25.0 ([#178](https://github.com/googleapis/nodejs-text-to-speech/pull/178))
- chore(deps): update dependency eslint-config-prettier to v4 ([#176](https://github.com/googleapis/nodejs-text-to-speech/pull/176))
- fix(deps): update dependency google-gax to ^0.24.0 ([#175](https://github.com/googleapis/nodejs-text-to-speech/pull/175))
- fix(deps): update dependency google-gax to ^0.23.0 ([#170](https://github.com/googleapis/nodejs-text-to-speech/pull/170))
### Documentation
- build: ignore googleapis.com in doc link check ([#174](https://github.com/googleapis/nodejs-text-to-speech/pull/174))
- docs: fix dead link to audio profiles ([#177](https://github.com/googleapis/nodejs-text-to-speech/pull/177))
- fix(docs): fix require stmt ([#166](https://github.com/googleapis/nodejs-text-to-speech/pull/166))
- build: check broken links in generated docs ([#165](https://github.com/googleapis/nodejs-text-to-speech/pull/165))
### Internal / Testing Changes
- test: add a smoke test ([#172](https://github.com/googleapis/nodejs-text-to-speech/pull/172))
- refactor: modernize the sample tests ([#164](https://github.com/googleapis/nodejs-text-to-speech/pull/164))
- chore(build): inject yoshi automation key ([#161](https://github.com/googleapis/nodejs-text-to-speech/pull/161))
- chore: update nyc and eslint configs ([#160](https://github.com/googleapis/nodejs-text-to-speech/pull/160))
- chore: fix publish.sh permission +x ([#158](https://github.com/googleapis/nodejs-text-to-speech/pull/158))
- fix(build): fix Kokoro release script ([#157](https://github.com/googleapis/nodejs-text-to-speech/pull/157))
- build: add Kokoro configs for autorelease ([#156](https://github.com/googleapis/nodejs-text-to-speech/pull/156))
- chore: always nyc report before calling codecov ([#152](https://github.com/googleapis/nodejs-text-to-speech/pull/152))
## v0.4.0

@@ -9,0 +38,0 @@

8

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

@@ -43,3 +43,3 @@ "author": "Google LLC",

"dependencies": {
"google-gax": "^0.22.0",
"google-gax": "^0.25.0",
"lodash.merge": "^4.6.0"

@@ -51,6 +51,6 @@ },

"eslint": "^5.0.0",
"eslint-config-prettier": "^3.0.0",
"eslint-config-prettier": "^4.0.0",
"eslint-plugin-node": "^8.0.0",
"eslint-plugin-prettier": "^3.0.0",
"ink-docstrap": "^1.3.2",
"jsdoc-baseline": "git+https://github.com/hegemonic/jsdoc-baseline.git",
"intelli-espower-loader": "^1.0.1",

@@ -57,0 +57,0 @@ "jsdoc": "^3.5.5",

@@ -46,10 +46,10 @@ // Copyright 2018 Google LLC

*
* @module {object} text-to-speech
* @module {object} @google-cloud/text-to-speech
* @alias nodejs-text-to-speech
*
* @example <caption>Install the client library with <a href="https://www.npmjs.com/">npm</a>:</caption>
* npm install --save text-to-speech
* npm install --save @google-cloud/text-to-speech
*
* @example <caption>Import the client library:</caption>
* const text-to-speech = require('text-to-speech');
* const text-to-speech = require('@google-cloud/text-to-speech');
*

@@ -56,0 +56,0 @@ * @example <caption>Create a client that uses <a href="https://goo.gl/64dyYX">Application Default Credentials (ADC)</a>:</caption>

@@ -1,2 +0,2 @@

// Copyright 2018 Google LLC
// Copyright 2019 Google LLC
//

@@ -205,2 +205,11 @@ // Licensed under the Apache License, Version 2.0 (the "License");

*
* @property {string[]} effectsProfileId
* An identifier which selects 'audio effects' profiles that are applied on
* (post synthesized) text to speech.
* Effects are applied on top of each other in the order they are given.
* See
*
* [audio-profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles)
* for current supported profile ids.
*
* @typedef AudioConfig

@@ -232,4 +241,4 @@ * @memberof google.cloud.texttospeech.v1

/**
* Gender of the voice as described in
* [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
* Configuration to set up audio encoder. The encoding determines the output
* audio format that we'd like.
*

@@ -239,32 +248,32 @@ * @enum {number}

*/
const SsmlVoiceGender = {
const AudioEncoding = {
/**
* An unspecified gender.
* In VoiceSelectionParams, this means that the client doesn't care which
* gender the selected voice will have. In the Voice field of
* ListVoicesResponse, this may mean that the voice doesn't fit any of the
* other categories in this enum, or that the gender of the voice isn't known.
* Not specified. Will return result google.rpc.Code.INVALID_ARGUMENT.
*/
SSML_VOICE_GENDER_UNSPECIFIED: 0,
AUDIO_ENCODING_UNSPECIFIED: 0,
/**
* A male voice.
* Uncompressed 16-bit signed little-endian samples (Linear PCM).
* Audio content returned as LINEAR16 also contains a WAV header.
*/
MALE: 1,
LINEAR16: 1,
/**
* A female voice.
* MP3 audio.
*/
FEMALE: 2,
MP3: 2,
/**
* A gender-neutral voice.
* Opus encoded audio wrapped in an ogg container. The result will be a
* file which can be played natively on Android, and in browsers (at least
* Chrome and Firefox). The quality of the encoding is considerably higher
* than MP3 while using approximately the same bitrate.
*/
NEUTRAL: 3
OGG_OPUS: 3
};
/**
* Configuration to set up audio encoder. The encoding determines the output
* audio format that we'd like.
* Gender of the voice as described in
* [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
*

@@ -274,27 +283,27 @@ * @enum {number}

*/
const AudioEncoding = {
const SsmlVoiceGender = {
/**
* Not specified. Will return result google.rpc.Code.INVALID_ARGUMENT.
* An unspecified gender.
* In VoiceSelectionParams, this means that the client doesn't care which
* gender the selected voice will have. In the Voice field of
* ListVoicesResponse, this may mean that the voice doesn't fit any of the
* other categories in this enum, or that the gender of the voice isn't known.
*/
AUDIO_ENCODING_UNSPECIFIED: 0,
SSML_VOICE_GENDER_UNSPECIFIED: 0,
/**
* Uncompressed 16-bit signed little-endian samples (Linear PCM).
* Audio content returned as LINEAR16 also contains a WAV header.
* A male voice.
*/
LINEAR16: 1,
MALE: 1,
/**
* MP3 audio.
* A female voice.
*/
MP3: 2,
FEMALE: 2,
/**
* Opus encoded audio wrapped in an ogg container. The result will be a
* file which can be played natively on Android, and in browsers (at least
* Chrome and Firefox). The quality of the encoding is considerably higher
* than MP3 while using approximately the same bitrate.
* A gender-neutral voice.
*/
OGG_OPUS: 3
NEUTRAL: 3
};

@@ -1,2 +0,2 @@

// Copyright 2018 Google LLC
// Copyright 2019 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2018 Google LLC
// Copyright 2019 Google LLC
//

@@ -173,4 +173,3 @@ // Licensed under the Apache License, Version 2.0 (the "License");

/**
* Returns a list of Voice
* supported for synthesis.
* Returns a list of Voice supported for synthesis.
*

@@ -201,3 +200,3 @@ * @param {Object} request

*
* const textToSpeech = require('text-to-speech.v1');
* const textToSpeech = require('@google-cloud/text-to-speech');
*

@@ -259,3 +258,3 @@ * const client = new textToSpeech.v1.TextToSpeechClient({

*
* const textToSpeech = require('text-to-speech.v1');
* const textToSpeech = require('@google-cloud/text-to-speech');
*

@@ -262,0 +261,0 @@ * const client = new textToSpeech.v1.TextToSpeechClient({

@@ -1,2 +0,2 @@

// Copyright 2018 Google LLC
// Copyright 2019 Google LLC
//

@@ -236,4 +236,4 @@ // Licensed under the Apache License, Version 2.0 (the "License");

/**
* Gender of the voice as described in
* [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
* Configuration to set up audio encoder. The encoding determines the output
* audio format that we'd like.
*

@@ -243,32 +243,32 @@ * @enum {number}

*/
const SsmlVoiceGender = {
const AudioEncoding = {
/**
* An unspecified gender.
* In VoiceSelectionParams, this means that the client doesn't care which
* gender the selected voice will have. In the Voice field of
* ListVoicesResponse, this may mean that the voice doesn't fit any of the
* other categories in this enum, or that the gender of the voice isn't known.
* Not specified. Will return result google.rpc.Code.INVALID_ARGUMENT.
*/
SSML_VOICE_GENDER_UNSPECIFIED: 0,
AUDIO_ENCODING_UNSPECIFIED: 0,
/**
* A male voice.
* Uncompressed 16-bit signed little-endian samples (Linear PCM).
* Audio content returned as LINEAR16 also contains a WAV header.
*/
MALE: 1,
LINEAR16: 1,
/**
* A female voice.
* MP3 audio.
*/
FEMALE: 2,
MP3: 2,
/**
* A gender-neutral voice.
* Opus encoded audio wrapped in an ogg container. The result will be a
* file which can be played natively on Android, and in browsers (at least
* Chrome and Firefox). The quality of the encoding is considerably higher
* than MP3 while using approximately the same bitrate.
*/
NEUTRAL: 3
OGG_OPUS: 3
};
/**
* Configuration to set up audio encoder. The encoding determines the output
* audio format that we'd like.
* Gender of the voice as described in
* [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
*

@@ -278,27 +278,27 @@ * @enum {number}

*/
const AudioEncoding = {
const SsmlVoiceGender = {
/**
* Not specified. Will return result google.rpc.Code.INVALID_ARGUMENT.
* An unspecified gender.
* In VoiceSelectionParams, this means that the client doesn't care which
* gender the selected voice will have. In the Voice field of
* ListVoicesResponse, this may mean that the voice doesn't fit any of the
* other categories in this enum, or that the gender of the voice isn't known.
*/
AUDIO_ENCODING_UNSPECIFIED: 0,
SSML_VOICE_GENDER_UNSPECIFIED: 0,
/**
* Uncompressed 16-bit signed little-endian samples (Linear PCM).
* Audio content returned as LINEAR16 also contains a WAV header.
* A male voice.
*/
LINEAR16: 1,
MALE: 1,
/**
* MP3 audio.
* A female voice.
*/
MP3: 2,
FEMALE: 2,
/**
* Opus encoded audio wrapped in an ogg container. The result will be a
* file which can be played natively on Android, and in browsers (at least
* Chrome and Firefox). The quality of the encoding is considerably higher
* than MP3 while using approximately the same bitrate.
* A gender-neutral voice.
*/
OGG_OPUS: 3
NEUTRAL: 3
};

@@ -1,2 +0,2 @@

// Copyright 2018 Google LLC
// Copyright 2019 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2018 Google LLC
// Copyright 2019 Google LLC
//

@@ -200,3 +200,3 @@ // Licensed under the Apache License, Version 2.0 (the "License");

*
* const textToSpeech = require('text-to-speech.v1beta1');
* const textToSpeech = require('@google-cloud/text-to-speech');
*

@@ -258,3 +258,3 @@ * const client = new textToSpeech.v1beta1.TextToSpeechClient({

*
* const textToSpeech = require('text-to-speech.v1beta1');
* const textToSpeech = require('@google-cloud/text-to-speech');
*

@@ -261,0 +261,0 @@ * const client = new textToSpeech.v1beta1.TextToSpeechClient({

Sorry, the diff of this file is not supported yet

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