1
0
forked from cgvr/DeltaVR

model generation test box takes input prompt from voice transcription box

This commit is contained in:
2025-12-15 15:57:32 +02:00
parent 9c7536d1d4
commit 7be20d249e
3 changed files with 6 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ public class ModelGenerationTestBox : MonoBehaviour
public Material activeMaterial;
public Material inactiveMaterial;
public Transform modelSpawnPoint;
public string inputPrompt;
public VoiceTranscriptionTestBox voiceTranscriptionTestBox;
private MeshRenderer meshRenderer;
@@ -29,6 +29,7 @@ public class ModelGenerationTestBox : MonoBehaviour
{
meshRenderer.material = activeMaterial;
string inputPrompt = voiceTranscriptionTestBox.currentTextOutput;
string modelPath = await PipelineManager.Instance.GenerateModelAsync(inputPrompt);
//LoadModel("D:\\henrisel\\DeltaVR3DModelGeneration\\3d-generation-pipeline\\models\\2025-11-17-16-13-33\\mesh.glb");
GameObject spawnedObject = await PipelineManager.Instance.SpawnModel(modelPath);

View File

@@ -17,6 +17,7 @@ public class VoiceTranscriptionTestBox : MonoBehaviour
public TextMeshProUGUI outputText;
private string _buffer;
public string currentTextOutput;
private void Awake()
{
@@ -76,6 +77,7 @@ public class VoiceTranscriptionTestBox : MonoBehaviour
var text = res.Result;
currentTextOutput = text;
outputText.text = text;
}