Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by RealMTG · Mar 21, 2015 at 08:20 PM · textspeech

Text to speech for standalone?

Hi!

I am trying to make a quiz like game and I want something to read the questions. Since the player can create their own questions, why not make the computer read the questions? But I have one problem. I can't find a way to do it. I only found a solution that ONLY works on Android and I need it to work on both Windows and Mac. I tried getting System.Speech but that doesn't seem to work. So what can I do to add this feature?

Thanks in advance!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by LegendWill · Mar 21, 2015 at 10:34 PM

http://answers.unity3d.com/questions/600128/text-to-speech-plugins.html

http://forum.unity3d.com/threads/text-to-speech-dll-for-win32.56038/

2 cool plugins I found

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image RealMTG · Mar 21, 2015 at 11:14 PM 0
Share

The first one is the one I also found. It is useless to me since it only works on Android. The other one only works on Windows and I need it to work on $$anonymous$$ac too.

avatar image
0

Answer by Madhur26 · Jul 27, 2017 at 07:34 AM

using System.Collections; using System.Collections.Generic; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using System.Text.RegularExpressions;

public class TexttoSpeech : MonoBehaviour {

 public AudioSource _audio;

 // Use this for initialization
 void Start () {
     _audio = gameObject.GetComponent<AudioSource> ();
 }

 // Update is called once per frame
 void Update () {
 }

 IEnumerator DownloadTheAudio(){

     string url="http://translate.google.com/translate_tts?ie=UTF-8&total=1&idx=0&textlen=32&client=tw-ob&q=Hello%20World.&tl=En-gb";
     WWW www = new WWW (url);
     yield return www;
     _audio.clip = www.GetAudioClip (false, false, AudioType.MPEG);
     _audio.Play ();
 }

 public void ButtonClick(){
     StartCoroutine (DownloadTheAudio ());
 }

}

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Madhur26 · Aug 09, 2017 at 12:39 PM 0
Share

@Real$$anonymous$$TG Hi,

I was trying to find the solution for the Text to Speech for the android phone...Can you help me out .

Thanks in advance.

avatar image RealMTG Madhur26 · Aug 09, 2017 at 01:41 PM 0
Share

Hey I never got anything working with this so I can't help you, unfortunately.

avatar image Madhur26 · Aug 10, 2017 at 06:29 AM 0
Share

You found a solution related to android right

avatar image RealMTG Madhur26 · Aug 10, 2017 at 08:51 AM 0
Share

Unfortunately, I did not find any solutions for this.

avatar image montacerdk · Mar 23, 2018 at 08:23 AM 0
Share

How can i change the speacker voice to male, please.

avatar image
0

Answer by tonic · Aug 11, 2017 at 07:12 AM

If a robotic-type of voice is enough, then you could use this new asset:

Klattersynth TTS

It works probably on all platforms targeted by Unity and it's really small as well.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

25 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How do i use the Text to Speech ?? 1 Answer

Speech to text 2 Answers

Text to Speech in a web player build 2 Answers

Text to speech using google API issue related to black space. 1 Answer

Big text field GUI. 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges