Hi, I have modify my android phone so I can use Android voice application to post the speech as text to a asp file on hs server that handle the data.
For example if I say "Turn on the kitchen lamp" i got a string sent to hs-server "turn on the kitchen lamp"
Is there any way to use the built in function for hs speech recognition or do I have to write everything from start and try to do artificial intelligence. I just try some quick and dirty asp scripting.
I am in bed with flu and headaches and try to pass the time, but the brain is not at top level at the moment.
For example if I say "Turn on the kitchen lamp" i got a string sent to hs-server "turn on the kitchen lamp"
Is there any way to use the built in function for hs speech recognition or do I have to write everything from start and try to do artificial intelligence. I just try some quick and dirty asp scripting.
I am in bed with flu and headaches and try to pass the time, but the brain is not at top level at the moment.

PHP Code:
str_text = lcase(request.form("text"))
arr_words = split(str_text," ")
If arr_words(0) = "turn" Then
select case arr_words(1)
case "on"
str_command = 2
if arr_words(2) = "the" Then
str_place = arr_words(3)
str_unit =arr_words(4)
else
str_place = arr_words(2)
str_unit = arr_words(3)
End If
case "off"
str_command = 3
if arr_words(2) = "the" Then
str_place = arr_words(3)
str_unit =arr_words(4)
else
str_place = arr_words(2)
str_unit = arr_words(3)
End If
case "shut"
str_command = 3
if arr_words(2) = "the" Then
str_place = arr_words(3)
str_unit =arr_words(4)
else
str_place = arr_words(2)
str_unit = arr_words(3)
End If
end select
hs.SetDeviceStatusByName str_place & " " & str_unit,str_command
response.write "I have now " & arr_words(0) & " " & case arr_words(1) & " " & str_place & " " & str_unit
End If
Comment