UnrealVoxta 0.1.1
 
Loading...
Searching...
No Matches
ServerResponseSpeechTranscription.h
Go to the documentation of this file.
1// Copyright(c) 2024 grrimgrriefer & DZnnah, see LICENSE for details.
2
3#pragma once
4
5#include "CoreMinimal.h"
7
14{
15#pragma region helper classes
16public:
24#pragma endregion
25
26#pragma region public API
27public:
34 explicit ServerResponseSpeechTranscription(FStringView transcribedSpeech,
35 TranscriptionState transcriptionState) : ServerResponseBase(ServerResponseType::SpeechTranscription),
36 TRANSCRIPTION_STATE(transcriptionState),
37 TRANSCRIBED_SPEECH(transcribedSpeech)
38 {}
39#pragma endregion
40
41#pragma region data
42public:
46 const FString TRANSCRIBED_SPEECH;
47#pragma endregion
48};
ServerResponseType
ServerResponseType Contains the possible response types that can be reported by the VoxtaApiReponseHa...
Definition ServerResponseType.h:16
ServerResponseBase(ServerResponseType responseType)
Definition ServerResponseBase.h:20
const TranscriptionState TRANSCRIPTION_STATE
The state of the transcription (partial, end, cancelled).
Definition ServerResponseSpeechTranscription.h:44
TranscriptionState
Contains the possible states of the transcribed speech, as reported by the VoxtaClient.
Definition ServerResponseSpeechTranscription.h:19
@ Partial
Definition ServerResponseSpeechTranscription.h:20
@ End
Definition ServerResponseSpeechTranscription.h:21
@ Cancelled
Definition ServerResponseSpeechTranscription.h:22
ServerResponseSpeechTranscription(FStringView transcribedSpeech, TranscriptionState transcriptionState)
Construct a speech transcription response.
Definition ServerResponseSpeechTranscription.h:34
const FString TRANSCRIBED_SPEECH
The transcribed speech text.
Definition ServerResponseSpeechTranscription.h:46