{"id":154,"date":"2023-03-21T20:05:10","date_gmt":"2023-03-21T12:05:10","guid":{"rendered":"https:\/\/doc.orionstar.com\/en\/?post_type=lsvr_kba&#038;p=154"},"modified":"2023-03-21T20:05:10","modified_gmt":"2023-03-21T12:05:10","slug":"voice-commands","status":"publish","type":"lsvr_kba","link":"https:\/\/doc.orionstar.com\/en\/knowledge-base\/voice-commands\/","title":{"rendered":"Voice Commands"},"content":{"rendered":"\n<p>Use Google Cloud to make your robot respond to voice commands in all languages.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><thead><tr><th>GreetBot<\/th><th>Mini<\/th><th>Lucki<\/th><th>DeliverBot<\/th><th>BigScreenBot<\/th><\/tr><\/thead><tbody><tr><td>Yes<\/td><td>Yes<\/td><td>Yes<\/td><td>Yes<\/td><td>Yes<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 id=\"set-up-google-account-set-up-google-account-step-1-provide-account-information\"><strong>Step 1: Provide account information<\/strong><a href=\"https:\/\/ainirobot.gatsbyjs.io\/docs\/voice\/voice-commands\/#set-up-google-account-set-up-google-account-step-1-provide-account-information\"><\/a><\/h2>\n\n\n\n<ol start=\"1\">\n<li>Apply for a Google gcp service account<\/li>\n\n\n\n<li>Provide account information:\n<ul>\n<li>google service credentials ( json file )<\/li>\n\n\n\n<li>the id of the associated enterprise ( enterprise_id )<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Provide the above information to our sales engineer. We will deploy it according to the information you provide.<\/li>\n<\/ol>\n\n\n\n<h2 id=\"set-up-google-account-set-up-google-account-step-2-how-to-provide-google-service-credentials\"><strong>Step 2: How to provide Google service credentials?<\/strong><a href=\"https:\/\/ainirobot.gatsbyjs.io\/docs\/voice\/voice-commands\/#set-up-google-account-set-up-google-account-step-2-how-to-provide-google-service-credentials\"><\/a><\/h2>\n\n\n\n<h3 id=\"set-up-google-account-set-up-google-account-create-project\">Create project<a href=\"https:\/\/ainirobot.gatsbyjs.io\/docs\/voice\/voice-commands\/#set-up-google-account-set-up-google-account-create-project\"><\/a><\/h3>\n\n\n\n<p>Quick link:&nbsp;<a href=\"https:\/\/console.cloud.google.com\/projectcreate\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/console.cloud.google.com\/projectcreate<\/a><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/ainirobot.gatsbyjs.io\/assets\/docs\/kyma\/master\/voice-commands\/docs\/assets\/google1.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/ainirobot.gatsbyjs.io\/assets\/docs\/kyma\/master\/voice-commands\/docs\/assets\/google1.png\" alt=\"\"\/><\/a><\/figure><\/div>\n\n\n<h3 id=\"set-up-google-account-set-up-google-account-create-a-service-account\"><strong>Create a service account<\/strong><a href=\"https:\/\/ainirobot.gatsbyjs.io\/docs\/voice\/voice-commands\/#set-up-google-account-set-up-google-account-create-a-service-account\"><\/a><\/h3>\n\n\n\n<ol start=\"1\">\n<li>Select your project and click &#8216;Create Credentials&#8217;<a href=\"https:\/\/ainirobot.gatsbyjs.io\/assets\/docs\/kyma\/master\/voice-commands\/docs\/assets\/google2.png\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><\/li>\n\n\n\n<li>Select &#8216;Service account&#8217;<a href=\"https:\/\/ainirobot.gatsbyjs.io\/assets\/docs\/kyma\/master\/voice-commands\/docs\/assets\/google3.png\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><\/li>\n\n\n\n<li>After completing the 3-step configuration of the service account, click &#8216;Done&#8217;.&nbsp;<a href=\"https:\/\/ainirobot.gatsbyjs.io\/assets\/docs\/kyma\/master\/voice-commands\/docs\/assets\/google4.png\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><\/li>\n\n\n\n<li>Your service account has been generated<a href=\"https:\/\/ainirobot.gatsbyjs.io\/assets\/docs\/kyma\/master\/voice-commands\/docs\/assets\/google5.png\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><\/li>\n<\/ol>\n\n\n\n<h3 id=\"set-up-google-account-set-up-google-account-create-dialogflow-agent\"><strong>Create Dialogflow Agent<\/strong><a href=\"https:\/\/ainirobot.gatsbyjs.io\/docs\/voice\/voice-commands\/#set-up-google-account-set-up-google-account-create-dialogflow-agent\"><\/a><\/h3>\n\n\n\n<p>New dialogflow agent:&nbsp;<a href=\"https:\/\/dialogflow.cloud.google.com\/#\/newAgent\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/dialogflow.cloud.google.com\/#\/newAgent<\/a>&nbsp;When creating a new agent, name it, select the language, and select the google project that has been created. Click &#8216;Create&#8217; after the 3 steps are completed.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/ainirobot.gatsbyjs.io\/assets\/docs\/kyma\/master\/voice-commands\/docs\/assets\/google6.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/ainirobot.gatsbyjs.io\/assets\/docs\/kyma\/master\/voice-commands\/docs\/assets\/google6.png\" alt=\"\"\/><\/a><\/figure><\/div>\n\n\n<h3 id=\"set-up-google-account-set-up-google-account-get-the-key\"><strong>Get the key<\/strong><a href=\"https:\/\/ainirobot.gatsbyjs.io\/docs\/voice\/voice-commands\/#set-up-google-account-set-up-google-account-get-the-key\"><\/a><\/h3>\n\n\n\n<ol start=\"1\">\n<li>In &#8216;Google Project &#8211; Credentials &#8211; Service Accounts&#8217;, click your the service account (email). Create new key.<a href=\"https:\/\/ainirobot.gatsbyjs.io\/assets\/docs\/kyma\/master\/voice-commands\/docs\/assets\/google7.png\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><\/li>\n\n\n\n<li>Select key type as &#8216;JSON&#8217;, and click Create. Then save the json file.<a href=\"https:\/\/ainirobot.gatsbyjs.io\/assets\/docs\/kyma\/master\/voice-commands\/docs\/assets\/google8.png\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><\/li>\n<\/ol>\n\n\n\n<h3 id=\"set-up-google-account-set-up-google-account-edit-account-permission\"><strong>Edit Account Permission<\/strong><a href=\"https:\/\/ainirobot.gatsbyjs.io\/docs\/voice\/voice-commands\/#set-up-google-account-set-up-google-account-edit-account-permission\"><\/a><\/h3>\n\n\n\n<p>Click IAM, under the tab &#8216;Permissions&#8217;, edit your service account.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/ainirobot.gatsbyjs.io\/assets\/docs\/kyma\/master\/voice-commands\/docs\/assets\/google9.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/ainirobot.gatsbyjs.io\/assets\/docs\/kyma\/master\/voice-commands\/docs\/assets\/google9.png\" alt=\"\"\/><\/a><\/figure><\/div>\n\n\n<p>Set the role &#8216;Dialogflow API Client&#8217; to your service account, then click &#8216;SAVE&#8217; to complete.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/ainirobot.gatsbyjs.io\/assets\/docs\/kyma\/master\/voice-commands\/docs\/assets\/google10.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/ainirobot.gatsbyjs.io\/assets\/docs\/kyma\/master\/voice-commands\/docs\/assets\/google10.png\" alt=\"\"\/><\/a><\/figure><\/div>\n\n\n<p>When you finish the steps above, please provide your google service credentials (json file) to our sales engineer.<\/p>\n\n\n\n<h2 id=\"set-up-google-account-set-up-google-account-step3-dialogflow-configuration-recommendations\"><strong>Step3: dialogflow configuration recommendations<\/strong><a href=\"https:\/\/ainirobot.gatsbyjs.io\/docs\/voice\/voice-commands\/#set-up-google-account-set-up-google-account-step3-dialogflow-configuration-recommendations\"><\/a><\/h2>\n\n\n\n<p>The intent configuration can define related rules with the machine side to ensure that it can take effect on the side.<\/p>\n\n\n\n<ul>\n<li>Develop new functions: domains and intents that are not available in the ob background; intents in the dialogflow background can be output in the format desired by their apk;Tips: It is recommended to configure in the dialog background according to the intent rules provided by us. We will split doamin and intent and then issue them.<\/li>\n<\/ul>\n\n\n\n<ul>\n<li>To trigger the existing functions of the machine, confirm that the domain and intent of the function are available in the ob background; and the dialog background needs to be configured in the format of xx::yy.<\/li>\n\n\n\n<li>Learn more about Dialogflow:&nbsp;<a href=\"https:\/\/cloud.google.com\/dialogflow\/es\/docs\/intents-overview\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/cloud.google.com\/dialogflow\/es\/docs\/intents-overview<\/a><\/li>\n<\/ul>\n\n\n\n<h2 id=\"set-up-google-account-set-up-google-account-step-4-faq\"><strong>Step 4: FAQ<\/strong><a href=\"https:\/\/ainirobot.gatsbyjs.io\/docs\/voice\/voice-commands\/#set-up-google-account-set-up-google-account-step-4-faq\"><\/a><\/h2>\n\n\n\n<ol start=\"1\">\n<li>You may get this error:<code>rpc error: code = PermissionDenied desc = IAM permission'dialogflow.sessions.detectIntent' on'projects\/orion-314912\/agent' denied.<\/code>This is an account authorization problem, please confirm whether you grant &#8216;dialogflow api client&#8217; permission to the service account.<\/li>\n\n\n\n<li>The dialog background configuration content is not sent normally, return to other, other. Confirm whether the responses are set in the dialogflow.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Use Google Cloud to make your robot respond to voice commands in all languages. GreetBot Mini Lucki DeliverBot BigScreenBot Yes Yes Yes Yes Yes Step 1: Provide account information Step 2: How to provide Google service credentials? Create project Quick link:&nbsp;https:\/\/console.cloud.google.com\/projectcreate Create a service account Create Dialogflow Agent New dialogflow agent:&nbsp;https:\/\/dialogflow.cloud.google.com\/#\/newAgent&nbsp;When creating a new agent, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":[],"lsvr_kba_cat":[7],"lsvr_kba_tag":[],"_links":{"self":[{"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_kba\/154"}],"collection":[{"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_kba"}],"about":[{"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/types\/lsvr_kba"}],"author":[{"embeddable":true,"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/comments?post=154"}],"version-history":[{"count":1,"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_kba\/154\/revisions"}],"predecessor-version":[{"id":155,"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_kba\/154\/revisions\/155"}],"wp:attachment":[{"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/media?parent=154"}],"wp:term":[{"taxonomy":"lsvr_kba_cat","embeddable":true,"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_kba_cat?post=154"},{"taxonomy":"lsvr_kba_tag","embeddable":true,"href":"https:\/\/doc.orionstar.com\/en\/wp-json\/wp\/v2\/lsvr_kba_tag?post=154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}