Skip to content

continuous listening #32

@mohd7469

Description

@mohd7469

@janantala @PascalPrecht @robinboehm hi,
how can i use this with timestamp $speechRecognition.listen() or to make it continuous listening until user say please stop and it perform a task regarding stop this is my code

// register tasks commands
      var task = [
       ... // other task
       {
        'regex': /(.+ )?please stop( .+)?/gi,
        'lang': 'en-US',
        'call': function(e){
          console.info('ok, stoping ..........................');
          $speechRecognition.stopListening();
        }
      }]

// watch also tasks commands
    $speechRecognition.listenUtterance(task);

// start listening user voice
      $speechRecognition.listen();

please help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions