Skip to content

Commit 6e63034

Browse files
gguussjmdobry
authored andcommitted
New API endpoint
Change-Id: Ib83b840c490117d3019c5a6d7a64325f909322f8
1 parent 8d3c0dd commit 6e63034

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tts/sample/speak.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function listVoices (langs, gender) {
1919
console.log(`Listing available voices for synthesis.`);
2020
const TTS = require(`texttospeech`);
2121
const tts = TTS(
22-
{ servicePath: 'staging-texttospeech.sandbox.googleapis.com' });
22+
{ servicePath: 'texttospeech.googleapis.com' });
2323

2424
let filter = {};
2525

@@ -50,7 +50,7 @@ function synthesizeSsml (ssml) {
5050
const fs = require('fs');
5151
const TTS = require(`texttospeech`);
5252
const tts = TTS(
53-
{ servicePath: 'staging-texttospeech.sandbox.googleapis.com' });
53+
{ servicePath: 'texttospeech.googleapis.com' });
5454
const input = {ssml: ssml};
5555
const audioConfig = {
5656
audioEncoding: TTS.types.AudioEncoding.values.MP3
@@ -85,7 +85,7 @@ function synthesizeText (text) {
8585
const fs = require('fs');
8686
const TTS = require(`texttospeech`);
8787
const tts = TTS(
88-
{ servicePath: 'staging-texttospeech.sandbox.googleapis.com' });
88+
{ servicePath: 'texttospeech.googleapis.com' });
8989
const input = {text: text};
9090
const audioConfig = {
9191
audioEncoding: TTS.types.AudioEncoding.values.MP3
@@ -126,7 +126,7 @@ function synthesizeFile (filepath) {
126126
return;
127127
}
128128
const tts = TTS(
129-
{ servicePath: 'staging-texttospeech.sandbox.googleapis.com' });
129+
{ servicePath: 'texttospeech.googleapis.com' });
130130
const input = {text: text};
131131
const audioConfig = {
132132
audioEncoding: TTS.types.AudioEncoding.values.MP3
@@ -168,7 +168,7 @@ function synthesizeSsmlFile (filepath) {
168168
console.log(`Error: ${err}`);
169169
} else {
170170
const tts = TTS(
171-
{ servicePath: 'staging-texttospeech.sandbox.googleapis.com' });
171+
{ servicePath: 'texttospeech.googleapis.com' });
172172
const input = {ssml: ssml};
173173
const audioConfig = {
174174
audioEncoding: TTS.types.AudioEncoding.values.MP3

0 commit comments

Comments
 (0)