khanhuitse05 / speech-and-text-unity-ios-android

Speed to text in Unity iOS use Native Speech Recognition
MIT License
297 stars 126 forks source link

Stack Overflow in unity 2018.4 #23

Closed Rana-Yehya closed 2 years ago

Rana-Yehya commented 4 years ago

I am using the text to speech script and have an error regarding the init method in the text to speech script My code ` using System.Collections; using System.Collections.Generic; using UnityEngine;

using TextSpeech; public class Audio_service : MonoBehaviour { const string Lang_code = "en_US"; // Start is called before the first frame update void Start() { Setup(Lang_code); TextToSpeech.instance.onStartCallBack = OnSpeakStart; TextToSpeech.instance.onDoneCallback = OnSpeakStop;

    StartSpeaking("Hello");
}
public void StartSpeaking(string message)
{
    TextToSpeech.instance.StartSpeak(message);
}
public void StopSpeaking()
{   
    TextToSpeech.instance.StopSpeak();  
}   
public void OnSpeakStart()
{
    Debug.Log("Speak started");
}
public void OnSpeakStop()
{
    Debug.Log("Speak stopped");
}

void Setup(string code)
{
    TextToSpeech.instance.Setting(code,1,1);        

}

} The runtime error StackOverflowException: The requested operation caused a stack overflow. UnityEngine.Object.CompareBaseObjects (UnityEngine.Object lhs, UnityEngine.Object rhs) <0x3c0cea60 + 0x00008> in <89a5147921e548d1b8ddcff8078f62cd>:0 UnityEngine.Object.op_Equality (UnityEngine.Object x, UnityEngine.Object y) (at C:/buildslave/unity/build/Runtime/Export/UnityEngineObject.bindings.cs:403) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:17) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:19) TextSpeech.TextToSpeech.Init () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToSpeech.cs:26) TextSpeech.TextToSpeech.get_instance () (at Assets/SpeechToText_AppleAPI/Assets/SpeechAndText/Scripts/TextToS `

khanhuitse05 commented 4 years ago

Can you remove the Line 26 at TextToSpeech.cs file. //if (instance != null) return; and try again. Because log at this line and This line is unnecessary

o0grip0o commented 3 years ago

Duplicate of #23

I am using this on Unity 2019.4.20f LTS I am getting the same issue. I commented line 26 out and I still get this error:

StackOverflowException: The requested operation caused a stack overflow. UnityEngine.Object.op_Equality (UnityEngine.Object x, UnityEngine.Object y) <0x14a632120 + 0x00004> in <09baf65c3f0f440e94eb8e59838010b5>:0 TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:18) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:20) TextSpeech.SpeechToText.Init () (at Assets/SpeechAndText/Scripts/SpeechToText.cs:27) TextSpeech.SpeechToText.get_instance () (at Assets/SpeechAndText/Sc<message truncated>

o0grip0o commented 3 years ago

Can you remove the Line 26 at TextToSpeech.cs file. //if (instance != null) return; and try again. Because log at this line and This line is unnecessary

There is a similar if statement on Line 27 for the SpeechToText.cs. Just comment that line out and you will not get a stack overflow problem anymore.

Mourad-Tlili commented 2 years ago

Can you remove the Line 26 at TextToSpeech.cs file. //if (instance != null) return; and try again. Because log at this line and This line is unnecessary

You just saved my life...