Created
June 24, 2017 15:10
-
-
Save isnullnull/097aacdbc0c9ea6aa9b6cc852c9f70d6 to your computer and use it in GitHub Desktop.
RoBoHoNに 英語のスピーキングの宿題を手伝ってもらう ref: http://qiita.com/n_ueh/items/4a1b82765962b62583f3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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