2017 © Pedro Peláez
 

symfony-bundle speaker-recognition-bundle

Integrates Speaker Recognition API from Microsoft Cognitive Services with Symfony2.

image

onekit/speaker-recognition-bundle

Integrates Speaker Recognition API from Microsoft Cognitive Services with Symfony2.

  • Sunday, October 22, 2017
  • by onekit
  • Repository
  • 2 Watchers
  • 5 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Getting Started With OnekitSpeakerRecognitionBundle

Installation

Hope you already have account on Microsoft Azure and active subscription of Speaker Recognition API.
If you didn't, follow this link: https://portal.azure.com/#create/Microsoft.CognitiveServices
It's free for trial., (*1)

  1. Download OnekitSpeakerRecognitionBundle using composer
  2. Enable the bundle
  3. Configure bundle
  4. Call Microsoft Speaker Recognition API endpoints from your own Controller

Step 1: Download OnekitSpeakerRecognitionBundle using composer

Type in directory with your project:, (*2)

``` bash $ php composer.phar require onekit/speaker-recognition-bundle, (*3)


Composer will install the bundle to your project's 'vendor/onekit' directory. ### Step 2: Enable the bundle Enable the bundle in the kernel: ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Onekit\SpeakerRecognitionBundle\OnekitSpeakerRecognitionBundle() ); }

Step 3: Configure the bundle in your config file

Add the following in your parameters.yml.dist file, (*4)

``` yaml, (*5)

app/config/parameters.yml.dist

parameters: recognition_api_endpoint: https://api.projectoxford.ai/spid/v1.0 ocp_apim_subscription_key_1: 00000000000000000000000000000000, (*6)

Then type:  
``` bash
php composer.phar install

to copy parameters from parameters.yml.dist to parameters.yml and enter correct Subscription Key. Copy OCP APIM SUBSCRIPTION KEY 1 from your Azure Portal account, (*7)

Step 4: Call Microsoft Speaker Recognition API endpoints from your own Controller

To show your breadcrumbs on page simply add next in the template of you page:, (*8)

php /** * @var SpeakerRecognitionManager */ $speakerRecognitionManager = $this->get('speaker_recognition'); $response = $speakerRecognitionManager->getAllProfiles();, (*9)

Speaker Recognition API Reference: https://westus.dev.cognitive.microsoft.com/docs/services/563309b6778daf02acc0a508/operations/5645c3271984551c84ec6797, (*10)

Trademarks notice

Microsoft Azure, Microsoft Cognitive Services are either registered trademarks or trademarks of Microsoft Corporation in the United States and other countries., (*11)

The Versions

22/10 2017

dev-master

9999999-dev

Integrates Speaker Recognition API from Microsoft Cognitive Services with Symfony2.

  Sources   Download

MIT

The Requires

 

symfony2 voice verify recognition identify enroll speech speaker