diff --git a/Solvers/freestyle/freestyle_sidecar.bat b/Solvers/freestyle/freestyle_sidecar.bat index e44edb3..d4006e3 100644 --- a/Solvers/freestyle/freestyle_sidecar.bat +++ b/Solvers/freestyle/freestyle_sidecar.bat @@ -34,5 +34,5 @@ if errorlevel 1 ( ) REM Start the server -echo Starting freestyle server on port 8787... +echo Starting freestyle server on port 8766... node dist\index.js diff --git a/UnrealHyperTwist/Source/UnrealHyperTwist/Public/HyperTwistIPC/HyperTwistHttpSpeechClient.h b/UnrealHyperTwist/Source/UnrealHyperTwist/Public/HyperTwistIPC/HyperTwistHttpSpeechClient.h deleted file mode 100644 index a4dfabc..0000000 --- a/UnrealHyperTwist/Source/UnrealHyperTwist/Public/HyperTwistIPC/HyperTwistHttpSpeechClient.h +++ /dev/null @@ -1,51 +0,0 @@ -#pragma once - -#include "CoreMinimal.h" -#include "Kismet/BlueprintFunctionLibrary.h" -#include "Http.h" -#include "HyperTwistHttpSpeechClient.generated.h" - -USTRUCT(BlueprintType) -struct FHyperTwistSpeechTranscriptResult -{ - GENERATED_BODY() - - UPROPERTY(BlueprintReadOnly, Category = "HyperTwist|Speech") - bool bSuccess = false; - - UPROPERTY(BlueprintReadOnly, Category = "HyperTwist|Speech") - FString Transcript; - - UPROPERTY(BlueprintReadOnly, Category = "HyperTwist|Speech") - FString ErrorMessage; - - UPROPERTY(BlueprintReadOnly, Category = "HyperTwist|Speech") - float Confidence = 0.0f; -}; - -/** - * HTTP client for freestyle-voice sidecar integration. - * Communicates with the freestyle Node.js server running on localhost:8787. - */ -UCLASS() -class UNREALHYPERTWIST_API UHyperTwistHttpSpeechClient : public UBlueprintFunctionLibrary -{ - GENERATED_BODY() - -public: - UFUNCTION(BlueprintCallable, Category = "HyperTwist|Speech", meta = (WorldContext = "WorldContextObject")) - static void SendDictationAudio(UObject* WorldContextObject, const TArray& PCM16Data, - const FOnSpeechTranscriptReceived& OnComplete); - - UFUNCTION(BlueprintCallable, Category = "HyperTwist|Speech") - static bool IsFreestyleSidecarReachable(); - - UFUNCTION(BlueprintPure, Category = "HyperTwist|Speech") - static FString GetFreestyleSidecarUrl(); - - /** Parse move notation from transcript. e.g. "R prime" -> R counter-clockwise */ - UFUNCTION(BlueprintCallable, Category = "HyperTwist|Speech") - static TArray ParseMoveNotation(const FString& Transcript); -}; - -DECLARE_DYNAMIC_DELEGATE_OneParam(FOnSpeechTranscriptReceived, const FHyperTwistSpeechTranscriptResult&, Result);