Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct here to familiarize yourself with the rules and how to post constructively.

  2. Unity 2022.1 is now available as the latest Tech release.
    Dismiss Notice
  3. Improve your project's performance with our new guide on profiling in Unity.
    Dismiss Notice

Audio free runtime text to speech plugin (windows only)

Discussion in 'Audio & Video' started by mgear, Dec 20, 2019.

  1. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    7,576
    needed a quick tts plugin for a small game thingy, so gobbled this together :
    https://github.com/unitycoder/UnityRuntimeTextToSpeech

    its not pretty (also editor can silently crash when exit, but works fine otherwise so far),
    but its free and standalone (doesnt use windows system voices etc).

    there is link to example voice in the readme.
     
    ufo359 likes this.
  2. id0

    id0

    Joined:
    Nov 23, 2012
    Posts:
    448
    Code (CSharp):
    1. NativeDllException: Could not load DLL "libespeak-ng.dll" at path
    in Windows 7 Unity 2020 alpha
     
  3. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    7,576
    tested on 2020 win10, works here.. not sure what could cause that.
    (and you cloned the whole project and have the dll in the root ?)
     
  4. id0

    id0

    Joined:
    Nov 23, 2012
    Posts:
    448
    Yes, just download and open, not change anything. When I press "play" I got this errors:

    Untitled-1.jpg
     
    Last edited: Jan 26, 2020
  5. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    7,576
    hmm.. i'll test on another pc tomorrow. (if its related to something i have installed on this pc, i did install the espeak last time)
     
  6. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    7,576
  7. id0

    id0

    Joined:
    Nov 23, 2012
    Posts:
    448
    Too bad. I would like my androids talking...
     
  8. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    7,576
  9. id0

    id0

    Joined:
    Nov 23, 2012
    Posts:
    448
    No, no, true androids, robots in my game :) Oh well...
     
  10. tutai151097

    tutai151097

    Joined:
    Jan 30, 2019
    Posts:
    1
    how to change the language ? Thanks
     
  11. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    7,576
  12. bmangameswhat

    bmangameswhat

    Joined:
    Apr 30, 2019
    Posts:
    5
    Been playing with this and it works great on Windows 10 so far. I'm having trouble with SSML tags though. If I pass in a string to Say() with something like <prosody rate= '5'> for example, it reads out the content of the tag. Do you have any examples handy of how to format the SSML?
     
  13. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    7,576
  14. Krakt

    Krakt

    Joined:
    Jan 19, 2021
    Posts:
    1
    Hi,
    I'm pretty new to Unity. I try to import your plugin with the package manager but nothing happen. Can you tell me how do you import it in a project pls?

    I try to check it to test if it work for a small app with WebGL.

    Tank you
     
  15. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    7,576
  16. rubenbr83

    rubenbr83

    Joined:
    May 31, 2021
    Posts:
    2
    Im new on unity. it is possible to change the language? How?
     
  17. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    7,576
  18. specularpro

    specularpro

    Joined:
    Nov 8, 2017
    Posts:
    6
    Any chance on getting this to run on Android? I'm looking to add TTS to Quest 2 and Oculus decided to strip Pico TTS from the device. So most of the assets in the Unity store don't work as they rely on native features. I've tested web APIs like goolge to get TTS and they work, but I can't rely on internet so I want an embedded solution. Thoughts? Also, thanks for the work!
     
  19. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    7,576
unityunity