SetVoiceMode (VoiceMode)
Determines whether voice speech and/or text captions are used in the game.
Valid values for VoiceMode are:
eSpeechTextOnly no voice, text only
eSpeechVoiceAndText both voice and text
eSpeechVoiceOnly voice only, no text
The default is eSpeechVoiceAndText if in-game speech is enabled, and eSpeechTextOnly if it
is not. Changing this setting changes the behaviour of all Say and
Display commands which have a speech file assigned to them.
WARNING: you should only ever use eSpeechVoiceOnly at the player's request to
do so, because there is no guarantee that they even have a sound card and so may
not understand what is going on.
Example:
if (IsSpeechVoxAvailable()==1)
SetVoiceMode(eSpeechVoiceAndText);
will set the voice mode to voice and text if the voice pack is available.
|