using System.Collections; using System.Collections.Generic; using UnityEngine; using SpeechLib; public class Speak : MonoBehaviour { private void Start() { SpVoice voice = new SpVoice(); voice.Voice = voice.GetVoices(string.Empty, string.Empty).Item(0); voice.Speak("你想说什么话写在这里!"); } }