27 lines
643 B
C#
27 lines
643 B
C#
|
|
using System;
|
|||
|
|
using System.Diagnostics;
|
|||
|
|
using UnityEngine;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD>ת<EFBFBD><D7AA><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public class TTS : MonoBehaviour
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD>ϳɵ<CFB3>api<70><69>ַ
|
|||
|
|
/// </summary>
|
|||
|
|
[SerializeField] protected string m_PostURL = string.Empty;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD>㷽<EFBFBD><E3B7BD><EFBFBD><EFBFBD><EFBFBD>õ<EFBFBD>ʱ<EFBFBD><CAB1>
|
|||
|
|
/// </summary>
|
|||
|
|
[SerializeField] protected Stopwatch stopwatch = new Stopwatch();
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD>ϳɣ<CFB3><C9A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƶ
|
|||
|
|
/// </summary>
|
|||
|
|
public virtual void StartSpeak(string _msg,Action<AudioClip> _callback) {}
|
|||
|
|
/// <summary>
|
|||
|
|
/// ֹͣ<CDA3><D6B9><EFBFBD><EFBFBD><EFBFBD>ϳ<EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public virtual void StopSpeak() { }
|
|||
|
|
}
|