{"id":5054,"date":"2017-04-09T17:46:15","date_gmt":"2017-04-09T16:46:15","guid":{"rendered":"http:\/\/phoenixgamedevelopment.com\/blog\/?p=5054"},"modified":"2017-04-09T18:21:07","modified_gmt":"2017-04-09T17:21:07","slug":"p0-ms2-part-149-ai-speech-to-text-text-to-speech-morph-3d-character-system","status":"publish","type":"post","link":"https:\/\/phoenixgamedevelopment.com\/blog\/p0-ms2-part-149-ai-speech-to-text-text-to-speech-morph-3d-character-system\/","title":{"rendered":"P0-MS2: Part 149: AI: Speech to Text, Text to Speech, Morph 3D Character System"},"content":{"rendered":"<p>The last major objective in Milestone 2 is to integrate the Morph 3D character creation system. Since the art tools have recently been released, it it now possible to create custom content for the system. I was waiting for this update before integrating it.<\/p>\n<p>Before I do this, I wanted to implement voice recognition into the project.<\/p>\n<p>The reason why I think this is important at this early stage is that firstly, the game will support virtual reality, and typing in VR is not comfortable or, really, practical. Secondly, I think that voice recognition will improve immersion and provide more realism to the gameplay.<\/p>\n<p>After some research, I have implemented the <a href=\"https:\/\/cloud.google.com\/speech\/\">Google Cloud Speech API<\/a> into the project. This is not a free solution, but you do get 60 minutes free per month, so it should be essentially free as long as you don&#8217;t go over that. The accuracy of this system is exceptional, provided you speak carefully, it is almost 100% accurate. The problem is that it is web-based, it sends data to a server and then sends the response back to the client, this make it slow, although it is still technically &#8220;realtime&#8221;.<\/p>\n<p>I could not implement &#8220;Dictation Recognizer&#8221; into my project (this is the standard Windows speech API) because apparently the Windows 10 anniversary update broke the Dictation Recognizer in 64-bit builds of unity (the editor and game exe). However, the upcoming windows 10 &#8220;Creators Update&#8221; is supposed to fix this, so I can evaluate &#8220;Dictation Recognizer&#8221; then. I suspect this system won&#8217;t be as accurate as Google&#8217;s system, but it is free, and client side, so it should be faster.<\/p>\n<p>There are a few other speech api&#8217;s out there, but they either require a monthly subscription, or they do not support real-time streaming speech recognition.<\/p>\n<p>I have combined the Voice recognition system with the AIML chat bot system, so I can actually &#8220;talk&#8221; to the bot verbally now instead of having to type. I intend to add Text to Speech functionality in the next week or so, so that the bot can &#8220;talk&#8221; back.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The last major objective in Milestone 2 is to integrate the Morph 3D character creation system. Since the art tools have recently been released, it it now possible to create custom content for the system. I was waiting for this update before integrating it. Before I do this, I wanted to implement voice recognition into [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,17,10,11],"tags":[],"class_list":["post-5054","post","type-post","status-publish","format-standard","hentry","category-astral-realms","category-p-0","category-software-and-games","category-spiritus-astrum","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"aioseo_notices":[],"builder_content":"","_links":{"self":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/5054"}],"collection":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/comments?post=5054"}],"version-history":[{"count":3,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/5054\/revisions"}],"predecessor-version":[{"id":5058,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/5054\/revisions\/5058"}],"wp:attachment":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/media?parent=5054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/categories?post=5054"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/tags?post=5054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}