Skip to content

Get Word Error Rate (WER) between a reference sentence and Google Web Speech API's hypothesis

Notifications You must be signed in to change notification settings

ljdyer/wer-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WER calculator

WER calculator is a Heroku Flask app that records you saying a sentence that is difficult for speech recognition software to detect and calculates the Word Error Rate (WER) between the reference sentence and Google Web To Speech API's hypothesis.

How to use it

Go to the Heroku app page and follow the instructions on the page.

Example output

How it works

I implemented the Levenshtein algorithm and generation of a sequence of edit steps from scratch in Python based on the description in Juraskfy and Martin (2008, pp. 74-77). You can see the Levenshtein matrix generated by clicking the "show Levenshtein matrix" link displayed after recording.

The reference sentence and audio data are sent via a POST request to the Flask app, which sends back information about the Word Error Rate as an HTML string.

Credits

References

Jurafsky, D. and Martin J. H. (2008), Speech and language processing. 2nd edn. New Jersey: Prentice Hall.

About

Get Word Error Rate (WER) between a reference sentence and Google Web Speech API's hypothesis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published