voice.onVoiceFilterMsg - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki
gigagenie.voice.onVoiceFilterMsg
API ์ค๋ช
- ์์ฑ ํํฐ ๊ฒฐ๊ณผ ์์ API
- ๋ฑ๋ก๋ Keyword์ ๋ํ ์์ Event
- Keyword๋ ์์ฑ ํํฐ ์ค์ API(voice.setVoiceFilter)๋ฅผ ํตํด ๋ฑ๋ก๋ ๊ฐ
- ๊ถํ์ ๊ฐ์ง appid๋ง ํธ์ถ ๊ฐ๋ฅ
API ๊ตฌ์กฐ
- function callback(extra)
message
: (String) Keyword๋ฅผ ํฌํจํ ์์ฑ ์ธ์ ๊ฒฐ๊ณผ
์ฌ์ฉ ์์
// callback
gigagenie.voice.onVoiceFilterMsg = function (message) {
console.log("Received Text is " + message);
};
// promise
gigagenie.voice.onVoiceFilterMsg(null).then(function (message) {
console.log("Received Text is " + message);
}).catch(function (result_cd, result_msg, message) {});