imperium2335 Posted May 18, 2009 Share Posted May 18, 2009 Hi, this might be beyond the scope of this forum but here it is: Id like to make something where a word is played, then you repeat the word into a mic. The waveform of the word you said is then compared (roughly) to the one that was played. It then tells you how well your pronounciation is. Maybe first it needs to convert the waveform to an image and compare them? If this can't be done with PHP, what language would be best? And how? It needs to be used through a website. Thanks muchly in advance, any input is appreciated. Link to comment https://forums.phpfreaks.com/topic/158580-php-voice-analysis/ Share on other sites More sharing options...
Mchl Posted May 18, 2009 Share Posted May 18, 2009 I'm afraid PHP is not well suited for that, for several reasons. 1. It runs on server, so it has no access to any hardware on client's computer. 2. It's an interpreted language which means it's relatively slow for sophisticated calculations. I think you could do something like this 1. Use flash application to record the sound and send to server 2. On the server PHP calls external voice recogniton application and parses it results 3. The result is send back to flash application and displayed to user. Link to comment https://forums.phpfreaks.com/topic/158580-php-voice-analysis/#findComment-836377 Share on other sites More sharing options...
Daniel0 Posted May 18, 2009 Share Posted May 18, 2009 You're probably unlikely to write a program for voice recognition unless you have a solid background in mathematics and computer science. Link to comment https://forums.phpfreaks.com/topic/158580-php-voice-analysis/#findComment-836380 Share on other sites More sharing options...
imperium2335 Posted May 18, 2009 Author Share Posted May 18, 2009 Its not really recognition to the point it identifies a person, I just want it to get the wave form, save as a jpg, then php to compare those two images. Is it really uber complicated? Link to comment https://forums.phpfreaks.com/topic/158580-php-voice-analysis/#findComment-836402 Share on other sites More sharing options...
nadeemshafi9 Posted May 18, 2009 Share Posted May 18, 2009 ahahahahaha i tried this about 3 years ago, basicaly you need to get all teh right tools and things. what i did was put a letter of sound into a dataabse and then use a sound concatinator to past them together depending on what is written in teh text box. It is NOT GOOD ENOGH haha if it was that easy dont you think everyone would have it. You can buy algorithms or find free ones im sure. my aplication could say: a sleep(5) b sleep(5) a sleep(5) c sleep(5) u sleep(5) s Link to comment https://forums.phpfreaks.com/topic/158580-php-voice-analysis/#findComment-836420 Share on other sites More sharing options...
nadeemshafi9 Posted May 18, 2009 Share Posted May 18, 2009 ahahahahaha i tried this about 3 years ago, basicaly you need to get all teh right tools and things. what i did was put a letter of sound into a dataabse and then use a sound concatinator to past them together depending on what is written in teh text box. It is NOT GOOD ENOGH haha if it was that easy dont you think everyone would have it. You can buy algorithms or find free ones im sure. I'm afraid PHP is not well suited for that, for several reasons. 1. It runs on server, so it has no access to any hardware on client's computer. 2. It's an interpreted language which means it's relatively slow for sophisticated calculations. I think you could do something like this 1. Use flash application to record the sound and send to server 2. On the server PHP calls external voice recogniton application and parses it results 3. The result is send back to flash application and displayed to user. sounds good Link to comment https://forums.phpfreaks.com/topic/158580-php-voice-analysis/#findComment-836423 Share on other sites More sharing options...
Mchl Posted May 18, 2009 Share Posted May 18, 2009 No need to convert it to jpg. Digitised sound is after all a sequence of numbers. All you need to do is to compare how 'similar' are two arrays[1]. Still, this is not a job for PHP. You can use PHP as a 'middle-ground' software between web page, and external application written for example in C/C++, but doing it all in PHP would probably be too slow. [1] Recommended topic to Google/read: digital signal analysis Link to comment https://forums.phpfreaks.com/topic/158580-php-voice-analysis/#findComment-836462 Share on other sites More sharing options...
nadeemshafi9 Posted May 18, 2009 Share Posted May 18, 2009 No need to convert it to jpg. Digitised sound is after all a sequence of numbers. All you need to do is to compare how 'similar' are two arrays[1]. Still, this is not a job for PHP. You can use PHP as a 'middle-ground' software between web page, and external application written for example in C/C++, but doing it all in PHP would probably be too slow. [1] Recommended topic to Google/read: digital signal analysis wow that opens up alot of doors now you explained it thanks Link to comment https://forums.phpfreaks.com/topic/158580-php-voice-analysis/#findComment-836474 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.