annyang

Speech recognition listen to long

雨燕双飞 提交于 2020-01-04 03:48:09
问题 I need your help I have no idea how to fix my issue. I have app writen in ionic and I use annyang to Speech Recognition to listen what user said and response for that. It's working pretty good on web - using ionic serve, but when I run it on android device voice recognition take a long of time from 30s to couple of minutes - I just say one word for example "shop". It's any way to decrease this time? Or can i set any of timeout? I'll appreciate any help. Thanks. Edit: code look like //response

How do I change an AngularJS variable I declared in $scope using annyang speech commands?

╄→гoц情女王★ 提交于 2019-12-24 10:54:07
问题 I have a simple speech recognition app that starts and pauses a video based on speech commands. My problem is that a variable that I declare in $scope does not change when I give the pause command. The intent is for the number in the textarea to change when I pause the video using the "pause" speech command. Link to fiddle var myApp = angular.module('myApp', ['vjs.video']); myApp.controller("myCtrl", function MyCtrl($scope) { $scope.playtime = 0; $scope.$on('vjsVideoReady', function(e, data)

How to add annyang library in angular2?

家住魔仙堡 提交于 2019-12-10 18:28:15
问题 I need to add annyang library in angular2. Can anyone please suggest me how to add using system.js and typescript? We have a angular 1 service. I created a annyang service the code is import {Injectable} from '@angular/core' declare let annyang:any @Injectable() export class AnnyangService { start() { annyang.addCommands(this.commands); annyang.start({continuous: false }); } commands = {}; } Component code import { Component,EventEmitter } from '@angular/core' import {EventsListComponent}

How to capture speech except command in annyang speech api

老子叫甜甜 提交于 2019-12-08 04:26:02
问题 I am able to perform action according to commands provided in annyang speech api. But my question is how to capture speech except commands using this api. I need the same behavior that we got from google speech https://www.google.com/intl/en/chrome/demos/speech.html 回答1: We can capture the speech instead of command by getting the recognition object by using annyang.getSpeechRecognizer() Please find the demo code :- <!DOCTYPE html> <html> <head> <script src='//cdnjs.cloudflare.com/ajax/libs

How to capture speech except command in annyang speech api

霸气de小男生 提交于 2019-12-06 19:54:29
I am able to perform action according to commands provided in annyang speech api. But my question is how to capture speech except commands using this api. I need the same behavior that we got from google speech https://www.google.com/intl/en/chrome/demos/speech.html We can capture the speech instead of command by getting the recognition object by using annyang.getSpeechRecognizer() Please find the demo code :- <!DOCTYPE html> <html> <head> <script src='//cdnjs.cloudflare.com/ajax/libs/annyang/2.6.0/annyang.min.js'></script> <script> annyang.start(); var recognition = annyang