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) {});