Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isnullnull/097aacdbc0c9ea6aa9b6cc852c9f70d6 to your computer and use it in GitHub Desktop.
Save isnullnull/097aacdbc0c9ea6aa9b6cc852c9f70d6 to your computer and use it in GitHub Desktop.
RoBoHoNに 英語のスピーキングの宿題を手伝ってもらう ref: http://qiita.com/n_ueh/items/4a1b82765962b62583f3
@Override
public void onExecCommand(String command, List<VoiceUIVariable> variables) {
Log.v(TAG, "onExecCommand() : " + command);
switch (command) {
case ScenarioDefinitions.FUNC_RECOG_TALK:
final String lvcsr = VoiceUIVariableUtil.getVariableData(variables, ScenarioDefinitions.KEY_LVCSR_BASIC);
mHandler.post(new Runnable() {
@Override
public void run() {
if(!isFinishing()) {
((TextView) findViewById(R.id.recog_text)).setText("Lvcsr:"+lvcsr);
}
}
});
break;
default:
break;
}
}
<action index="1">
<speech>${Lvcsr:Basic}</speech>
<behavior id="assign" type="normal"/>
<control function="recog_talk" target="jp.co.sharp.sample.multilingual">
<data key="Lvcsr_Basic" value="${Lvcsr:Basic}"/>
</control>
</action>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment