https://github.com/luismr/talkalot-apps-api
https://github.com/luismr/talkalot-apps-api
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/luismr/talkalot-apps-api
- Owner: luismr
- Created: 2015-06-14T12:32:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-16T19:07:54.000Z (about 9 years ago)
- Last Synced: 2023-03-22T23:26:18.946Z (almost 3 years ago)
- Language: PHP
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# talkalot-apps-api
## tts-engine-agi
### Requirements
These packages are **mandatory**.
* PHP 5.3 or newer
* PHP-CURL
* SOX
* SOX-MP3
If you don't have these packages installed, please google it according to your operating system.
### Instalation
Clone this repository
```
$ cd ~/
$ git clone https://github.com/luismr/talkalot-apps-api.git
$ cd talkalot-apps-api
```
Then create a symbolic link in you **Asterisk AGI** directory pointing to your cloned copy, for example in Ubuntu do
```
$ cd /usr/share/asterisk/agi-bin
$ sudo ln -s ~/talkalot-apps-api/tts-engine-agi/say.php .
$ ls -l say.php
```
### Configuration
Please edit **say.php** and inform provided credentials as bellow
```php
#!/usr/bin/php -q
/*
* Configuration Settings
*/
$licence = "YORLICENCEHERE";
$key = "YOURLICENSEKEYHERE";
/*
* Do not edit after this
*/
if (!defined('__ROOT__')) {
```
### Usage
LigFlat Talkalot TTS Engine API is very simple to be used as an Asterisk AGI script.
In your extensions.conf
```
exten 123,1,NoOp(LigFlat Talkalot TTS Engine Example)
exten 123,n,Wait(3)
exten 123,n,Answer()
exten 123,n,agi(say.php,,,,[forcePost])
exten 123,n,Wait(1)
exten 123,n,Hangup()
```
Where:
- language (**mandatory**) - language of voice to synthesize
- **en-US** - English (United States)
- **es-ES** - Spanish (Spain)
- **pt-BR** - Portuguese (Brazil)
- gender (**mandatory**) - gender of voice to synthesize
- **male**
- **female**
- text (**mandatory**) - text to synthesize
- forcePost (*optional*) - for large texts we force post request with right encoding handling
- **true**
- **false**
### Where to buy
Please go to our Website to more information or ask in our contact form at http://www.ligflat.com.br