Skip to content

Commit b1583a5

Browse files
committed
Add feature where recording is sent to the server
1 parent 5edce24 commit b1583a5

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

Assets/Scripts/ASAPanel.cs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,22 @@ public void OnRecordButtonClicked()
8181
StartTimer();
8282
}
8383

84-
public void OnTimerFinished()
84+
public void OnTimerFinished()
8585
{
8686
StartCoroutine(DelayPost());
8787

8888
IEnumerator DelayPost()
8989
{
90-
// AudioManager.GetManager().GetAudioAndASR(transcriptGO, scoreButtonGO, taskType, taskNumber, isFinnish);
91-
yield return new WaitForSeconds(0.2f);
90+
AudioManager.GetManager().GetAudioAndPost(
91+
POSTType.OTHER, // POST type = OTHER
92+
transcriptGO.GetComponent<TMPro.TextMeshProUGUI>().text, // transcript text
93+
null, // textErrorGO
94+
null, // resultTextGO
95+
null, // resultPanelGO
96+
null // debugTextGO
97+
);
9298

99+
yield return new WaitForSeconds(0.2f);
93100
recordButtonGO.SetActive(true);
94101
}
95102
}

0 commit comments

Comments
 (0)