GithubHelp home page GithubHelp logo

total-voice's Introduction

Total Voice

LGTM Grade


Instale o pacote pelo composer

composer require lucien-correia/total-voice

Rode vendor:publish e selecione o número corespondente

php artisan vendor:publish

Insira seu token de acesso em config.totalvoice.token

<?php
  
  return [
    'token' => env('TOTAL_VOICE_TOKEN', 'TOKEN')
  ];
  

Ou no arquivo .env

TOTAL_VOICE_TOKEN=TOKEN

SMS : Envio de mensagens de texto via SMS

use TotalVoice\Channels\Sms\Sender;

$sender = new Sender();

$sender->phone('(99) 99999-9999')
  ->message('mensagem de texto')
  ->send();

Audio : Envio de mensagens de voz (audio) / Torpedos de voz

Enviando um audio

use TotalVoice\Channels\Audio\Sender;

$sender = new Sender();

$sender->phone('(99) 99999-9999', 'caller')
  ->phone('(99) 99999-9999', 'receiver')
  ->audio('http://minhaurlcomaudio.com')
  ->tags('clientX') // Opcional
  ->recordAudio(false) // Opcional
  ->send();

Composto : Envio de chamada de voz (torpedo de voz) composta com TTS e Audio

Enviando um audio

use TotalVoice\Channels\Composto\Sender;

$sender = new Sender();

$sender->phone('(99) 99999-9999', 'caller')
  ->phone('(99) 99999-9999', 'receiver')
  ->audio('http://minhaurlcomaudio.com')
  ->recordAudio(false) // Opcional
  ->send();

Enviando um TTS

use TotalVoice\Channels\Composto\Sender;

$sender = new Sender();

$sender->phone('(99) 99999-9999', 'caller')
  ->phone('(99) 99999-9999', 'receiver')
  ->tts('meu texto a ser lido', 'false', '-4', 'br-Ricardo') 
  ->tags('clientX') // Opcional
  ->recordAudio(false) // Opcional
  ->send();

Enviando uma transferêcia

use TotalVoice\Channels\Composto\Sender;

$sender = new Sender();

$sender->phone('(99) 99999-9999', 'caller')
  ->phone('(99) 99999-9999', 'receiver')
  ->transfer('(99) 99999-9999', '(99) 99999-9999', 1) 
  ->tags('clientX') // Opcional
  ->recordAudio(false) // Opcional
  ->send();

Contato

Lucien Correia [email protected]

Marcus Campos [email protected]

total-voice's People

Watchers

 avatar  avatar  avatar

Forkers

marcus-campos

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.