Created
March 31, 2020 19:07
-
-
Save joaomosantos/ac385073840ed1dbb53ed1932fb38f40 to your computer and use it in GitHub Desktop.
totalvoice
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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