{"id":5136,"date":"2019-12-20T22:48:32","date_gmt":"2019-12-20T14:48:32","guid":{"rendered":"https:\/\/unitycoder.com\/blog\/?p=5136"},"modified":"2020-02-21T21:54:30","modified_gmt":"2020-02-21T19:54:30","slug":"free-runtime-text-to-speech-plugin","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2019\/12\/20\/free-runtime-text-to-speech-plugin\/","title":{"rendered":"(Free) Runtime Text To Speech Plugin"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"476\" height=\"315\" data-attachment-id=\"5137\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2019\/12\/20\/free-runtime-text-to-speech-plugin\/image-1-6\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2019\/12\/image-1.png?fit=476%2C315&amp;ssl=1\" data-orig-size=\"476,315\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2019\/12\/image-1.png?fit=476%2C315&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2019\/12\/image-1.png?resize=476%2C315&#038;ssl=1\" alt=\"\" class=\"wp-image-5137\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2019\/12\/image-1.png?w=476&amp;ssl=1 476w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2019\/12\/image-1.png?resize=300%2C199&amp;ssl=1 300w\" sizes=\"auto, (max-width: 476px) 100vw, 476px\" \/><figcaption>some waveform image &#8211; just to fill main image slot..<\/figcaption><\/figure>\n\n\n\n<p>Needed simple TTS plugin for a small unity windows game that i&#8217;m working on.. I know asset store has few, but they seem to rely on Windows Speech platform voices, and one plugin that was completely standalone didnt really have good enough speech quality..<br><br>First i tried to use <a rel=\"noreferrer noopener\" aria-label=\"Mozilla-TTS (opens in a new tab)\" href=\"https:\/\/github.com\/mozilla\/TTS\" target=\"_blank\">Mozilla-TTS<\/a> (to generate voice files in advance), but it was impossible to get it to compile due to some weird tricks needed. Then found <a rel=\"noreferrer noopener\" aria-label=\"espeak-ng (opens in a new tab)\" href=\"https:\/\/github.com\/espeak-ng\/espeak-ng\" target=\"_blank\">espeak-ng<\/a>, which seems good enough quality and already had <a rel=\"noreferrer noopener\" aria-label=\"dotnet wrapper (opens in a new tab)\" href=\"https:\/\/github.com\/parhamdoustdar\/espeak-ng-wrapper\" target=\"_blank\">dotnet wrapper<\/a> available! I Compiled speak dll with VisualStudio, had few issues with the wrapper, but got them fixed &#8211; compare Client.cs with the original. Next issue was DLL kept crashing, fixed it by using <a rel=\"noreferrer noopener\" aria-label=\"DLLManipulator (opens in a new tab)\" href=\"https:\/\/github.com\/MCpiroman\/UnityNativeTool\" target=\"_blank\">DLLManipulator<\/a>.<\/p>\n\n\n\n<p><strong>Unity project:<\/strong><br><a href=\"https:\/\/github.com\/unitycoder\/UnityRuntimeTextToSpeech\">https:\/\/github.com\/unitycoder\/UnityRuntimeTextToSpeech<\/a><\/p>\n\n\n\n<p><strong>Note: <\/strong><br>See github issues for known issues and ideas to improve this.<\/p>\n\n\n\n<p><strong>Updates:<\/strong><br>Now outputs to AudioSource component, thanks to updates from @autious fork.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Needed simple TTS plugin for a small unity windows game that i&#8217;m working on.. I know asset store has few, but they seem to rely on Windows Speech platform voices, and one plugin that was completely standalone didnt really have good enough speech quality.. First [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5137,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_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},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[1142,28,403,1140,1141,1139],"class_list":["post-5136","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-native","tag-plugin","tag-runtime","tag-speech","tag-texttospeech","tag-tts"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2019\/12\/image-1.png?fit=476%2C315&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-1kQ","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=5136"}],"version-history":[{"count":4,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5136\/revisions"}],"predecessor-version":[{"id":5186,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5136\/revisions\/5186"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/5137"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=5136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=5136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=5136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}