Once I get that upgrade to 36-hour days, I will tackle that. – Mychaeel
UE3:OnlineVoiceInterface (UDK)
Interface >> OnlineVoiceInterface |
Contents
- 1 Delegates
- 2 Instance functions
- 2.1 AddPlayerTalkingDelegate
- 2.2 AddRecognitionCompleteDelegate
- 2.3 ClearPlayerTalkingDelegate
- 2.4 ClearRecognitionCompleteDelegate
- 2.5 GetRecognitionResults
- 2.6 IsHeadsetPresent
- 2.7 IsLocalPlayerTalking
- 2.8 IsRemotePlayerTalking
- 2.9 MuteAll
- 2.10 MuteRemoteTalker
- 2.11 RegisterLocalTalker
- 2.12 RegisterRemoteTalker
- 2.13 SelectVocabulary
- 2.14 SetRemoteTalkerPriority
- 2.15 SetSpeechRecognitionObject
- 2.16 StartNetworkedVoice
- 2.17 StartSpeechRecognition
- 2.18 StopNetworkedVoice
- 2.19 StopSpeechRecognition
- 2.20 UnmuteAll
- 2.21 UnmuteRemoteTalker
- 2.22 UnregisterLocalTalker
- 2.23 UnregisterRemoteTalker
- Package:
- Engine
- Known implementing classes:
- OnlineSubsystemPC
- This interface in other games:
- UT3
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
This interface deals with voice over IP. It is responsible for registering, unregistering, and filtering talkers. It also handles special voice effects. This interface also provides hooks for accessing the raw data to perform operations on it, such as speech recognition, lip sync, etc.
Delegates[edit]
OnPlayerTalkingStateChange[edit]
Called when a player is talking either locally or remote. This will be called once for each active talker each frame.
Parameters:
- Player - the player that is talking
- bIsTalking - if true, the player is now talking, if false they are no longer talking
OnRecognitionComplete[edit]
Called when speech recognition for a given player has completed. The consumer of the notification can call GetRecognitionResults() to get the words that were recognized
Instance functions[edit]
AddPlayerTalkingDelegate[edit]
Adds a talker delegate to the list of notifications
Parameters:
- TalkerDelegate - the delegate to call when a player is talking
AddRecognitionCompleteDelegate[edit]
Adds the speech recognition notification callback to list of callbacks for the specified user
Parameters:
- LocalUserNum - the local user to receive notifications for
- RecognitionDelegate - the delegate to call when recognition is complete
ClearPlayerTalkingDelegate[edit]
Removes a talker delegate to the list of notifications
Parameters:
- TalkerDelegate - the delegate to remove from the notification list
ClearRecognitionCompleteDelegate[edit]
Clears the speech recognition notification callback to use for the specified user
Parameters:
- LocalUserNum - the local user to receive notifications for
- RecognitionDelegate - the delegate to call when recognition is complete
GetRecognitionResults[edit]
Gets the results of the voice recognition Will not return results that were below the SpeechRecognition's ConfidenceThreshold, so you may get an empty array back
Parameters:
- LocalUserNum - the local user to read the results of
- Words - the set of words that were recognized by the voice analyzer
Returns:
- true upon success, false otherwise
IsHeadsetPresent[edit]
Determines if the specified player has a headset connected
Parameters:
- LocalUserNum - the local player index being queried
Returns:
- TRUE if the player has a headset plugged in, FALSE otherwise
IsLocalPlayerTalking[edit]
Determines if the specified player is actively talking into the mic
Parameters:
- LocalUserNum - the local player index being queried
Returns:
- TRUE if the player is talking, FALSE otherwise
IsRemotePlayerTalking[edit]
Determines if the specified remote player is actively talking into the mic NOTE: Network latencies will make this not 100% accurate
Parameters:
- PlayerId - the unique id of the remote player being queried
Returns:
- TRUE if the player is talking, FALSE otherwise
MuteAll[edit]
Mutes all voice or all but friends
Parameters:
- LocalUserNum - the local user that is making the change
- bAllowFriends - whether to mute everyone or allow friends
MuteRemoteTalker[edit]
Mutes a remote talker for the specified local player. NOTE: This is separate from the user's permanent online mute list
Parameters:
- LocalUserNum - the user that is muting the remote talker
- PlayerId - the remote talker that is being muted
Returns:
- TRUE if the function succeeds, FALSE otherwise
RegisterLocalTalker[edit]
Registers the user as a talker
Parameters:
- LocalUserNum - the local player index that is a talker
Returns:
- TRUE if the call succeeded, FALSE otherwise
RegisterRemoteTalker[edit]
Registers a remote player as a talker
Parameters:
- PlayerId - the unique id of the remote player that is a talker
Returns:
- TRUE if the call succeeded, FALSE otherwise
SelectVocabulary[edit]
Changes the vocabulary id that is currently being used
Parameters:
- LocalUserNum - the local user that is making the change
- VocabularyId - the new id to use
Returns:
- true if successful, false otherwise
SetRemoteTalkerPriority[edit]
Sets the relative priority for a remote talker. 0 is highest
Parameters:
- LocalUserNum - the user that controls the relative priority
- PlayerId - the remote talker that is having their priority changed for
- Priority - the relative priority to use (0 highest, < 0 is muted)
Returns:
- TRUE if the function succeeds, FALSE otherwise
SetSpeechRecognitionObject[edit]
Changes the object that is in use to the one specified
Parameters:
- LocalUserNum - the local user that is making the change
- SpeechRecogObj - the new object use
- true - if successful, false otherwise
StartNetworkedVoice[edit]
Tells the voice layer that networked processing of the voice data is allowed for the specified player. This allows for push-to-talk style voice communication
Parameters:
- LocalUserNum - the local user to allow network transimission for
StartSpeechRecognition[edit]
Tells the voice system to start tracking voice data for speech recognition
Parameters:
- LocalUserNum - the local user to recognize voice data for
Returns:
- true upon success, false otherwise
StopNetworkedVoice[edit]
Tells the voice layer to stop processing networked voice support for the specified player. This allows for push-to-talk style voice communication
Parameters:
- LocalUserNum - the local user to disallow network transimission for
StopSpeechRecognition[edit]
Tells the voice system to stop tracking voice data for speech recognition
Parameters:
- LocalUserNum - the local user to recognize voice data for
Returns:
- true upon success, false otherwise
UnmuteAll[edit]
Allows all speakers to send voice
Parameters:
- LocalUserNum - the local user that is making the change
UnmuteRemoteTalker[edit]
Allows a remote talker to talk to the specified local player. NOTE: This call will fail for remote talkers on the user's permanent online mute list
Parameters:
- LocalUserNum - the user that is allowing the remote talker to talk
- PlayerId - the remote talker that is being restored to talking
Returns:
- TRUE if the function succeeds, FALSE otherwise
UnregisterLocalTalker[edit]
Unregisters the user as a talker
Parameters:
- LocalUserNum - the local player index to be removed
Returns:
- TRUE if the call succeeded, FALSE otherwise
UnregisterRemoteTalker[edit]
Unregisters a remote player as a talker
Parameters:
- PlayerId - the unique id of the remote player to be removed
Returns:
- TRUE if the call succeeded, FALSE otherwise