RecognizeSpeech

BeanShell

source("/sdcard/com.googlecode.bshforandroid/extras/bsh/android.bsh");
droid = Android();
text = droid.call("recognizeSpeech");
droid.call("makeToast",text.get("result"));
droid.call("notify","Recognize Speech using BeanShell",text.get("result"));
print(text.get("result"));

Bex

include("/sdcard/com.googlecode.bexforandroid/extras/bex/android.bex")
droid = Android()
text = droid.call("recognizeSpeech")
droid.call("makeToast",text.get("result"))
droid.call("notify","Recognize Speech using Bex",text.get("result"))
print(text.get("result"))

Erlang

-module(recognizeSpeech_Erlang).
-export([main/0]).
main()->
  Text = android:recognizeSpeech(),
  android:makeToast(Text),
  android:notify("Recognize Speech using Erlang",Text),
  io:fwrite("~s\n",[Text]).

Html and JavaScript

<HTML><HEAD><SCRIPT>
var droid = new Android();
var text = droid.recognizeSpeech().result;
droid.makeToast(text);
droid.notify("Recognize Speech using HTML and JavaScript",text);
document.write(text);
</SCRIPT></HEAD><BODY></BODY></HTML>

JRuby

droid = Android.new
text = droid.recognizeSpeech()['result']
droid.makeToast text
droid.notify "Recognize Speech using JRuby",text
puts text

JScheme

(import "com.googlecode.rpc.*")
(define droid (com.googlecode.rpc.Android.))
(define text (.get (.call droid "recognizeSpeech") "result"))
(.call droid "makeToast" text)
(.call droid "notify" "Recognize Speech using JScheme" text)
(.println System.out$ text)
(exit)

Jawk

import com.googlecode.rpc.*;
BEGIN{
  droid = new Android();
  text = droid.call("recognizeSpeech");
  droid.call("makeToast",text.get("result"));
  droid.call("notify","Recognize Speech using Jawk",text.get("result"));
  print text.get("result")
}

Lua

require "android"
text = android.recognizeSpeech().result
android.makeToast(text)
android.notify("Recognize Speech using Lua",text)
print(text)

PHP

<?php 
require_once("Android.php");
$droid = new Android();
$text = $droid->recognizeSpeech();
$droid->makeToast($text["result"]);
$droid->notify("Recognize Speech using PHP",$text["result"]);
print($text["result"]);
?>

Perl

use Android;
my $droid = Android->new();
my $text = $droid->recognizeSpeech();
my $msg = $text->{'result'};
$droid->makeToast($msg);
$droid->notify("Recognize Speech using Perl",$msg);
print "$msg\n";

Python

import android
droid = android.Android()
text= droid.recognizeSpeech()
droid.makeToast(text.result)
droid.notify("Recognize Speech using Python",text.result)
print(text.result.encode("utf-8"))

Rhino

load("/sdcard/com.googlecode.rhinoforandroid/extras/rhino/android.js");
var droid = new Android();
var text = droid.recognizeSpeech("Rhino");
droid.makeToast(text);
droid.notify("Recognize Speech using Rhino",text);
print(text);

Shell

Not solved. Please send me answers if you have.

Sleep

import com.googlecode.rpc.*;
$droid = [new Android];
$text = [$droid call : "recognizeSpeech"];
[$droid call : "makeToast",[$text get : "result"]];
[$droid call : "notify","Recognize Speech using Sleep",[$text get : "result"]];
println([$text get : "result"]);

Squirrel

android <- Android();
local text = android.recognizeSpeech("Squirrel").result;
android.makeToast(text);
android.notify("Recognize Speech using Squirrel",text);
print(text);

Tcl

source /sdcard/com.googlecode.tclforandroid/extras/tcl/android/android.tcl
set droid [android]
set text [$droid recognizeSpeech]
$droid makeToast $text
$droid notify "Recognize Speech using Tcl" $text
puts $text

unset droid
unset text
return