AnythingSpeech
This module allows developers to access the Anything World TTS (Text-to-speech) engine.
AnythingSpeech Class Reference
Public Member Functions
delegate voidAWSpeechHandler (string testResponse)
delegate voidAWSpeechDoneHandler (string testResponse)
voidStartListening(AWSpeechHandlerresponseCallback,AWSpeechDoneHandlerdoneCallback)
voidStartListening(AWSpeechDoneHandlerdoneCallback)
voidStopListening()
voidSpeak(string thingToSay, string voiceName="none")
voidListenForInterval(float time,AWSpeechDoneHandlerdoneCallBack)
voidListenForInterval(float time,AWSpeechHandlerresponseCallBack, AWSpeechDoneHandler doneCallBack)
Member Functions
AWSpeechDoneHandler()
delegate void AnythingWorld.Speech.AnythingSpeech.AWSpeechDoneHandler (string testResponse)
AWSpeechHandler()
delegate void AnythingWorld.Speech.AnythingSpeech.AWSpeechHandler (string testResponse)
ListenForInterval()
void AnythingWorld.Speech.AnythingSpeech.ListenForInterval (float time, AWSpeechDoneHandler doneCallBack)
ListenForInterval()
void AnythingWorld.Speech.AnythingSpeech.ListenForInterval (float time, AWSpeechHandler responseCallBack, AWSpeechDoneHandler doneCallBack)
Speak()
void AnythingWorld.Speech.AnythingSpeech.Speak (string thingToSay, string voiceName = "none")
StartListening()
void AnythingWorld.Speech.AnythingSpeech.StartListening (AWSpeechDoneHandler doneCallback)
StartListening()
void AnythingWorld.Speech.AnythingSpeech.StartListening (AWSpeechHandler responseCallback, AWSpeechDoneHandler doneCallback)
StopListening()
void AnythingWorld.Speech.AnythingSpeech.StopListening()
Property
Instance
AnythingSpeech AnythingWorld.Speech.AnythingSpeech.Instance
Parameters
time
Time in seconds to listen.
responseCallBack
Callback handling any detected changes to the input string during listening.
doneCallBack
Callback handling the final detected string once listening completed
thingToSay
String to vocalise
voiceName
Name of voice
Example
using AnythingWorld.Speech;
public class SpeechController: MonoBehaviour
{
void Start()
{
AnythingSpeech speech = AnythingSpeech.Instance;
speech.Speak("Hello Anything World");
}
}Last updated
Was this helpful?