Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancing virtual instructor response speed #2145

Open
AKissMail opened this issue Nov 7, 2024 · 0 comments
Open

Enhancing virtual instructor response speed #2145

AKissMail opened this issue Nov 7, 2024 · 0 comments

Comments

@AKissMail
Copy link
Collaborator

This issue is related to updates on the LXR backend to decrease the response time for a Virtual Instructor. Currently, we use the GetAudioClip method in Unity (1) to pull audio content from the LXR repository. This method has two major limitations that drive the current design:

- It does not support POST requests, which limits the length of the question.
- It only accepts an audio file as a response. It would be useful if we could stream the audio along with the transcript of the audio.

Therefore, we need to implement an HTTP request capable of sending audio as an Audio-Byte-Stream in a POST request and retrieving both audio and transcript as JSON. This JSON should be cast into an AudioClip object and returned along with a string.

(1) https://docs.unity3d.com/ScriptReference/Networking.UnityWebRequestMultimedia.GetAudioClip.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant