public static void StopSpeech() { GameObject main = GameObject.Find("main"); YYVoice e = main.GetComponent <YYVoice>(); e.StopRecord(); }