Text To Speech ( TTS )
Inherit from EasyManager.cs
using EasyCodeForVivox;
public class VivoxManager : EasyManager
{
}Inject EasyTextToSpeech
using EasyCodeForVivox;
using UnityEngine;
using Zenject;
public class VivoxTextToSpeech : MonoBehaviour
{
EasyTextToSpeech _textToSpeech;
[Inject]
private void Initialize(EasyTextToSpeech textToSpeech)
{
_textToSpeech = textToSpeech;
}
}Choosing Voice Gender
This method allows you to choose male or female voice. Vivox only supports English Voices
If you're a Christian, the male voice doesn’t pronounce Jesus’s name correctly so I recommend using the female voice or you can provide your players with the option to choose
EasyManager
EasyTextToSpeech
Local Text-to-Speech (TTS)
Local
Speak TTS Messages Locally. Messages will play over each other
Parameters Include:
stringmessage = Message to SpeakstringuserName = Username of playerTTSDestination= Refer to Vivox Documentation
EasyManager
EasyTextToSpeech
Local Queued
Speak TTS Messages Locally. Messages will be added to a queue and played in order recieved
Parameters Include:
stringmessage = Message to SpeakstringuserName = Username of playerTTSDestination= Refer to Vivox Documentation
EasyManager
EasyTextToSpeech
Local Screen Reader
Speak TTS Messages Locally. Messages will replace each other
Parameters Include:
stringmessage = Message to SpeakstringuserName = Username of playerTTSDestination= Refer to Vivox Documentation
EasyManager
EasyTextToSpeech
Remote Text-to-Speech (TTS)
Remote
Speak TTS Messages Remotely. Messages will play over each other
Parameters Include:
stringmessage = Message to SpeakstringuserName = Username of playerTTSDestination= Refer to Vivox Documentation
EasyManager
EasyTextToSpeech
Remote Queued
Speak TTS Messages Remotely. Messages will be added to a queue and played in order received
Parameters Include:
stringmessage = Message to SpeakstringuserName = Username of playerTTSDestination= Refer to Vivox Documentation
EasyManager
EasyTextToSpeech
Remote and Local Text-to-Speech (TTS)
Remote and Local
Speak TTS Messages Remotely and Locally. Messages will play over each other
Parameters Include:
stringmessage = Message to SpeakstringuserName = Username of playerTTSDestination= Refer to Vivox Documentation
EasyManager
EasyTextToSpeech
Remote and Local Queued
Speak TTS Messages Remotely and Locally. Messages will be added to a queue and played in order received
Parameters Include:
stringmessage = Message to SpeakstringuserName = Username of playerTTSDestination= Refer to Vivox Documentation
EasyManager
EasyTextToSpeech
Last updated
Was this helpful?