Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

RT-Voice - Run-time text-to-speech solution

Discussion in 'Assets and Asset Store' started by Stefan-Laubenberger, Jul 10, 2015.

  1. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    Hi Hormic

    Can you test it with the "01-Speech"-demo scene or with the "Test-Drive"-function in RTV?
    Are you able to speak with both voices?


    Cheers
    Stefan
     
  2. Hormic

    Hormic

    Joined:
    Aug 12, 2014
    Posts:
    251
    thanks for your quick answer, :)
    Yes in the test drive i can choose Zira (/index 1) and the preview works without problems.
    Also in 01-speech
    But in my scene only Hedda is speaking.

    maybe it would be nice to have this drop down menu also in the actor script to assign the voice directly.
     
    Last edited: Jan 6, 2017
  3. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    Hmm, that seems like a bug in Dialogue System... Did you ask Tony (the creator of DS)?
     
    Hormic likes this.
  4. Hormic

    Hormic

    Joined:
    Aug 12, 2014
    Posts:
    251
    no, i haven't, but i will try to contact him, thank you!
     
  5. TonyLi

    TonyLi

    Joined:
    Apr 10, 2012
    Posts:
    12,670
    Hi @Hormic - I saw your post, and I'm writing a reply now.
     
    Hormic and Stefan-Laubenberger like this.
  6. eleicht

    eleicht

    Joined:
    Apr 21, 2016
    Posts:
    9
    Wow, this took me a while to find your answer, because the error thrown looks like the .dll or Unity had an error itself.
    Thanks for the quick support by yourself, but 2.6.1 doesn't seem to be submitted, at least the assetstore says it's still 2.6.0.
     
  7. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    Hi emthele

    It is submitted but is still pending in the UAS-queue :-(
    I hope it will be released soon!


    So long,
    Stefan
     
  8. Ezzra

    Ezzra

    Joined:
    Dec 9, 2015
    Posts:
    25
    Hi Stefan,

    I occasionally get this exception:

    Could not get any voices!
    System.InvalidOperationException: The process must exit before getting the requested information.
    at System.Diagnostics.Process.get_ExitCode () [0x00000] in <filename unknown>:0
    at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:get_ExitCode ()
    at Crosstales.RTVoice.Provider.VoiceProviderMacOS.‍‫‪‍‮‎‭‫‌‭‮‬‬‫‍‍‬‮‍‌‮‮ (System.Diagnostics.Process ) [0x00000] in <filename unknown>:0
    at Crosstales.RTVoice.Provider.VoiceProviderMacOS.get_Voices () [0x00000] in <filename unknown>:0
    UnityEngine.Debug:LogError(Object)
    Crosstales.RTVoice.Provider.VoiceProviderMacOS:‍‮‮‌‎‮‬‌‎‍‌‌‍‎‎‫‭‪‮‭‏‮‮(Object)
    Crosstales.RTVoice.Provider.VoiceProviderMacOS:get_Voices()
    Crosstales.RTVoice.Speaker:get_Cultures()
    OptionsWindow:InitialiseVoiceOptions() (at Assets/Scripts/OptionsWindow.cs:77)
    WelcomeWindow:processDemoRequest() (at Assets/Scripts/WelcomeWindow.cs:314)
    UnityEngine.EventSystems.EventSystem:Update()

    Please would you give me a pointer on how I can avoid the exception?

    Regards,
    Ezzra.
     
  9. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    Hi Ezzra

    First question: do you use the latest version 2.6.1 of RTVoice?

    However, I'm not totally sure what's causing this behaviour... Can you please try this in your "OptionsWindow.cs":
    1. Add an Awake()-method and call "Speaker.Voices" (important: don't call additional Speaker-methods!)
    2. Then proceed with "Speaker.Cultures" in your "InitaliseVoiceOptions"-method (which should be called from the Start()-method)

    I hope this helps, please let me know.


    Cheers
    Stefan
     
  10. Ezzra

    Ezzra

    Joined:
    Dec 9, 2015
    Posts:
    25

    I was at 2.5.2 so I have now updated to 2.6.1 and carried out the changes above but I am still receiving the error.

    Thanks

    Ezzra
     
    Last edited: Jan 25, 2017
  11. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    Ok, I'm glad it's working now.

    Cheers
    Stefan
     
  12. Ezzra

    Ezzra

    Joined:
    Dec 9, 2015
    Posts:
    25
    I ran my app on an iPad and RTVoice keeps crashing. The same code runs on my MAC and Windows without error. The error message and stack trace in the XCode console is:


    OptionsWindow.Awake() Exception calling Speaker.Voices, error: The type initializer for 'Crosstales.RTVoice.Util.Helper' threw an exception.
    at Crosstales.RTVoice.Speaker.get_Voices () [0x00000] in <filename unknown>:0
    at OptionsWindow.Awake () [0x00000] in <filename unknown>:0

    NullReferenceException: A null value was found where an object instance was required.
    at <Module>.‏‍‍‌‏‌‎‌‍‎‏‌[-] (UInt32 ) [0x00000] in <filename unknown>:0
    at Crosstales.RTVoice.Speaker.OnEnable () [0x00000] in <filename unknown>:0

    It doesn't seem to be finding or loading the voices information on the iPad.
     
  13. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    This could be an IL2CPP-problem.
    Please send me an email with your invoice and I could help you further.


    So long,
    Stefan
     
  14. Ezzra

    Ezzra

    Joined:
    Dec 9, 2015
    Posts:
    25
    Hi Stefan,

    I reckon it is the usual stripping problem but I cannot find anything in your documentation about what to put in link.xml etc to switch it off for RTVoice. Have I missed it in the docs?

    Regards,
    Errol.
     
  15. Ezzra

    Ezzra

    Joined:
    Dec 9, 2015
    Posts:
    25
    I guessed it was this insert in link.xml:

    <assemblyfullname="Crosstales.RTVoice"preserve="all"/>

    but the above entry caused the iOS build to fail with exception: Applications/Unity/Unity 5.4.2.app/Contents/Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe did not run properly!

    Please advise.
     
  16. Ezzra

    Ezzra

    Joined:
    Dec 9, 2015
    Posts:
    25
    Hi Stefan,

    sorry, I just realised I should be emailing you! I have emailed you.

    Many thanks,

    Ezzra
     
  17. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    Important:

    If you're building for WSA (UWP), you will need the PRO-version with the extracted source code.
     
  18. kbunity_lobrino

    kbunity_lobrino

    Joined:
    Feb 2, 2017
    Posts:
    3
    Hi Stefan,

    I just brought your product and is excited t use it. But suddenly at my case there was an error saying "
    Assets/crosstales/RTVoice/Plugins/Scripts/Provider/VoiceProviderWSA.cs(18,17): error CS0246: The type or namespace name `RTVoiceUWPBridge' could not be found. Are you missing a using directive or an assembly reference?"
    Can you please help me. I'm a beginner.
     
  19. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    Hi

    Sure, I will help :)

    Some questions:
    1. Which build platform are you using?
    2. Which RTVoice-version? And PRO or standard?
    3. Which Unity-version?
    4. Which OS?

    Cheers
    Stefan
     
  20. kbunity_lobrino

    kbunity_lobrino

    Joined:
    Feb 2, 2017
    Posts:
    3
    I'm using it on windows/standalone platform
    RTVoice 2.6.2 PRO
    Unity 5.4
    windows 10 x64 OS

    thanks in advance.
     
  21. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    Can you please verify, that the "RTVoiceUWPBridge.dll" under "Assets\crosstales\RTVoice\Plugins\WSA\Stub" looks like this:

    upload_2017-2-2_22-11-11.png

    Does it help?


    Cheers
    Stefan
     
  22. Pandademic42

    Pandademic42

    Joined:
    Sep 20, 2015
    Posts:
    1
    Hi there!
    I used the RT Voice asset for my game "Say What?", based off of the kids game "Telephone". I love how easy it was to implement!

    However, I have a game mechanic that distorts the audio on the audio listener every round. RT Voice seems to bypass that audio listener filter when playing the game on mobile, and no distortion is added.

    Is there a way to correct this?

    Let me know ASAP. Thank you.

    (I am using Unity 5.5, Playmaker, and PRO asset pack)
     
  23. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    Hi :)

    I just wrote you an email.


    So long,
    Stefan
     
  24. alliyfrauenpreis

    alliyfrauenpreis

    Joined:
    Jan 27, 2017
    Posts:
    2
    Hi Stefan,

    Quick question for you! I am working on a Unity game where we are loading all the TTS .wav files at the beginning to be played throughout the game. However, when I use Speaker.Speak, the audio plays in addition to generating the file. Is there any way for me to use RT-voice to generate the files without immediately playing them? I've tried lowering the volume to zero, but it didn't seem to work.

    Thank you!
     
  25. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    Hi

    You can set the Speak-method parameter "speakImmediately" to false and it it should work.
    For more details, please take a look at the api:

    http://www.crosstales.com/en/assets/rtvoice/api/class_crosstales_1_1_r_t_voice_1_1_speaker.html



    Cheers
    Stefan
     
  26. stevenairbag

    stevenairbag

    Joined:
    Dec 27, 2013
    Posts:
    1
    Awesome product. Just wondering - a while back there was a request for respecting markup in the text (saml) or similar. I don't see an update anywhere else - don't suppose it became something you've put in?

    In my case I'd probably settle for just being able to insert 'pauses' into the flow. Any thoughts, other than tracking phonemes manually and inserting a pause at the right time...

    Steve
    (using pro version and loving it)
     
  27. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    Hi Steve

    The only built-in-TTS system that allows SSML is Windows-standalone.
    We have this request on our "wish list" but it's a lot of work and we're not sure if it's worth it.

    Unfortunately, I don't have a good idea aside your solution, but I will think about it...


    Cheers
    Stefan
     
    Last edited: Mar 3, 2017
  28. joaobsneto

    joaobsneto

    Joined:
    Dec 10, 2009
    Posts:
    152
    Does it use Windows Voices? It supports brazilian portuguese? In my project we use Mac and Windows and both platform need brazilian voices, but it's just in the editor. Can I use this plugin? Thanks!
     
  29. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    Yes, it uses the installed TTS voices on all supported platforms. If you have installed a brazilian voice on your system, you can use it :)

    I hope this helps.


    Cheers
    Stefan
     
    joaobsneto likes this.
  30. alliyfrauenpreis

    alliyfrauenpreis

    Joined:
    Jan 27, 2017
    Posts:
    2

    Hi Stefan,

    Thanks so much for your quick reply. I tried using that parameter and setting it to false, but when I start the scene I still notice the sound playing out loud immediately.

    This is a simplified version of the call to the Speak method that I am using, do you happen to have any ideas about what I may be using wrong?

    Speaker.Speak (Text, null, null, false, 1, 1, Application.dataPath + PathName, 1);
     
  31. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    Hello again

    I found the problem: it's because we thought that a "speakImmediately" in Speak with no AudioSource makes no sense. So we always changed "speakImmediately" to true...

    But since it looks like you use RTV to generate audio files, this isn't working for you.
    We already fixed this in the current release version.

    Three possibilities to solve this issue:
    1. the fastest workaround is to add an AudioSource in the "Speak"-call (2nd parameter).
    2. if you own the PRO-version, we can send you an easy fix.
    3. send me an email with your invoice and I can give you the current version.


    So long,
    Stefan
     
  32. lreginato

    lreginato

    Joined:
    Nov 19, 2016
    Posts:
    3
    Hi Stefan

    Im making a kids game for cellphones and i need a TTS who can work in Latin American Spanish.

    Questions:

    1- What´s the difference between Standard and Pro versions?
    2- If I want to use RTV for more projects, do i have to pay a new license?
    3- I get the 2.7.0 version buying now? (in the asset store, version 2.6.2 is displayed)

    Cheers
    Leo
     
  33. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    Hi Leo

    Thank you for your interest in our product! :)

    Here are the answers to your questions:
    1. With the PRO-version you get the C# source-code (to modify it on your own and it's also needed for WSA (UWP)-builds).
    2. The price is per Unity developer seat and not per project. This means you can create as many projects as you like without extra costs.
    3. 2.7.0 is currently pending in the review queue from UAS. You can buy it now and send me an email with the invoice - then I will send you the latest version in return.
    Have a nice weekend!


    Cheers
    Stefan
     
  34. Amirh18

    Amirh18

    Joined:
    Mar 28, 2016
    Posts:
    16
    I am having a bit of trouble combining your asset with Salsa
    I am uploading a video file of a screen recording.



    The demo works and I copied everything but in my scene the audio won't play
    Also, why does the pitch bar disappears ? Thanks
     
  35. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    Hi

    I think you should add the skinned mesh renderer to the Salsa-component and use auto-link to setup the character - please try this.
    This is the setup of the "boxHead" from our demo:

    upload_2017-3-24_3-33-27.png


    About the pitch: this is because of our script "Platform Enabler" on the "_Scene"-object... Windows and OSX don't have a pitch in their TTS-system, so it's removed :)

    I hope this helps!


    Cheers
    Stefan
     
  36. Amirh18

    Amirh18

    Joined:
    Mar 28, 2016
    Posts:
    16
    Hi,
    Thanks for your replay. I've added the skin mash renderer and pressed auto link but still no sound.
    It's not a sound problem of course. Boxhead recieves a blank named audio file to the audio source and the salsa3d component but mine never does. I am sure it's something small that I am missing but I'm stuck at this for a couple of days:
     

    Attached Files:

  37. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    What happens if you manually add an audio clip - still no sound?
     
  38. Amirh18

    Amirh18

    Joined:
    Mar 28, 2016
    Posts:
    16
    Hi.
    If i add the sound manually everythiing works great.
    1 minute video showing this and all my settings for the character:



    Thanks
     
  39. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    Hello again

    I think it must be a problem with your character-setup and SALSA.
    Unfortunately, I don't see where the problem is... :(

    I tested it and created a new simple demo scene based on SALSAs "Ethan"-demo. I only disabled their "_GameManager" and "MainCamera":



    As you can see, everything works on my side.
    If you can't figure out the problem, just write me an email.

    Cheers
    Stefan
     

    Attached Files:

  40. lscroberto

    lscroberto

    Joined:
    Mar 28, 2017
    Posts:
    9
    Do you have voices in Mexican Spanish?
     
  41. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    Hi

    We don't deliver any voices, so it depends on your OS...

    For Windows you can download and install "Hilda" and macOS should have a Mexican Spanish voice per default.
    You can also use MaryTTS with our asset - just search for voices or train your own :)

    I hope this helps.


    Cheers
    Stefan
     
  42. McSwan

    McSwan

    Joined:
    Nov 21, 2013
    Posts:
    129
    Hi,

    Just bought the non-pro rt voice. Running on Windows. Imported it and got these error and "fixed" them below. Not sure why the Helper is missing.

    Assets/crosstales/RTVoice/Demo/Scripts/GUISpeech.cs(69,24): error CS0234: The type or namespace name `isIOSPlatform' does not exist in the namespace `Helper'. Are you missing an assembly reference?

    Assets/crosstales/RTVoice/Demo/Scripts/GUISpeech.cs(80,24): error CS0234: The type or namespace name `hasBuiltInTTS' does not exist in the namespace `Helper'. Are you missing an assembly reference?


    Code (CSharp):
    1.  void Update()
    2.         {
    3.             if (!lastCulture.Equals(Culture.text))
    4.             {
    5.                 buildVoicesList();
    6.  
    7.                 lastCulture = Culture.text;
    8.             }
    9.  
    10.             if ((Application.platform == RuntimePlatform.IPhonePlayer) /*Helper.isIOSPlatform*/ && Time.frameCount % 60 == 0 && !buildVoicesListIOS)
    11.                
    12.             {
    13.                 buildVoicesList();
    14.                 buildVoicesListIOS = true;
    15.             }
    16.         }
    17.  
    18.         public void OnDestroy()
    19.         {
    20.             Speaker.OnProviderChange -= onProviderChange;
    21.  
    22.             if (/*Helper.hasBuiltInTTS*/ true)
    23.             {
    24.                 Speaker.MaryMode = false;
    25.             }
    26.         }
     
  43. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    Hi McSwan

    This is really strange... :-(
    I just verified it on our side and everything works fine - no errors at all!

    Please go to "Assets/crosstales/RTVoice/Plugins" and open it in Explorer.
    Then right-click on RTVoice.dll and select "Properties". The details for the current version 2.7.0 should look like this:

    upload_2017-3-31_14-27-53.png

    Have you the same settings?
    Btw, which Unity-version are you using?


    Cheers
    Stefan
     
  44. McSwan

    McSwan

    Joined:
    Nov 21, 2013
    Posts:
    129
    upload_2017-4-3_8-48-57.png
    Hi,

    Sounds like it must be something related to the computer (or local issue) I'm using. Our target Platform is windows, so there isn't really an issue. It works, so not worth worrying about. Nice asset too btw!
    Thanks for your help!
     
  45. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    Ok, I'm happy it's working now.
    If you have any questions or suggestions, don't hesitate to send me an email.

    So long,
    Stefan
     
  46. PhoenixAdvanced

    PhoenixAdvanced

    Joined:
    Sep 30, 2016
    Posts:
    316
    Hi,

    I am interested in RT-Voice, but I was wondering what the situation is regarding adding additional voices.

    I understand that RT-Voice uses the standard windows voices, would it be possible to add more? If so, could these voices be packaged with a game, or would the user need to actually install additional voices on their system to make them work?
     
  47. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    Hi

    Thank you for your interest in "RT-Voice"!

    There are two possibilities:
    1. Use additional voices (from chapter 6) and provide them with your game (e.g. with a separate installer). But you have to verify on your own if you're allowed to do that - Microsoft and other vendors probably don't accept this...
    2. Use our brand-new MaryTTS-implementation in RT-Voice. This ensures the same voices on ALL platforms - the only trade-off is that you have to setup your own (local/remote) TTS-server for the final product.

    Personally, I would choose solution 2.

    I hope this helps, please let me know.


    So long,
    Stefan
     
  48. human890209

    human890209

    Joined:
    Feb 27, 2017
    Posts:
    9
    Hi,
    I've downloaded your demo APK for android and tested it. I use Google TTS with Chinese Language Package installed. But there isn't any Chinese Voice Option but all the other languages. So RTVoice doesn't support Chinese TTS, does it?
     
  49. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    Hi

    It's not a problem with "RT-Voice" - we can use any voice available.

    I think it has something to do with the Chinese language-pack on Android.
    You can have only one active TTS-system enabled - this is also a problem with other voices like the ones from "Cereproc". You have to choose between the different TTS-provides...

    Which version of Android are you using (and which device)?


    Cheers
    Stefan
     
  50. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,976
    Btw., here is a picture of iOS:
    IMG_1396.PNG


    So long,
    Stefan