Skip to content

Commit

Permalink
New API endpoint
Browse files Browse the repository at this point in the history
Change-Id: Ib83b840c490117d3019c5a6d7a64325f909322f8
  • Loading branch information
gguuss authored and jmdobry committed Oct 16, 2017
1 parent 8d3c0dd commit 6e63034
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tts/sample/speak.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function listVoices (langs, gender) {
console.log(`Listing available voices for synthesis.`);
const TTS = require(`texttospeech`);
const tts = TTS(
{ servicePath: 'staging-texttospeech.sandbox.googleapis.com' });
{ servicePath: 'texttospeech.googleapis.com' });

let filter = {};

Expand Down Expand Up @@ -50,7 +50,7 @@ function synthesizeSsml (ssml) {
const fs = require('fs');
const TTS = require(`texttospeech`);
const tts = TTS(
{ servicePath: 'staging-texttospeech.sandbox.googleapis.com' });
{ servicePath: 'texttospeech.googleapis.com' });
const input = {ssml: ssml};
const audioConfig = {
audioEncoding: TTS.types.AudioEncoding.values.MP3
Expand Down Expand Up @@ -85,7 +85,7 @@ function synthesizeText (text) {
const fs = require('fs');
const TTS = require(`texttospeech`);
const tts = TTS(
{ servicePath: 'staging-texttospeech.sandbox.googleapis.com' });
{ servicePath: 'texttospeech.googleapis.com' });
const input = {text: text};
const audioConfig = {
audioEncoding: TTS.types.AudioEncoding.values.MP3
Expand Down Expand Up @@ -126,7 +126,7 @@ function synthesizeFile (filepath) {
return;
}
const tts = TTS(
{ servicePath: 'staging-texttospeech.sandbox.googleapis.com' });
{ servicePath: 'texttospeech.googleapis.com' });
const input = {text: text};
const audioConfig = {
audioEncoding: TTS.types.AudioEncoding.values.MP3
Expand Down Expand Up @@ -168,7 +168,7 @@ function synthesizeSsmlFile (filepath) {
console.log(`Error: ${err}`);
} else {
const tts = TTS(
{ servicePath: 'staging-texttospeech.sandbox.googleapis.com' });
{ servicePath: 'texttospeech.googleapis.com' });
const input = {ssml: ssml};
const audioConfig = {
audioEncoding: TTS.types.AudioEncoding.values.MP3
Expand Down

0 comments on commit 6e63034

Please sign in to comment.