voice.setKwsStatus - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki

KWS ์ƒํƒœ ๋ณ€๊ฒฝ

gigagenie.voice.setKwsStatus

KWS ํ™œ์„ฑํ™” ์ƒํƒœ๋ฅผ ๋ณ€๊ฒฝํ•œ๋‹ค. ๋น„ํ™œ์„ฑํ™” ์ƒํƒœ์—์„œ ์•ฑ์ด ์ข…๋ฃŒ๋˜๋ฉด kws ๊ฐ€ ์ž๋™ ํ™œ์„ฑํ™” ๋œ๋‹ค

  • Function setKwsStatus(options,callback)
  • options ์€ ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค
    • options.mode=0 : kws๋ฅผ ํ™œ์„ฑํ™” ์‹œํ‚จ๋‹ค.
    • options.mode=1: kws๋ฅผ ๋น„ํ™œ์„ฑํ™” ์‹œํ‚จ๋‹ค.
  • result_cd์— ๋‹ค์Œ์˜ ๊ฐ’์ด ์ „๋‹ฌ๋œ๋‹ค.
    • 200 : ๋ชจ๋“œ ์กฐํšŒ ์„ฑ๊ณต
    • 400 : ํŒŒ๋ผ๋ฏธํ„ฐ ์„ค์ • ์—๋Ÿฌ
    • 500 : ์‹œ์Šคํ…œ ์˜ค๋ฅ˜
  • extra ๊ฐ’์€ null์ด๋‹ค.
  • ์‚ฌ์šฉ ์˜ˆ

var options={};
options.mode=0;
gigagenie.voice.setKwsStatus(options,function(result_cd,result_msg,extra){
  if(result_cd===200){
    console.log("KWS Status Changedโ€);
  };
});
โš ๏ธ **GitHub.com Fallback** โš ๏ธ