27 lines
643 B
C#
Raw Normal View History

2025-09-24 19:24:19 +08:00
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() { }
}