Voice Recognition in PHP?

强颜欢笑 提交于 2019-12-18 13:28:32

问题


I am looking for Voice Recognition in PHP.

I have a lot of wav files (10-15 seconds) and I would like Voice Recognition to recognise 1 or 2 words from each wav file and then flag it to database or csv.

All the files have the same voice and accent (same person lol)

Example pseudocode:

$voice = new play('file.wav');
$result = $voice->recognise("Good Morning");
if ($result) { 
  echo "Matched Good Morning"; 
  //flag to database or csv
 } else { 
  echo "No match found";
 }

Which PHP Voice Recognition library can do this?


回答1:


PHP doesn't have this functionality built in but there are APIs available for this. SpeechAPI is one of them. Sphinx is another.




回答2:


Similar questions have been asked before. You might want to see https://stackoverflow.com/a/6351055/90236 to start your search for a speech engine.

There have also been a few questions regarding uses Php for speech recognition in web pages. Doesn't seem like your doing that, but it is Php - https://stackoverflow.com/a/8717077/90236



来源:https://stackoverflow.com/questions/10269499/voice-recognition-in-php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!