Online Speech Recognition API


Add speech recognition to your website with javascript and flash.

Get started with less than 20 lines of code. Try the below code in your webpage. Show / Hide Example code

<script type="text/javascript" src="http://www.speechapi.com/static/lib/speechapi-1.1.js"></script> <script type="text/javascript" src="http://www.speechapi.com/static/lib/swfobject.js"></script> <script language="JavaScript" type="text/javascript" > function onLoaded() { speechapi.setupRecognition("SIMPLE", document.getElementById('words').value,false); } var flashvars = {speechServer : "rtmp://www.speechapi.com:1935/firstapp"}; var params = {allowscriptaccess : "always"}; var attributes = {}; attributes.id = "flashContent"; swfobject.embedSWF( "http://www.speechapi.com/static/lib/speechapi-1.1.swf", "myAlternativeContent", "215", "138", "9.0.28", false, flashvars, params, attributes); speechapi.setup("eli","password",onResult, onFinishTTS, onLoaded, "flashContent"); function onResult(result) { document.getElementById('answer').innerHTML = result.text; speechapi.speak(result.text,"male"); } function onFinishTTS() { } function ResetGrammar() { speechapi.setupRecognition("SIMPLE", document.getElementById('words').value,false); } </script> <body> <div id="myAlternativeContent"></div> <div id="flashContent"></div> </body>

For more code samples check out our demos.


No Server Required

We can help you setup, host and support your speechapi needs.

It's free to try our hosted services to see if our platform works for you.


Online Speech Console

Monitor your usage with analytics.


Contact us

We would love to hear feedback on how we can solve your problems. Contact us at support@speechapi.com

Latest News

Beta release of firefox plugin.

Download it here. Say the name of links (press to speak mode only for this early release). Speakable links are highlighed in yellow. Click on paragraphs for them to be read back to you.

Support for MP3 encoding

Added mp3 support using Xuggler/ffmpeg. Actually added many more formats, see Xuggler for a list of the supported encodings. You can even do speech to text of the audio track of video.

PHP Speech Recognition

Added examples of how to do speech recognition and speech synthesis from a PHP appliction. Ideal for server side speech.

Ruby Speech Recognition

Added examples of how to do speech recognition and speech synthesis from a Ruby appliction. Ideal for server side speech.

Python Speech Recognition

Added examples of how to do speech recognition and speech synthesis from a Python appliction. Ideal for server side speech.

Flash 10.1 and AIR2 Speech Recognition

Added examples of how to do speech recognition and speech synthesis from a Flash 10.1 appliction. Ideal for browser side speech.