Jump to content

PHP Voice Analysis?


imperium2335

Recommended Posts

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

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

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.