gulaandrij/speaker-recognition-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

gulaandrij/speaker-recognition-bundle

Composer 安装命令:

composer require gulaandrij/speaker-recognition-bundle

包简介

Integrates Speaker Recognition API from Microsoft Cognitive Services with Symfony

README 文档

README

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. 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:

$ php composer.phar require onekit/speaker-recognition-bundle

Composer will install the bundle to your project's 'vendor/onekit' directory.

Step 2: Enable the bundle

Enable the bundle in the kernel:

<?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

# app/config/parameters.yml.dist
parameters:
    recognition_api_endpoint: https://api.projectoxford.ai/spid/v1.0
    ocp_apim_subscription_key_1: 00000000000000000000000000000000

Then type:

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

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:

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

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

###Trademarks notice Microsoft Azure, Microsoft Cognitive Services are either registered trademarks or trademarks of Microsoft Corporation in the United States and other countries.

统计信息

  • 总下载量: 201
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-11-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固