Módulo de integração com a API de Voz da Velip.
npm i velip
Cadastrar no painel da plataforma o IP da máquina que irá realizar as operações, pois essa é a forma da Velip identificar cada cliente.
const Velip = require('velip');
const credentials = { user: 'nomedeusuario', password: 'senha' };
const audio = new Velip.Audio(credentials);
const tts = audio.tts();
tts
.text('Olá Mundo!')
.save()
.then(res => {
console.log(res);
})
.catch(err => {
console.log(err);
});
const Velip = require('velip');
const credentials = { user: 'nomedeusuario', password: 'senha' };
const audio = new Velip.Audio(credentials);
const calling = new Velip.Calling();
calling.to(11966669999);
const tts = audio.tts();
tts
.text('Olá Mundo!')
.save()
.then(savedResponse => {
calling.call(savedResponse)
.then(calledResponse => console.log(calledResponse))
.catch(err => console.log(err));
})
.catch(err => console.log(err));
const Velip = require('velip');
const credentials = { user: 'climatempoconsultoria', password: 'climatempo' };
const audio = new Velip.Audio(credentials);
const tts = audio.tts();
tts.text('Olá Mundo!');
const calling = new Velip.Calling();
calling
.to(11966669999)
.audio(tts)
.call()
.then(callingResponse => console.log(callingResponse))
.catch(err => console.log(err));
const Velip = require('velip');
const calling = new Velip.Calling();
calling
.to(11966669999)
.audio('tf816746363')
.call()
.then(callingResponse => console.log(callingResponse))
.catch(err => console.log(err));