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 SpeechToText(AudioClip _clip,Action _callback) { } /// /// 语音识别 /// /// /// public virtual void SpeechToText(byte[] _audioData, Action _callback) { } }