5#include "Kismet/BlueprintAsyncActionBase.h"
6#include "Provider/Types/AudioTypes.h"
7#include "Provider/Types/CommonTypes.h"
9#include "SpeechAction.generated.h"
16 UPROPERTY(BlueprintReadOnly, Category =
"OpenAI")
19 UPROPERTY(BlueprintReadOnly, Category =
"OpenAI")
28 UPROPERTY(BlueprintReadWrite, Category =
"OpenAI")
29 FString AbsolutePath{FPaths::ProjectPluginsDir().Append(
"OpenAI/Saved")};
31 UPROPERTY(BlueprintReadWrite, Category =
"OpenAI")
32 FString BaseName{
"speech"};
34 UPROPERTY(BlueprintReadWrite, Category =
"OpenAI")
35 bool AppendDate{
true};
37 UPROPERTY(BlueprintReadWrite, Category =
"OpenAI")
38 bool SaveToFile{
true};
41DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams(
52 UPROPERTY(BlueprintAssignable)
53 FOnSpeech OnCompleted;
55 virtual void Activate()
override;
62 UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly =
"true"), Category =
"OpenAI | Audio")
66 void TryToOverrideURL();
69 void OnRequestError(
const FString& URL,
const FString& Content);
73 TObjectPtr<UOpenAIProvider> Provider;
77 FString URLOverride{};
Definition: OpenAIProvider.h:45
void CreateSpeech(const FSpeech &Speech, const FOpenAIAuth &Auth)
Definition: OpenAIProvider.cpp:165
Definition: SpeechAction.h:48
Definition: CommonTypes.h:11
Definition: CommonTypes.h:28
Definition: AudioTypes.h:133
Definition: SpeechAction.h:13
Definition: AudioTypes.h:325
Definition: SpeechAction.h:25