forked from cgvr/DeltaVR
model generation test box takes input prompt from voice transcription box
This commit is contained in:
Binary file not shown.
@@ -5,7 +5,7 @@ public class ModelGenerationTestBox : MonoBehaviour
|
|||||||
public Material activeMaterial;
|
public Material activeMaterial;
|
||||||
public Material inactiveMaterial;
|
public Material inactiveMaterial;
|
||||||
public Transform modelSpawnPoint;
|
public Transform modelSpawnPoint;
|
||||||
public string inputPrompt;
|
public VoiceTranscriptionTestBox voiceTranscriptionTestBox;
|
||||||
|
|
||||||
private MeshRenderer meshRenderer;
|
private MeshRenderer meshRenderer;
|
||||||
|
|
||||||
@@ -29,6 +29,7 @@ public class ModelGenerationTestBox : MonoBehaviour
|
|||||||
{
|
{
|
||||||
meshRenderer.material = activeMaterial;
|
meshRenderer.material = activeMaterial;
|
||||||
|
|
||||||
|
string inputPrompt = voiceTranscriptionTestBox.currentTextOutput;
|
||||||
string modelPath = await PipelineManager.Instance.GenerateModelAsync(inputPrompt);
|
string modelPath = await PipelineManager.Instance.GenerateModelAsync(inputPrompt);
|
||||||
//LoadModel("D:\\henrisel\\DeltaVR3DModelGeneration\\3d-generation-pipeline\\models\\2025-11-17-16-13-33\\mesh.glb");
|
//LoadModel("D:\\henrisel\\DeltaVR3DModelGeneration\\3d-generation-pipeline\\models\\2025-11-17-16-13-33\\mesh.glb");
|
||||||
GameObject spawnedObject = await PipelineManager.Instance.SpawnModel(modelPath);
|
GameObject spawnedObject = await PipelineManager.Instance.SpawnModel(modelPath);
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ public class VoiceTranscriptionTestBox : MonoBehaviour
|
|||||||
public TextMeshProUGUI outputText;
|
public TextMeshProUGUI outputText;
|
||||||
|
|
||||||
private string _buffer;
|
private string _buffer;
|
||||||
|
public string currentTextOutput;
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
@@ -76,6 +77,7 @@ public class VoiceTranscriptionTestBox : MonoBehaviour
|
|||||||
|
|
||||||
var text = res.Result;
|
var text = res.Result;
|
||||||
|
|
||||||
|
currentTextOutput = text;
|
||||||
outputText.text = text;
|
outputText.text = text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user