UOdinRestGSTTEffect
Codec-Effect for the odin audio pipeline. The effect will cache audio in a file based on a timer. Used in a remote web sample check for speech-to-text content check.
- Header:
#include "OdinAudio/Effects/OdinRestGSTTEffect.h" - Module:
Odin - Inherits from:
UOdinCustomEffect - Blueprint: Reflected (UCLASS) · Blueprint reference
Deprecated: This will be included or replaced by the 4Players/ue-filter-plugin extension.
Overview
Functions
| Name | Description |
|---|---|
Callback | |
ConstructRestGSTTEffect | Creates a generic speech-to-text (STT) effect, a base for C++ integrations with REST speech-to-text services. |
PostRequest | |
Remix |
Properties
| Name | Description |
|---|---|
SampleRate | Sample rate of the incoming audio. |
ResampleRate | Sample rate the collected audio is resampled to. |
bStereo | True if the incoming audio is interleaved stereo. |
Timer | Seconds of audio to collect before it is handed on. |
UserData |
Functions
Callback
Virtual · Const · Inline
| Parameter | Type | Description |
|---|---|---|
Buffer | Audio::FAlignedFloatBuffer | |
Name | FString | |
NameSpace | FString |
ConstructRestGSTTEffect
Static · Blueprint: Construct Generic STT Effect
Creates a generic speech-to-text (STT) effect, a base for C++ integrations with REST speech-to-text services. It collects the audio for Timer seconds, resamples it to Resample Rate and hands it to its C++ Callback method. A C++ subclass overrides Callback and posts the audio to a service with PostRequest; the service's response is raised through Post Response. On its own the effect does not send anything.
| Parameter | Type | Description |
|---|---|---|
WorldContextObject | UObject* |
Returns UOdinRestGSTTEffect*
PostRequest
| Parameter | Type | Description |
|---|---|---|
Endpoint | const FString& | |
Payload | const FString& | |
ContentType | const FString& |
Remix
| Parameter | Type | Description |
|---|---|---|
InAudio | const float* | |
NumSamples | int32 | |
NumChannels | int32 | |
SourceSampleRate | int32 | |
TargetSampleRate | int32 | |
OutAudio | Audio::FAlignedFloatBuffer& |
Returns bool
Properties
SampleRate
Blueprint: Get/Set
Sample rate of the incoming audio.
ResampleRate
Blueprint: Get/Set
Sample rate the collected audio is resampled to.
bStereo
Blueprint: Get/Set
True if the incoming audio is interleaved stereo.
Timer
Blueprint: Get/Set
Seconds of audio to collect before it is handed on.
UserData
Events
PostResponse
Blueprint: Post Response (Generic STT Effect)
Raised with the body of the response when a request posted with PostRequest completes.
Signature: FOdinRestGSTTEffectResponse void(FString response) (multicast)