voice.onVoiceCommand - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki
gigagenie.voice.onVoiceCommand
API μ€λͺ
- μμ± λͺ
λ Ή μμ API
- λ€μ νμ΄μ§, μ΄μ νμ΄μ§ λ±μ μμ± λͺ
λ Ή μ½λλ₯Ό μμ
API ꡬ쑰
- function callback(event,extra)
event
λ λ€μμ μμ± λͺ
λ Ήμ λν΄μ StringμΌλ‘ μ λ¬ν¨
nextPage
: λ€μ νμ΄μ§
prevPage
: μ΄μ νμ΄μ§
naviNext
: λ€μμΌλ‘
naviPrev
: μ΄μ μΌλ‘
- νμΈ, μ·¨μλ
getVoiceText
μ mode=2
μ λν μλ΅μ μ λ¬ν¨
confirm
: νμΈ
cancel
: μ·¨μ
μ¬μ© μμ
gigagenie.voice.onVoiceCommand = function (event) {
switch (event) {
case 'nextPage':
//navigate next page
break;
case 'prevPage':
//navigate prev page
break;
default:
break;
}
};