Q:

Converting voice into words and then using them as the value for variables in php

What I am going to ask sounds little crazy but still I want to know.
How to take input from an audio device in php.
For example, fgets(STDIN) is used to take input from keyboard.
Similarly is there any function or anything in php to take input from microphone (Converting voice into words and then using them as the value for variables in php)?

A:

You can use existing speech recognition engine with C API like CMUSphinx.
You need to create an extention to call C from PHP. For that see
Loading c libraries from php
For more details on CMUSphinx see the tutorial

