{"id":356,"date":"2017-02-04T15:52:41","date_gmt":"2017-02-04T06:52:41","guid":{"rendered":"http:\/\/mindtech.jp\/?p=356"},"modified":"2017-02-04T15:52:41","modified_gmt":"2017-02-04T06:52:41","slug":"twilio%e3%81%ae%e9%9f%b3%e5%a3%b0%e3%82%92microsoft%e3%81%aebing-speech-api%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e5%8c%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/mindtech.jp\/?p=356","title":{"rendered":"Twilio\u306e\u97f3\u58f0\u3092Microsoft\u306eBing Speech API\u3092\u4f7f\u3063\u3066\u30c6\u30ad\u30b9\u30c8\u5316\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u30de\u30a4\u30f3\u30c9\u30c6\u30c3\u30af\u306e\u51a8\u3067\u3059\u3002<\/p>\n<p>\u5148\u65e5\u3001Twilio\u306e\u30cf\u30c3\u30ab\u30bd\u30f3\u306b\u884c\u3063\u3066\u304d\u307e\u3057\u305f\u3002\u96fb\u8a71\u3092\u4f7f\u3063\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u308d\u3046\u3068\u3059\u308b\u3068\u3001\u97f3\u58f0\u3092\u30c6\u30ad\u30b9\u30c8\u5316\u3057\u305f\u3044\u30cb\u30fc\u30ba\u304c\u51fa\u3066\u304d\u307e\u3059\u3002\u5b9f\u969b\u3001Twilio\u306b\u306f\u30c6\u30ad\u30b9\u30c8\u5316\u306e\u6a5f\u80fd\u3082\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u73fe\u72b6\u3067\u306f\u65e5\u672c\u8a9e\u306f\u5bfe\u8c61\u5916\u306a\u3093\u3067\u3059\u3088\u306d\u3002\uff08\u3042\u3068\u30c6\u30ad\u30b9\u30c8\u5316\u306e\u304a\u5024\u6bb5\u304c\u3061\u3087\u3063\u3068\u9ad8\u3044w\uff09<\/p>\n<p>\u305d\u3093\u306a\u308f\u3051\u3067\u30c6\u30ad\u30b9\u30c8\u5316\u3059\u308b\u305f\u3081\u306b\u306f\uff08\u81ea\u529b\u3067\u5b9f\u88c5\u3059\u308b\u306e\u3067\u306a\u3051\u308c\u3070\uff09\u5916\u90e8\u306eAPI\u3092\u547c\u3073\u51fa\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Google Speech API\u3092\u5229\u7528\u3059\u308b\u65b9\u6cd5\u306f\u6614\u3001<a href=\"http:\/\/katsumi-takahashi.blogspot.jp\/2013\/12\/twilio-twiliotranscribe-api-twilio.html\" target=\"_blank\">\u9ad8\u6a4b\u3055\u3093\u304c\u30ac\u30c3\u30c4\u30ea\u66f8\u3044\u3066\u304a\u3089\u308c\u308b<\/a>\u306e\u3067\u3001\u3053\u3053\u3067\u306fBing Speech API\u3092\u5229\u7528\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u3087\u3046\u3002\u30b5\u30f3\u30d7\u30eb\u306fpython2.7\u3067\u52d5\u4f5c\u78ba\u8a8d\u3092\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u3082\u3061\u308d\u3093\u4ed6\u306e\u8a00\u8a9e\u3067\u3082\u554f\u984c\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h4>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3068\u95a2\u9023\u30ea\u30f3\u30af<\/h4>\n<p>Bing Speech API\u3068\u306f<br \/>\n<a href=\"https:\/\/azure.microsoft.com\/ja-jp\/services\/cognitive-services\/speech\/\" target=\"_blank\">https:\/\/azure.microsoft.com\/ja-jp\/services\/cognitive-services\/speech\/<\/a><\/p>\n<p>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<br \/>\n<a href=\"https:\/\/www.microsoft.com\/cognitive-services\/en-us\/speech-api\/documentation\/overview\" target=\"_blank\">https:\/\/www.microsoft.com\/cognitive-services\/en-us\/speech-api\/documentation\/overview<\/a><\/p>\n<p>Speech API\u3067\u306f\u30c6\u30ad\u30b9\u30c8\u5316\u3059\u308b\u97f3\u58f0\u8a8d\u8b58\u3068\u3001\u30c6\u30ad\u30b9\u30c8\u3092\u97f3\u58f0\u30c7\u30fc\u30bf\u306b\u5909\u63db\u3059\u308b\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u3053\u3067\u306f\u524d\u8005\u3092\u4f7f\u3044\u307e\u3059\u3002<br \/>\nMicrosoft Congitive Service\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306f\u53d6\u5f97\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n<a href=\"https:\/\/www.microsoft.com\/cognitive-services\/en-us\/\" target=\"_blank\">https:\/\/www.microsoft.com\/cognitive-services\/en-us\/<\/a><\/p>\n<h4>API\u30ad\u30fc\u306e\u53d6\u5f97<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-357\" src=\"http:\/\/mindtech.jp\/wp-content\/uploads\/2017\/02\/img_No-0042.png\" alt=\"\" width=\"968\" height=\"236\" srcset=\"https:\/\/mindtech.jp\/wp-content\/uploads\/2017\/02\/img_No-0042.png 968w, https:\/\/mindtech.jp\/wp-content\/uploads\/2017\/02\/img_No-0042-300x73.png 300w, https:\/\/mindtech.jp\/wp-content\/uploads\/2017\/02\/img_No-0042-768x187.png 768w, https:\/\/mindtech.jp\/wp-content\/uploads\/2017\/02\/img_No-0042-304x74.png 304w, https:\/\/mindtech.jp\/wp-content\/uploads\/2017\/02\/img_No-0042-282x69.png 282w\" sizes=\"auto, (max-width: 968px) 100vw, 968px\" \/><\/p>\n<p>Cognitive Service \u306e\u7ba1\u7406\u753b\u9762\u3067&#8221;Bing Speech&#8221;\u306e\u30b5\u30fc\u30d3\u30b9\u306e\u7b87\u6240\u304b\u3089&#8221;key 1&#8243;\u3092Show\/Copy\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002API\u547c\u3073\u51fa\u3057\u306e\u969b\u306b\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4>\u8a8d\u8a3c\uff5eAPI\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u306e\u53d6\u5f97<\/h4>\n<p>API\u306e\u547c\u3073\u51fa\u3057\u306e\u969b\u306b\u306f\u8a8d\u8a3c\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u8a73\u7d30\u306f<a href=\"http:\/\/www.microsoft.com\/cognitive-services\/en-us\/Speech-api\/documentation\/API-Reference-REST\/BingVoiceRecognition\">\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3092\u53c2\u7167\u3044\u305f\u3060\u304f\u3068\u3057\u3066\uff08\u7b11\uff09\u30ad\u30fc\u3092\u9001\u3063\u3066\u8a8d\u8a3c\u30c8\u30fc\u30af\u30f3\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u30c8\u30fc\u30af\u30f3\u306f\uff11\uff10\u5206\u9593\u6709\u52b9\u3002<br \/>\n\u30ea\u30af\u30a8\u30b9\u30c8\u30d8\u30c3\u30c0\u30fc&#8221;Ocp-Apim-Subscription-Key&#8221;\u306bAPI\u30ad\u30fc\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>Python\u3067\u3053\u3093\u306a\u611f\u3058\u306b\u66f8\u304d\u307e\u3057\u305f\u3002requests\u3092\u4f7f\u3063\u3066\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nimport requests\r\nimport urllib\r\n\r\ndef authorize():\r\n\r\n    url = &quot;https:\/\/api.cognitive.microsoft.com\/sts\/v1.0\/issueToken&quot;\r\n\r\n    headers = {\r\n        &quot;Content-type&quot;: &quot;application\/x-www-form-urlencoded&quot;,\r\n        &quot;Ocp-Apim-Subscription-Key&quot;: &quot;\u53d6\u5f97\u3057\u305fAPI\u30ad\u30fc&quot;\r\n    }\r\n\r\n    response = requests.post(url, headers=headers)\r\n\r\n    if response.ok:\r\n        _body = response.text\r\n        return _body\r\n    else:\r\n        response.raise_for_status()\r\n<\/pre>\n<h4>\u97f3\u58f0\u5909\u63db<\/h4>\n<p>\u5148\u306b\u53d6\u5f97\u3057\u305f\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u306f\u3001API\u547c\u3073\u51fa\u3057\u306e\u969b\u306b\u30d8\u30c3\u30c0\u30fc\u306b\u4ed8\u4e0e\u3057\u307e\u3059\u3002<\/p>\n<pre>\"Authorization\": \"Bearer \" + token\r\n<\/pre>\n<p>\u8a8d\u8a3c\u306e\u5834\u5408\u3068\u540c\u69d8\u306b\u3001\u6307\u5b9a\u3055\u308c\u305f\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306bPOST\u3067\u30c7\u30fc\u30bf\u3092\u6295\u3052\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nimport requests\r\nimport urllib\r\n\r\ndef speech_to_text( raw_data, token, lang=&quot;ja-JP&quot;, samplerate=8000, scenarios=&quot;ulm&quot;):\r\n    data = raw_data\r\n    params = {\r\n        &quot;version&quot;: &quot;3.0&quot;,\r\n        &quot;requestid&quot;: &quot;b2c95ede-97eb-4c88-81e4-80f32d6aee54&quot;,\r\n        &quot;appid&quot;: &quot;D4D52672-91D7-4C74-8AD8-42B1D98141A5&quot;,\r\n        &quot;format&quot;: &quot;json&quot;,\r\n        &quot;locale&quot;: lang,\r\n        &quot;device.os&quot;: &quot;Windows&quot;,\r\n        &quot;scenarios&quot;: scenarios,\r\n        &quot;instanceid&quot;: &quot;565D69FF-E928-4B7E-87DA-9A750B96D9E3&quot; # from Sample Bot Framework\r\n    }\r\n    \r\n    url = &quot;https:\/\/speech.platform.bing.com\/recognize?&quot; + urllib.urlencode(params)\r\n    headers = {&quot;Content-type&quot;: &quot;audio\/wav; samplerate={0}&quot;.format(samplerate),\r\n               &quot;Authorization&quot;: &quot;Bearer &quot; + token }\r\n    \r\n    response = requests.post(url, data=data, headers=headers)\r\n    \r\n    if response.ok:\r\n        result = response.json()&#x5B;&quot;results&quot;]&#x5B;0]\r\n        return result&#x5B;&quot;lexical&quot;]\r\n    else:\r\n        raise response.raise_for_status()\r\n<\/pre>\n<p>&#8220;version&#8221;,&#8221;appid&#8221;\u306a\u3069\u306f\u6307\u5b9a\u3055\u308c\u305f\u56fa\u5b9a\u5024\u3002<br \/>\n&#8220;requestid&#8221;,&#8221;instanceid&#8221;\u306f\u672c\u5f53\u306fGUID\u3092\u4f5c\u6210\u3057\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u3088\u3046\u3067\u3059\u304c\u3001\u30b5\u30f3\u30d7\u30eb\u306e\u6587\u5b57\u5217\u3067\u52d5\u3044\u305f\u306e\u3067\u305d\u306e\u307e\u307e\u4f7f\u3063\u3066\u3044\u307e\u3059\uff08\u7b11\uff09\u304d\u3061\u3093\u3068\u3057\u305f\u3044\u4eba\u306f\u9069\u5f53\u306b\u76f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n&#8220;senario&#8221;\u3082ulm, websearch \u306a\u3069\u306e\u6307\u5b9a\u304c\u51fa\u6765\u308b\u3088\u3046\u3067\u3059\u304c\u3001\u9055\u3044\u304c\u3088\u304f\u5206\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u30b9\u30df\u30de\u30bb\u30f3\u3002<\/p>\n<h4>\u7aef\u672b\u3067\u306e\u30c6\u30b9\u30c8<\/h4>\n<p>\u3053\u308c\u3089\u3092\u547c\u3073\u51fa\u3057\u3066\u5b9f\u969b\u306b\u30c6\u30ad\u30b9\u30c8\u5316\u3057\u3066\u307f\u307e\u3059\u3002\u9069\u5f53\u306b\u58f0\u3092\u9332\u97f3\u3057\u305fwav\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\uff08\u30b5\u30f3\u30d7\u30ea\u30f3\u30b0\u30ec\u30fc\u30c8\u306f8000\u306b\u3057\u3066\u3044\u307e\u3059\u3002\uff09<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\ninfile = open(&quot;sample.wav&quot;, 'r')\r\nraw = infile.read()\r\ntxt =  speech_to_text( raw , token, lang=&quot;ja-JP&quot;, samplerate=8000, scenarios=&quot;ulm&quot;)\r\nprint &quot;text : &quot; + txt\r\n<\/pre>\n<p>\u3053\u308c\u3067<\/p>\n<pre>$ python test.py\r\ntext : \u3053\u3093\u306b\u3061\u306f\r\n<\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u8868\u793a\u3055\u308c\u3070\u3001\u547c\u3073\u51fa\u3057\u306f\u3046\u307e\u304f\u3044\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Twilio\u306e\u9332\u97f3\u97f3\u58f0\u3092\u4e0a\u8a18\u306e\u4f8b\u306e&#8221;sample.wav&#8221;\u306b\u76f8\u5f53\u3059\u308b\u30c7\u30fc\u30bf\u3068\u3057\u3066\u5f15\u304d\u6e21\u3057\u3067\u304d\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<h4>\u30b5\u30fc\u30d0\u30fc\u5074\u306e\u30a2\u30d7\u30ea<\/h4>\n<p>\u7d9a\u3044\u3066\u3001TwiML\u3092\u8fd4\u3057\u3001\u9332\u97f3\u97f3\u58f0\u3092\u53d6\u5f97\u3057\u3066\u5148\u306eSpeech API\u3092\u547c\u3073\u51fa\u3059Web\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u96fb\u8a71\u53e3\u3067\u8a71\u3057\u305f\u8a00\u8449\u3092\u304a\u3046\u3080\u8fd4\u3057\u306b\u8aad\u307f\u8fd4\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306fpython\u306eBottle\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u5229\u7528\u3057\u3066\u3001\u5148\u306b\u4f5c\u6210\u3057\u305f\u95a2\u6570\u3082\u7d44\u307f\u8fbc\u3093\u3067\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\n# coding: utf-8\r\nimport sys\r\nimport os\r\nimport bottle\r\nimport requests\r\nimport urllib\r\nimport json\r\nimport commands\r\nfrom bottle import route, run, post, Response, request, static_file\r\nfrom twilio import twiml\r\nfrom twilio.rest import TwilioRestClient\r\n\r\nreload(sys)\r\nsys.setdefaultencoding('utf-8')\r\n\r\napp = bottle.default_app()\r\ntwilio_client = TwilioRestClient('Twilio\u306eACCOUNT SID' , 'Twilio\u306eAUTH TOKEN')\r\n\r\nTWILIO_NUMBER = os.environ.get('\uff08TWILIO_NUMBER\uff09', '\uff08Twilio\u3067\u8cfc\u5165\u3057\u305f\u96fb\u8a71\u756a\u53f7\uff09')\r\nNGROK_BASE_URL = os.environ.get('NGROK_BASE_URL', '')\r\n\r\n@route('\/')\r\ndef index():\r\n    &quot;&quot;&quot;Returns standard text response to show app is working.&quot;&quot;&quot;\r\n    return Response(&quot;Bottle app up and running!&quot;)\r\n\r\n@post('\/twiml')\r\ndef twiml_response():\r\n    response = twiml.Response()\r\n    \r\n    response.say(&quot;\u4f55\u304b\u8a71\u3057\u3066\u30ad\u30fc\u3092\u62bc\u3057\u3066\u304f\u3060\u3055\u3044\u3002&quot;,language=&quot;ja-jp&quot;,voice=&quot;woman&quot;)\r\n    response.record(action=&quot;http:\/\/\uff08\u30b5\u30fc\u30d0\u30fc\u306e\u30a2\u30c9\u30ec\u30b9\uff09\/handlerecording&quot;,method=&quot;GET&quot;, maxLength=&quot;20&quot;, finishOnKey=&quot;0123456789*#&quot;)\r\n    return Response(str(response))\r\n\r\n@route('\/handlerecording')\r\ndef handlerecording():\r\n\r\n    recording_url = request.query.get('RecordingUrl')\r\n    voice = urllib.urlopen(recording_url).read()\r\n\r\n    ## Authorize for Bing Speech API\r\n    token = authorize()\r\n    txt =  speech_to_text( voice , token, lang=&quot;ja-JP&quot;, samplerate=8000, scenarios=&quot;ulm&quot;)\r\n    \r\n    # respond TwiML\r\n    response = twiml.Response()\r\n    response.say(txt,language=&quot;ja-jp&quot;,voice=&quot;woman&quot;)\r\n\r\n    return Response(str(response))\r\n\r\ndef authorize():\r\n\r\n    url = &quot;https:\/\/api.cognitive.microsoft.com\/sts\/v1.0\/issueToken&quot;\r\n    headers = {\r\n        &quot;Content-type&quot;: &quot;application\/x-www-form-urlencoded&quot;,\r\n        &quot;Ocp-Apim-Subscription-Key&quot;: &quot;\uff08API key\uff09&quot;\r\n    }\r\n    response = requests.post(url, headers=headers)\r\n    \r\n    if response.ok:\r\n        _body = response.text\r\n        return _body\r\n    else:\r\n        response.raise_for_status()\r\n\r\ndef speech_to_text( raw_data, token, lang=&quot;ja-JP&quot;, samplerate=8000, scenarios=&quot;ulm&quot;):\r\n    data = raw_data\r\n    params = {\r\n        &quot;version&quot;: &quot;3.0&quot;,\r\n        &quot;requestid&quot;: &quot;b2c95ede-97eb-4c88-81e4-80f32d6aee54&quot;,\r\n        &quot;appid&quot;: &quot;D4D52672-91D7-4C74-8AD8-42B1D98141A5&quot;,\r\n        &quot;format&quot;: &quot;json&quot;,\r\n        &quot;locale&quot;: lang,\r\n        &quot;device.os&quot;: &quot;Windows&quot;,\r\n        &quot;scenarios&quot;: scenarios,\r\n        &quot;instanceid&quot;: &quot;565D69FF-E928-4B7E-87DA-9A750B96D9E3&quot; # from Sample Bot Framework\r\n        }\r\n\r\n    url = &quot;https:\/\/speech.platform.bing.com\/recognize?&quot; + urllib.urlencode(params)\r\n    headers = {&quot;Content-type&quot;: &quot;audio\/wav; samplerate={0}&quot;.format(samplerate),\r\n            &quot;Authorization&quot;: &quot;Bearer &quot; + token }\r\n        \r\n    response = requests.post(url, data=data, headers=headers)\r\n\r\n    if response.ok:\r\n        result = response.json()&#x5B;&quot;results&quot;]&#x5B;0]\r\n        return result&#x5B;&quot;lexical&quot;]\r\n    else:\r\n        raise response.raise_for_status()\r\n        \r\nif __name__ == '__main__':\r\n    run(host='\uff08\u30b5\u30fc\u30d0\u30fc\u306e\u30a2\u30c9\u30ec\u30b9\uff09', port=80, debug=False, reloader=True)\r\n<\/pre>\n<p>(Twilio\u30b5\u30fc\u30d0\u30fc\u5074\u306e\u9332\u97f3\u97f3\u58f0\u3092\u524a\u9664\u3059\u308b\u6a5f\u80fd\u3092\u5165\u308c\u3066\u307e\u305b\u3093\u306e\u3067\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8ffd\u52a0\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\uff09<\/p>\n<h4>TwiML\u53d6\u5f97URL\u306e\u8a2d\u5b9a<\/h4>\n<p>Twilio\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u8cfc\u5165\u3057\u305f\u96fb\u8a71\u756a\u53f7\u306e\u3001TwiML\u53d6\u5f97URL\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u96fb\u8a71\u756a\u53f7\uff1e\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u96fb\u8a71\u756a\u53f7\uff1e\u97f3\u58f0\u901a\u8a71\u306e&#8221;A CALL COMES IN&#8221;\u306e\u6b04\u3092\u3001\u4e0a\u8a18\u306eBottle\u30a2\u30d7\u30ea\u304c\u52d5\u3044\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-359\" src=\"http:\/\/mindtech.jp\/wp-content\/uploads\/2017\/02\/img_No-0045.png\" alt=\"\" width=\"924\" height=\"296\" srcset=\"https:\/\/mindtech.jp\/wp-content\/uploads\/2017\/02\/img_No-0045.png 924w, https:\/\/mindtech.jp\/wp-content\/uploads\/2017\/02\/img_No-0045-300x96.png 300w, https:\/\/mindtech.jp\/wp-content\/uploads\/2017\/02\/img_No-0045-768x246.png 768w, https:\/\/mindtech.jp\/wp-content\/uploads\/2017\/02\/img_No-0045-304x97.png 304w, https:\/\/mindtech.jp\/wp-content\/uploads\/2017\/02\/img_No-0045-282x90.png 282w\" sizes=\"auto, (max-width: 924px) 100vw, 924px\" \/><\/p>\n<p>\u3053\u3053\u307e\u3067\u3067\u4f5c\u696d\u306f\u7d42\u4e86\u3067\u3059\u3002\u8cfc\u5165\u3057\u305f\u96fb\u8a71\u756a\u53f7\u306b\u96fb\u8a71\u3092\u304b\u3051\u3066\u3001\u30ac\u30a4\u30c0\u30f3\u30b9\u306b\u5f93\u3063\u3066\u4f55\u304b\u3092\u8a71\u3001\u4efb\u610f\u306e\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u3001\u88cf\u3067\u306f\u201dBing Speech API&#8221;\u3092\u547c\u3073\u51fa\u3057\u3066\u30c6\u30ad\u30b9\u30c8\u5316\u3057\u3001\u305d\u308c\u3092TwiML\u306eSay\u52d5\u8a5e\u3067\u8aad\u307f\u4e0a\u3052\u3092\u884c\u3044\u307e\u3059\u3002\u4e0a\u8a18\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u304a\u5206\u304b\u308a\u306e\u901a\u308a\u3001Twilio\u306e\u9332\u97f3\u97f3\u58f0\u3092\u305d\u306e\u307e\u307e\u8aad\u307f\u8fbc\u3093\u3067\u3001Speech API\u306b\u6e21\u305b\u3070\u30c6\u30ad\u30b9\u30c8\u5316\u3055\u308c\u3066\u304d\u307e\u3059\u3002\u7279\u306b\u5909\u63db\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u53d6\u5f97\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u306f\u4f55\u3089\u304b\u306e\u51e6\u7406\u306b\u4f7f\u3048\u308b\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u5de5\u592b\u3057\u3066\u30a2\u30d7\u30ea\u3092\u4f5c\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\uff08\u81ea\u5206\u306f\u540c\u3058Microsoft\u306eLUIS(language Understanding Intelligent Service)\u306b\u9001\u3063\u3066\u610f\u5473\u89e3\u6790\u3092\u3055\u305b\u308b\u4e8b\u3092\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u3064\u3044\u3066\u306f\u6539\u3081\u3066\u66f8\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002\uff09<\/p>\n<p>\u3067\u306f\u3067\u306f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30de\u30a4\u30f3\u30c9\u30c6\u30c3\u30af\u306e\u51a8\u3067\u3059\u3002 \u5148\u65e5\u3001Twilio\u306e\u30cf\u30c3\u30ab\u30bd\u30f3\u306b\u884c\u3063\u3066\u304d\u307e\u3057\u305f\u3002\u96fb\u8a71\u3092\u4f7f\u3063\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u308d\u3046\u3068\u3059\u308b\u3068\u3001\u97f3\u58f0\u3092\u30c6\u30ad\u30b9\u30c8\u5316\u3057\u305f\u3044\u30cb\u30fc\u30ba\u304c\u51fa\u3066\u304d\u307e\u3059\u3002\u5b9f\u969b\u3001Twilio\u306b\u306f\u30c6\u30ad\u30b9\u30c8\u5316\u306e\u6a5f\u80fd\u3082\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u73fe\u72b6 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6],"tags":[],"class_list":["post-356","post","type-post","status-publish","format-standard","hentry","category-6"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4rHn0-5K","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mindtech.jp\/index.php?rest_route=\/wp\/v2\/posts\/356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mindtech.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mindtech.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mindtech.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mindtech.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=356"}],"version-history":[{"count":8,"href":"https:\/\/mindtech.jp\/index.php?rest_route=\/wp\/v2\/posts\/356\/revisions"}],"predecessor-version":[{"id":366,"href":"https:\/\/mindtech.jp\/index.php?rest_route=\/wp\/v2\/posts\/356\/revisions\/366"}],"wp:attachment":[{"href":"https:\/\/mindtech.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mindtech.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mindtech.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}