using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using UnityEngine; /// /// 语音转文字 /// public class STT : MonoBehaviour { /// /// 语音识别api地址 /// [SerializeField] protected string m_SpeechRecognizeURL = String.Empty; /// /// 计算方法调用的时间 /// [SerializeField] protected Stopwatch stopwatch = new Stopwatch(); /// /// 语音识别 /// public virtual void StartSpeechToText(Action _callback) { } /// /// 结束语音识别 /// public virtual void StopSpeechToText(Action _callback) { } }