Original Author Paul Laughton, 2011
Page 140
De Re BASIC!
HTML Mode
This command sequence is used while in HTML mode. HTML mode exists after HTML.open and before
HTML.close.
The primary difference is that the STT.listen command is not used in HTML mode. The STT.listen
function is performed by means of an HTML datalink sending back the string "STT". The sending of "STT"
by means of the datalink causes the Speak Now dialog box to be displayed.
When the datalink "STT" string is received by the BASIC! program, the STT.results command can be
executed normally as it will contain the recognized text.
The sample file, f37_html_demo.bas, along with the associated html file, htmlDemo1.html (located in
"rfo-basic/data/") demonstrates the use of voice recognition in HTML mode.
Information About Your Android Device
Device Command Overview
You can get information about your Android device with the Device command:
The Device Brand, Device Model, Device Type, and OS
The Language and Locale
The PhoneType, PhoneNumber, and DeviceID
The SN, MCC/MNC, and Network Provider stored on the SIM, if there is one.
The Device command has two forms that differ only in the type of the parameter, which determines the
format of the returned data. Both forms return the same information, as shown in this table:
Key
Values
Meaning
Example
(from emulator)
Brand
Any string
Brand name assigned by device
manufacturer
generic
Model
Any string
Model identifier assigned by device
manufacturer
sdk
Device
Any string
Device identifier assigned by device
manufacturer
generic
Product
Any string
Product identifier assigned by device
manufacturer
sdk
OS
OS Version
Android operating system version
number
4.1.2
Language
Language name
Default language of this device
English
Locale
Locale code
Default locale code, typically language
and country
en_US
PhoneType
GSM, CDMA,
SIP, or None
Type of phone radio in this device
GSM