voice.checkStreamingRecognize - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki

์ŠคํŠธ๋ฆฌ๋ฐ์Œ์„ฑ์ธ์‹ ๋ชจ๋“œ ์กฐํšŒ

gigagenie.voice.checkStreamingRecognize

์ŠคํŠธ๋ฆฌ๋ฐ ์Œ์„ฑ์ธ์‹๋ชจ๋“œ ์ƒํƒœ๋ฅผ ํ™•์ธํ•œ๋‹ค.

  • Function checkStreamingRecognize(options,callback)

  • options ์€ null ์ด๋‹ค.

  • result_cd์— ๋‹ค์Œ์˜ ๊ฐ’์ด ์ „๋‹ฌ๋œ๋‹ค.

    • 200 : ๋ชจ๋“œ ์กฐํšŒ ์„ฑ๊ณต
    • 500 : ์‹œ์Šคํ…œ ์˜ค๋ฅ˜
    • 503 : ํ˜„์žฌ Pause ์ƒํƒœ๋กœ ๋ช…๋ น ์ˆ˜์‹  ๋ถˆ๊ฐ€
  • extra ๊ฐ’์— ๋‹ค์Œ์ด ์ „๋‹ฌ๋œ๋‹ค.

    • extra.mode : Int, Mandatory๋กœ ์ŠคํŠธ๋ฆฌ๋ฐ์Œ์„ฑ์ธ์‹ ๋ชจ๋“œ ์ƒํƒœ์ด๋‹ค. 0์€ ์ŠคํŠธ๋ฆฌ๋ฐ์Œ์„ฑ์ธ์‹ ํ•ด์ œ, 1์€ ์ŠคํŠธ๋ฆฌ๋ฐ ์Œ์„ฑ์ธ์‹ ๋ชจ๋“œ์ด๋‹ค.
  • ์‚ฌ์šฉ ์˜ˆ


//gigagenie.voice.setStreamingRecognize
var options={};
options.mode=1;
gigagenie.voice.checkStreamingRecognize(options,function(result_cd,result_msg,extra){
  if(result_cd===200){
    console.log("Current streaming recognize mode is "+extra.mode);
  };
});
โš ๏ธ **GitHub.com Fallback** โš ๏ธ