Navigation
API > API/Plugins > API/Plugins/OnlineSubsystem > API/Plugins/OnlineSubsystem/Interfaces
References
| Module | OnlineSubsystem |
| Header | /Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/VoiceInterface.h |
| Include | #include "Interfaces/VoiceInterface.h" |
Syntax
class IVoiceEngine
Remarks
This interface is an abstract mechanism for acquiring voice data from a hardware source. Each platform implements a specific version of this interface.
Constructors
| Type | Name | Description | |
|---|---|---|---|
IVoiceEngine () |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Virtual destructor to force proper child cleanup |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | When called, disconnects all additional audio endpoints we patched to using PatchVoiceOutputToDevice(). | ||
| float | GetIncomingAudioAmplitude
(
const FUniqueNetIdWrapper& RemoteUserId |
This can be used to get how loud the given microphone input is, typically on a scale between 0.0 and 1.0. | |
| float | GetMicrophoneAmplitude
(
int32 LocalUserNum |
This can be used to get how loud the given microphone input is, typically on a scale between 0.0 and 1.0. | |
| Audio::FPatchOutputStrongPtr | This can be used to get arbitrarily tap outgoing microphone audio from local players to use elsewhere in your application. | ||
| Audio::FPatchOutputStrongPtr | This can be used to get arbitrarily tap incoming VOIP audio from remote players to use elsewhere in your application. | ||
| uint32 | Returns which local talkers have data ready to be read from the voice system | ||
| FString | Get information about the voice state for display | ||
| bool | Initialize the voice engine | ||
| bool | IsHeadsetPresent
(
uint32 LocalUserNum |
Checks whether a local user index has a headset present or not | |
| bool | IsLocalPlayerTalking
(
uint32 LocalUserNum |
Determines whether a local user index is currently talking or not | |
| bool | IsRemotePlayerTalking
(
const FUniqueNetId& UniqueId |
Determines whether a remote talker is currently talking or not | |
| bool | PatchLocalTalkerOutputToEndpoint
(
const FString& InDeviceName |
This can be used to patch outgoing audio to a different audio device. | |
| bool | PatchRemoteTalkerOutputToEndpoint
(
const FString& InDeviceName, |
This can be used to patch incoming audio to a different audio device. | |
| uint32 | ReadLocalVoiceData
(
uint32 LocalUserNum, |
Reads local voice data for the specified local talker. | |
| uint32 | ReadLocalVoiceData
(
uint32 LocalUserNum, |
||
| uint32 | RegisterLocalTalker
(
uint32 LocalUserNum |
Registers the user index as a local talker (interested in voice data) | |
| uint32 | RegisterRemoteTalker
(
const FUniqueNetId& UniqueId |
Registers the unique player id as a remote talker (submitted voice data only) | |
| uint32 | SetPlaybackPriority
(
uint32 LocalUserNum, |
Sets the playback priority of a remote talker for the given user. | |
| uint32 | SetRemoteVoiceAmplitude
(
const FUniqueNetIdWrapper& RemoteTalkerId, |
Used when receiving remote voice data to set the amplitude of a remote talker's incoming audio. | |
| uint32 | StartLocalVoiceProcessing
(
uint32 LocalUserNum |
Starts local voice processing for the specified user index | |
| uint32 | StartRemoteVoiceProcessing
(
const FUniqueNetId& UniqueId |
Starts remote voice processing for the specified user | |
| uint32 | StopLocalVoiceProcessing
(
uint32 LocalUserNum |
Stops local voice processing for the specified user index | |
| uint32 | StopRemoteVoiceProcessing
(
const FUniqueNetId& UniqueId |
Stops remote voice processing for the specified user | |
| uint32 | SubmitRemoteVoiceData
(
const FUniqueNetId& RemoteTalkerId, |
Submits remote voice data for playback by the voice system. | |
| uint32 | SubmitRemoteVoiceData
(
const FUniqueNetIdWrapper& RemoteTalkerId, |
||
| void | Tick
(
float DeltaTime |
Allows for platform specific servicing of devices, etc. | |
| uint32 | UnregisterLocalTalker
(
uint32 LocalUserNum |
Unregisters the user index as a local talker (not interested in voice data) | |
| uint32 | UnregisterRemoteTalker
(
const FUniqueNetId& UniqueId |
Unregisters the unique player id as a remote talker |