@@ -19,7 +19,7 @@ function listVoices (langs, gender) {
19
19
console . log ( `Listing available voices for synthesis.` ) ;
20
20
const TTS = require ( `texttospeech` ) ;
21
21
const tts = TTS (
22
- { servicePath : 'staging- texttospeech.sandbox .googleapis.com' } ) ;
22
+ { servicePath : 'texttospeech.googleapis.com' } ) ;
23
23
24
24
let filter = { } ;
25
25
@@ -50,7 +50,7 @@ function synthesizeSsml (ssml) {
50
50
const fs = require ( 'fs' ) ;
51
51
const TTS = require ( `texttospeech` ) ;
52
52
const tts = TTS (
53
- { servicePath : 'staging- texttospeech.sandbox .googleapis.com' } ) ;
53
+ { servicePath : 'texttospeech.googleapis.com' } ) ;
54
54
const input = { ssml : ssml } ;
55
55
const audioConfig = {
56
56
audioEncoding : TTS . types . AudioEncoding . values . MP3
@@ -85,7 +85,7 @@ function synthesizeText (text) {
85
85
const fs = require ( 'fs' ) ;
86
86
const TTS = require ( `texttospeech` ) ;
87
87
const tts = TTS (
88
- { servicePath : 'staging- texttospeech.sandbox .googleapis.com' } ) ;
88
+ { servicePath : 'texttospeech.googleapis.com' } ) ;
89
89
const input = { text : text } ;
90
90
const audioConfig = {
91
91
audioEncoding : TTS . types . AudioEncoding . values . MP3
@@ -126,7 +126,7 @@ function synthesizeFile (filepath) {
126
126
return ;
127
127
}
128
128
const tts = TTS (
129
- { servicePath : 'staging- texttospeech.sandbox .googleapis.com' } ) ;
129
+ { servicePath : 'texttospeech.googleapis.com' } ) ;
130
130
const input = { text : text } ;
131
131
const audioConfig = {
132
132
audioEncoding : TTS . types . AudioEncoding . values . MP3
@@ -168,7 +168,7 @@ function synthesizeSsmlFile (filepath) {
168
168
console . log ( `Error: ${ err } ` ) ;
169
169
} else {
170
170
const tts = TTS (
171
- { servicePath : 'staging- texttospeech.sandbox .googleapis.com' } ) ;
171
+ { servicePath : 'texttospeech.googleapis.com' } ) ;
172
172
const input = { ssml : ssml } ;
173
173
const audioConfig = {
174
174
audioEncoding : TTS . types . AudioEncoding . values . MP3
0 commit comments