How to Configure the Samsung SmartTV SDK
How to Use a Navigation Controller in the Master View for Your iOS App
How to Become an Apple Registered Developer

Configuring the Voice HelpBar for Samsung SmartTV Applications

The voice helpbar shows available voice commands or status information on the bottom of the Samsung SmartTV screen. Use the SetVoiceHelpbarInfo() function to control the voice helpbar.

image0.jpg

The Voice HelpBar shown here is from the 2012 Model, and the View All Voice Commands are from the 2013 Model.

image1.jpg

The helpbar has two modes—embedded and server guide—and receives string type parameters.

The SetVoiceHelpbarInfo() Function
Function SetVoiceHelpbarInfo
Version Support from RECOGNITION-0001
Security Type RECOG
Usage SetVoiceHelpbarInfo(helpbarInfo)
Parameters helpbarInfo
[string] Information of the helpbar to be registered
Case 1: Embedded Mode
helpbarInfo = '{
"helpbarType":"HELPBAR_TYPE_VOICE_CUSTOMIZE",
"helpbarItemsList":[{
"itemText":"Channel Up/Down",
"commandList":[
{"command":"Channel Up"},
{"command":"Channel Down"}]
},{
"itemText":"Stop",
"commandList":[
{"command":"Stop"}]
}
],
"candidateList":[
{"candidate":"Search"},
{"candidate":"SearchAll"}
]
}';

Case 2: Server Guide Mode
helpbarInfo = '{
"helpbarType":"HELPBAR_TYPE_VOICE_SERVER_GUIDE",
"guideText":"Say the word or phrase you wish to type"}';
Example var helpbarInfo =
'{"helpbarType":"HELPBAR_TYPE_VOICE_CUSTOMIZE","helpbarItemsList":[{"itemText":"Channel", "commandList":[{"command":"Channel"}]},{"itemText":"Stop", "commandList":[{"command":"Stop"}]}],"candidateList":[{"candidate":"Search"},{"candidate":"SearchAll"}]}';

webapis.recognition.SetVoiceHelpbarInfo(helpbarInfo);

Each helpbar mode uses a different method to process the voice data. The embedded one processes the voice data internally, and tries to match it with one of the registered commands in the helpbar. A maximum of seven commands can be registered.

The server guide mode uses an external voice recognition service. The TV sends the recorded sounds file to the server, and the server returns a recognized result back to the TV. This is a more powerful mode, but it requires an Internet connection.

  • Add a Comment
  • Print
  • Share
blog comments powered by Disqus
How to Add a Button to Your iOS App
How to Create an Xcode Project for an iPad App
How to Use the Navigator Area in the Workspace Window for iOS Apps
How to Add the Events Controller to Your iOS App
Samsung SmartTV SDK Download and Installation
Advertisement

Inside Dummies.com