5#include "CoreMinimal.h"
9#include "VoxtaAudioInput.generated.h"
21UCLASS(Category =
"Voxta")
26#pragma region delegate declarations
37 UPROPERTY(BlueprintAssignable, Category =
"Voxta", meta = (IsBindableEvent =
"True"))
42#pragma region public API
53 void InitializeSocket(
int bufferMs = 200,
int sampleRate = 16000,
int inputChannels = 1);
74 UFUNCTION(BlueprintCallable, Category =
"Voxta")
78 UFUNCTION(BlueprintCallable, Category =
"Voxta")
82 UFUNCTION(BlueprintCallable, Category =
"Voxta")
86 UFUNCTION(BlueprintCallable, Category =
"Voxta")
90 UFUNCTION(BlueprintCallable, Category =
"Voxta")
94 UFUNCTION(BlueprintPure, Category =
"Voxta")
98 UFUNCTION(BlueprintPure, Category =
"Voxta")
106 UFUNCTION(BlueprintCallable, Category =
"Voxta")
110 UFUNCTION(BlueprintCallable, Category =
"Voxta")
120 UFUNCTION(BlueprintCallable, Category =
"Voxta")
124#pragma region UObject overrides
131 UPROPERTY(BlueprintReadOnly, Category =
"Voxta", meta = (AllowPrivateAccess =
"true", DisplayName =
"Current Mic Noise Gate Threshold"))
132 float m_micNoiseGateThreshold = 0.001f;
134 UPROPERTY(BlueprintReadOnly, Category =
"Voxta", meta = (AllowPrivateAccess =
"true", DisplayName =
"Current Silence Detection Threshold"))
135 float m_silenceDetectionThreshold = 0.001f;
137 UPROPERTY(BlueprintReadOnly, Category =
"Voxta", meta = (AllowPrivateAccess =
"true", DisplayName =
"Current Mic Input Gain"))
138 float m_micInputGain = 6.f;
141 int m_sampleRate = 0;
142 int m_inputChannels = 0;
151 FDelegateHandle m_connectedHandle;
152 FDelegateHandle m_connectionErrorHandle;
153 FDelegateHandle m_closedHandle;
156#pragma region private API
166 void ChatSessionHandshake();
170#pragma region IWebSocket listeners
173 void OnSocketConnected();
175 void OnSocketConnectionError(
const FString& error);
177 void OnSocketClosed(
int statusCode,
const FString& reason,
bool wasClean);
VoxtaMicrophoneState
VoxtaMicrophoneState To keep track of what's going on with the VoxtaAudioInput internals,...
Definition VoxtaMicrophoneState.h:13
@ Uninitialized
Definition VoxtaMicrophoneState.h:14
AudioCaptureHandler.
Definition AudioCaptureHandler.h:19
AudioWebSocket Main low level API to communicate with the audio streaming socket of VoxtaServer.
Definition AudioWebSocket.h:16
UVoxtaClient Main public-facing subsystem for Voxta integration.
Definition VoxtaClient.h:50