PHP Classes

Cognitive PHP Voice Recognition: Recognize voices in audio with Microsoft Azure API

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 179 All time: 8,727 This week: 104Up
Version License PHP version Categories
microsoft_azure_cogn 1.0.0The PHP License5PHP 5, Web services, Audio, Artificia...
Description 

Author

This package can recognize voices in audio with Microsoft Azure API.

It can send HTTP requests to the Web server of the Microsoft Azure Cognitive Services API to perform operations to help verifying people's voices in audio samples. Currently it can:

- Create an audio verification profile
- Send an audio sample to train the system to recognize the people in that are speaking
- Verify the person that is speaking in a audio sample
- Convert audio samples to the WAV format, so those can be used by the Microsoft Azure Speak Recognition system

Innovation Award
PHP Programming Innovation award nominee
June 2020
Number 5
Voice recognition is a modern way to help users to interact with computer based systems using their voices, thus avoiding the need to use keyboards or mouse devices.

This package can be used to recognize authorized user voices using Microsoft Azure API.

Manuel Lemos
Picture of uche
Name: uche <contact>
Classes: 9 packages by
Country: Nigeria Nigeria
Age: ???
All time rank: 279420 in Nigeria Nigeria
Week rank: 195 Up6 in Nigeria Nigeria Up
Innovation award
Innovation award
Nominee: 7x

Documentation

microsoft_azure_cognitive_php

A PHP Wrapper for Microsoft Azure Cognitive Services

  1. Run Composer install to install packages
  2. Copy .env.example to .env and set the appropriate values. - For speaker verification, you can get the SPEECH_KEY and SPEECH BASE_URL from your Microsoft Azure acccount.

Speaker Verification

  1. Install FFMPEG To allow you convert audio files to wav format. For ubuntu, sudo apt install ffmpeg. See https://ffmpeg.org/
  2. Initiate a Speech object - $speaker = new Speech()
  3. Create Verification Profile - $speaker->createVerificationProfile()
  4. Enrol a Verification Profile - $speaker->enrolVerificationProfile($audio, $verification_id) - $audio is the audio file in wav format and $verification_id is the id of the speaker - To convert to wav format, $speaker->convertAudio($audio)
  5. Verify Speaker - $speaker->verifySpeaker($audio, $verification_id) - $audio is the audio file in wav format and $verification_id is the id of the speaker - To convert to wav format, $speaker->convertAudio($audio)

Details Microsoft Azure Speaker Recognition can be found here: https://azure.microsoft.com/en-us/services/cognitive-services/speaker-recognition/


  Files folder image Files (5)  
File Role Description
Accessible without login Plain text file .env.example Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Plain text file speech.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:179
This week:0
All time:8,727
This week:104Up