Skip to content
Merged
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
11 changes: 6 additions & 5 deletions packages/google-cloud-texttospeech/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "Apache-2.0",
"author": "Google LLC",
"engines": {
"node": ">=12.0.0"
"node": ">=14.0.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -48,15 +48,16 @@
"test": "c8 mocha build/test"
},
"dependencies": {
"google-gax": "^3.5.8"
"google-gax": "^4.0.3"
},
"devDependencies": {
"@types/mocha": "^9.0.0",
"@types/node": "^18.0.0",
"@types/node": "^20.4.5",
"@types/sinon": "^10.0.0",
"c8": "^7.0.0",
"codecov": "^3.0.0",
"gts": "^3.1.0",
"gapic-tools": "^0.1.8",
"gts": "^5.0.0",
"jsdoc": "^4.0.0",
"jsdoc-fresh": "^2.0.0",
"jsdoc-region-tag": "^2.0.0",
Expand All @@ -67,7 +68,7 @@
"pack-n-play": "^1.0.0-2",
"sinon": "^15.0.0",
"ts-loader": "^9.0.0",
"typescript": "^4.6.4",
"typescript": "^5.1.6",
"webpack": "^5.0.0",
"webpack-cli": "^5.0.0"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
{
"clientLibrary": {
"name": "nodejs-texttospeech",
"version": "4.2.3",
"language": "TYPESCRIPT",
"apis": [
{
"id": "google.cloud.texttospeech.v1",
"version": "v1"
}
]
},
"snippets": [
{
"regionTag": "texttospeech_v1_generated_TextToSpeech_ListVoices_async",
"title": "TextToSpeech listVoices Sample",
"origin": "API_DEFINITION",
"description": " Returns a list of Voice supported for synthesis.",
"canonical": true,
"file": "text_to_speech.list_voices.js",
"language": "JAVASCRIPT",
"segments": [
{
"start": 25,
"end": 59,
"type": "FULL"
}
],
"clientMethod": {
"shortName": "ListVoices",
"fullName": "google.cloud.texttospeech.v1.TextToSpeech.ListVoices",
"async": true,
"parameters": [
{
"name": "language_code",
"type": "TYPE_STRING"
}
],
"resultType": ".google.cloud.texttospeech.v1.ListVoicesResponse",
"client": {
"shortName": "TextToSpeechClient",
"fullName": "google.cloud.texttospeech.v1.TextToSpeechClient"
},
"method": {
"shortName": "ListVoices",
"fullName": "google.cloud.texttospeech.v1.TextToSpeech.ListVoices",
"service": {
"shortName": "TextToSpeech",
"fullName": "google.cloud.texttospeech.v1.TextToSpeech"
}
}
}
},
{
"regionTag": "texttospeech_v1_generated_TextToSpeech_SynthesizeSpeech_async",
"title": "TextToSpeech synthesizeSpeech Sample",
"origin": "API_DEFINITION",
"description": " Synthesizes speech synchronously: receive results after all text input has been processed.",
"canonical": true,
"file": "text_to_speech.synthesize_speech.js",
"language": "JAVASCRIPT",
"segments": [
{
"start": 25,
"end": 63,
"type": "FULL"
}
],
"clientMethod": {
"shortName": "SynthesizeSpeech",
"fullName": "google.cloud.texttospeech.v1.TextToSpeech.SynthesizeSpeech",
"async": true,
"parameters": [
{
"name": "input",
"type": ".google.cloud.texttospeech.v1.SynthesisInput"
},
{
"name": "voice",
"type": ".google.cloud.texttospeech.v1.VoiceSelectionParams"
},
{
"name": "audio_config",
"type": ".google.cloud.texttospeech.v1.AudioConfig"
}
],
"resultType": ".google.cloud.texttospeech.v1.SynthesizeSpeechResponse",
"client": {
"shortName": "TextToSpeechClient",
"fullName": "google.cloud.texttospeech.v1.TextToSpeechClient"
},
"method": {
"shortName": "SynthesizeSpeech",
"fullName": "google.cloud.texttospeech.v1.TextToSpeech.SynthesizeSpeech",
"service": {
"shortName": "TextToSpeech",
"fullName": "google.cloud.texttospeech.v1.TextToSpeech"
}
}
}
},
{
"regionTag": "texttospeech_v1_generated_TextToSpeechLongAudioSynthesize_SynthesizeLongAudio_async",
"title": "TextToSpeech synthesizeLongAudio Sample",
"origin": "API_DEFINITION",
"description": " Synthesizes long form text asynchronously.",
"canonical": true,
"file": "text_to_speech_long_audio_synthesize.synthesize_long_audio.js",
"language": "JAVASCRIPT",
"segments": [
{
"start": 25,
"end": 77,
"type": "FULL"
}
],
"clientMethod": {
"shortName": "SynthesizeLongAudio",
"fullName": "google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesize.SynthesizeLongAudio",
"async": true,
"parameters": [
{
"name": "parent",
"type": "TYPE_STRING"
},
{
"name": "input",
"type": ".google.cloud.texttospeech.v1.SynthesisInput"
},
{
"name": "audio_config",
"type": ".google.cloud.texttospeech.v1.AudioConfig"
},
{
"name": "output_gcs_uri",
"type": "TYPE_STRING"
},
{
"name": "voice",
"type": ".google.cloud.texttospeech.v1.VoiceSelectionParams"
}
],
"resultType": ".google.longrunning.Operation",
"client": {
"shortName": "TextToSpeechLongAudioSynthesizeClient",
"fullName": "google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesizeClient"
},
"method": {
"shortName": "SynthesizeLongAudio",
"fullName": "google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesize.SynthesizeLongAudio",
"service": {
"shortName": "TextToSpeechLongAudioSynthesize",
"fullName": "google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesize"
}
}
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
{
"clientLibrary": {
"name": "nodejs-texttospeech",
"version": "4.2.3",
"language": "TYPESCRIPT",
"apis": [
{
"id": "google.cloud.texttospeech.v1beta1",
"version": "v1beta1"
}
]
},
"snippets": [
{
"regionTag": "texttospeech_v1beta1_generated_TextToSpeech_ListVoices_async",
"title": "TextToSpeech listVoices Sample",
"origin": "API_DEFINITION",
"description": " Returns a list of Voice supported for synthesis.",
"canonical": true,
"file": "text_to_speech.list_voices.js",
"language": "JAVASCRIPT",
"segments": [
{
"start": 25,
"end": 59,
"type": "FULL"
}
],
"clientMethod": {
"shortName": "ListVoices",
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeech.ListVoices",
"async": true,
"parameters": [
{
"name": "language_code",
"type": "TYPE_STRING"
}
],
"resultType": ".google.cloud.texttospeech.v1beta1.ListVoicesResponse",
"client": {
"shortName": "TextToSpeechClient",
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeechClient"
},
"method": {
"shortName": "ListVoices",
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeech.ListVoices",
"service": {
"shortName": "TextToSpeech",
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeech"
}
}
}
},
{
"regionTag": "texttospeech_v1beta1_generated_TextToSpeech_SynthesizeSpeech_async",
"title": "TextToSpeech synthesizeSpeech Sample",
"origin": "API_DEFINITION",
"description": " Synthesizes speech synchronously: receive results after all text input has been processed.",
"canonical": true,
"file": "text_to_speech.synthesize_speech.js",
"language": "JAVASCRIPT",
"segments": [
{
"start": 25,
"end": 67,
"type": "FULL"
}
],
"clientMethod": {
"shortName": "SynthesizeSpeech",
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeech.SynthesizeSpeech",
"async": true,
"parameters": [
{
"name": "input",
"type": ".google.cloud.texttospeech.v1beta1.SynthesisInput"
},
{
"name": "voice",
"type": ".google.cloud.texttospeech.v1beta1.VoiceSelectionParams"
},
{
"name": "audio_config",
"type": ".google.cloud.texttospeech.v1beta1.AudioConfig"
},
{
"name": "enable_time_pointing",
"type": "TYPE_ENUM[]"
}
],
"resultType": ".google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse",
"client": {
"shortName": "TextToSpeechClient",
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeechClient"
},
"method": {
"shortName": "SynthesizeSpeech",
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeech.SynthesizeSpeech",
"service": {
"shortName": "TextToSpeech",
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeech"
}
}
}
},
{
"regionTag": "texttospeech_v1beta1_generated_TextToSpeechLongAudioSynthesize_SynthesizeLongAudio_async",
"title": "TextToSpeech synthesizeLongAudio Sample",
"origin": "API_DEFINITION",
"description": " Synthesizes long form text asynchronously.",
"canonical": true,
"file": "text_to_speech_long_audio_synthesize.synthesize_long_audio.js",
"language": "JAVASCRIPT",
"segments": [
{
"start": 25,
"end": 77,
"type": "FULL"
}
],
"clientMethod": {
"shortName": "SynthesizeLongAudio",
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesize.SynthesizeLongAudio",
"async": true,
"parameters": [
{
"name": "parent",
"type": "TYPE_STRING"
},
{
"name": "input",
"type": ".google.cloud.texttospeech.v1beta1.SynthesisInput"
},
{
"name": "audio_config",
"type": ".google.cloud.texttospeech.v1beta1.AudioConfig"
},
{
"name": "output_gcs_uri",
"type": "TYPE_STRING"
},
{
"name": "voice",
"type": ".google.cloud.texttospeech.v1beta1.VoiceSelectionParams"
}
],
"resultType": ".google.longrunning.Operation",
"client": {
"shortName": "TextToSpeechLongAudioSynthesizeClient",
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesizeClient"
},
"method": {
"shortName": "SynthesizeLongAudio",
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesize.SynthesizeLongAudio",
"service": {
"shortName": "TextToSpeechLongAudioSynthesize",
"fullName": "google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesize"
}
}
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function main(input, voice, audioConfig) {
/**
* Whether and what timepoints are returned in the response.
*/
// const enableTimePointing = 1234
// const enableTimePointing = [1,2,3,4]

// Imports the Texttospeech library
const {TextToSpeechClient} = require('@google-cloud/text-to-speech').v1beta1;
Expand Down
4 changes: 2 additions & 2 deletions packages/google-cloud-texttospeech/samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"*.js"
],
"engines": {
"node": ">=12.0.0"
"node": ">=14.0.0"
},
"scripts": {
"test": "mocha --timeout=60000"
Expand All @@ -21,4 +21,4 @@
"chai": "^4.2.0",
"mocha": "^8.0.0"
}
}
}
Loading