Skip to content

AsteriskProject/Speaker-recognition-Asterisk

Repository files navigation

Speaker-recognition-Asterisk Project Eurecom

Speaker recognition for Asterisk

Get Started

The python file called with EAGI use the File Descriptor to get the audio in realtime It also perform a simple Voice Activity Detection to detect start of the speech

Dependencies:

flac >= 1.2.1 libflac-dev >= 1.2.1
libsndfile >= 1.0.21
libsndfile-dev >= 1.0.21
audiolab >= 0.11.0

Install Debian dists:
apt-get install libflac-dev
apt-get install flac
apt-get install python-numpy
apt-get install python-scipy
apt-get install python-dev python-setuptools libsndfile-dev

Download and install audiolab from:
http:https://pypi.python.org/pypi/scikits.audiolab/

Directory needed in /res to launch the application .
├── ASV_resources
│   ├── Audio
│   ├── Models
│   ├── Params
│   │   ├── dctbases.mat
│   │   ├── filterbank.mat
│   │   └── params.mat
│   └── UBM
│   └── ubm.mat
├── enroll.elf
├── ID_Models
│   ├── 596
│   │   ├── mu.bin
│   │   ├── sigma.bin
│   │   └── w.bin
│   └── 668
│   ├── mu.bin
│   ├── sigma.bin
│   └── w.bin
└── test.elf

The speaker binary is not present in this repository.

In the directory where you have imported this project execute the following commands :

sudo make copy #Will copy the binary and will add execute right
sudo make dialplan #Will create the extensions calling our program
#Extra commands for rebooting and displaying logs from Asterisk
sudo make reboot
sudo make logs

Extensions for IVR 777 and 99 and users were done using FreePBx so included in this directory the output of these automatic generation in iax_additional.con and extensions_additional.conf

We used also Google text to speech in our voice message. You can configure it by running:

apt-get install perl libwww-perl sox mpg123
cd /var/lib/asterisk/agi-bin
wget https://raw.github.com/zaf/asterisk-googletts/master/googletts.agi
chmod +x googletts.agi

How to use it

Create an extension for a new account Call 777 and type 1 to register and 2 to login When you are logged in you can call the person you want to call by his extension number

Usefull Links

About

Speaker recognition for Asterisk

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published