Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save joaomosantos/ac385073840ed1dbb53ed1932fb38f40 to your computer and use it in GitHub Desktop.
Save joaomosantos/ac385073840ed1dbb53ed1932fb38f40 to your computer and use it in GitHub Desktop.
totalvoice
const totalvoice = require('totalvoice-node');
const client = new totalvoice("d02e833139b37a8f62bfeeb48b4d98a4");
const NUM1 = process.env.NUM1;
const NUM2 = process.env.NUM2;
var opcoes = {velocidade: 2, tipo_voz: "br-Vitoria"};
client.tts.enviar(NUM1, NUM2, opcoes)
.then((data) => console.log(data))
.catch((error) => console.log('Erro: ', error));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment