voice.setVoiceFilter - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki

gigagenie.voice.setVoiceFilter

API ์„ค๋ช…

  • ์Œ์„ฑ ํ•„ํ„ฐ ์„ค์ • API
  • Keyword Spotting(์˜ˆ: ๊ธฐ๊ฐ€์ง€๋‹ˆ) ์ดํ›„ ๋ฐœํ™”๋œ ๋‚ด์šฉ ์ค‘์—์„œ App์—์„œ ์ „๋‹ฌ๋ฐ›๊ณ ์ž ํ•˜๋Š” ๋‹จ์–ด๋ฅผ ์„ค์ •
  • ์Œ์„ฑ ์ธ์‹ ๊ฒฐ๊ณผ๋Š” ๋Œ€ํ™”SDK๋ฅผ ๊ฑฐ์น˜์ง€ ์•Š๊ณ  ์ด๋ฒคํŠธ ์ˆ˜์‹ ์„ ํ†ตํ•ด ์ „๋‹ฌํ•จ
  • ๊ถŒํ•œ์„ ๊ฐ€์ง„ appid๋งŒ ํ˜ธ์ถœ ๊ฐ€๋Šฅํ•˜๋ฉฐ ์„ค์ •ํ•œ ๋‹จ์–ด๊ฐ€ ์ฒซ ๋ฒˆ์งธ ๋‹จ์–ด๋กœ ์ธ์‹๋  ๋•Œ์—๋งŒ ์ด๋ฒคํŠธ๋กœ ์ „๋‹ฌ
    • ์˜ˆ: ['์ •๋‹ต'] ์œผ๋กœ ๋“ฑ๋กํ–ˆ์„ ๊ฒฝ์šฐ '์ •๋‹ต 1๋ฒˆ'์€ ์ˆ˜์‹ , '1๋ฒˆ ์ •๋‹ต'์€ ๋ฏธ์ˆ˜์‹ 

API ๊ตฌ์กฐ

  • gigagenie.voice.setVoiceFilter
  • options
    • keyword: (String Array, Mandatory) Keyword๋ฅผ ์„ค์ •ํ•จ
  • result_cd
    • 200: ์„ฑ๊ณต
  • extra
    • null

์‚ฌ์šฉ ์˜ˆ์‹œ

// callback
var options = {};
options.keyword = ["์ •๋‹ต", "ํžŒํŠธ"];
gigagenie.voice.setVoiceFilter(options, function (result_cd, result_msg, extra) {
    if (result_cd === 200) {
        console.log("Keyword setting is success.");
    };
});
// promise
var options = {};
options.keyword = ["์ •๋‹ต", "ํžŒํŠธ"];
gigagenie.voice.setVoiceFilter(options).then(function (extra) {
    console.log("Keyword setting is success.");
}).catch(function (result_cd, result_msg, extra) {});

ํ™œ์šฉ ์˜ˆ์ œ๋Š” (GiGA Genie Quiz)์—์„œ ํ™•์ธ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค