55 lines
1.8 KiB
C++
55 lines
1.8 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Engine/DataAsset.h"
|
|
#include "QwenTTSPresetDataAsset.generated.h"
|
|
|
|
class UQwenTTSStreamingSettingsDataAsset;
|
|
|
|
UCLASS(BlueprintType)
|
|
class QWENTTSSTREAMING_API UQwenTTSPresetDataAsset : public UPrimaryDataAsset
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
UQwenTTSPresetDataAsset();
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Qwen TTS|Preset")
|
|
TObjectPtr<UQwenTTSStreamingSettingsDataAsset> Settings;
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Qwen TTS|Preset")
|
|
FString PresetId;
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Qwen TTS|Preset")
|
|
FString Language = TEXT("Russian");
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Qwen TTS|Preset")
|
|
FString Mode = TEXT("voice_clone");
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Qwen TTS|Generation", meta = (ClampMin = "1"))
|
|
int32 ChunkSize = 25;
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Qwen TTS|Generation", meta = (ClampMin = "1"))
|
|
int32 FirstChunkSize = 8;
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Qwen TTS|Generation", meta = (ClampMin = "0"))
|
|
int32 CrossfadeSamples = 256;
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Qwen TTS|Generation", meta = (ClampMin = "0.0", ClampMax = "2.0"))
|
|
float Temperature = 0.7f;
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Qwen TTS|Generation", meta = (ClampMin = "1"))
|
|
int32 TopK = 20;
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Qwen TTS|Generation", meta = (ClampMin = "0.0"))
|
|
float RepetitionPenalty = 1.1f;
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Qwen TTS|Generation", meta = (ClampMin = "1"))
|
|
int32 RepetitionPenaltyWindow = 64;
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Qwen TTS|Payload")
|
|
TMap<FString, FString> ExtraFields;
|
|
};
|