Main
API
Demos
Support
Open source
Login
|
Register
Ruby Example
Here is an example of how you can do recognition from the server side using Ruby.
require 'httpclient' require 'uri' uri = URI.parse('http://spokentech.net/speechcloud/SpeechUploadServlet') clnt = HTTPClient.new File.open('C:/tmp/fire_and_ice_frost_add_64kb.mp3') do |file| body = { 'lmFlag'=>'true', 'continuousFlag' => 'true', 'doEndpointing' => 'true' ,'CmnBatchFlag' => 'true', 'audio' => file } res = clnt.post(uri, body) do |chunk| puts chunk end end
Home
Basic Javascript
Advanced Javascript
Automatic Javascript
Java
PHP
Python
Ruby
HTTP
CLI