/// <summary> /// Queue up an action to say. /// </summary> /// <param name="who"></param> /// <param name="what"></param> /// <param name="where"></param> /// <param name="v"></param> internal void SayAction( string who, string what, Vector3 where, AssignedVoice v, bool spatial) { if (queue == null) { return; } QueuedSpeech e = new QueuedSpeech( subs.FixExpressions(who), subs.FixExpressions(what), where, v, true, spatial, BeepType.None); lock (queue) { queue.Enqueue(e); Monitor.Pulse(queue); } }
public void Speak( METAboltSpeech.Talk.QueuedSpeech utterance, string filename) { synth.Speak(utterance, filename); }