Merging the chatgpt and whisper apis to be able to talk to gpt-powered NPCs. #48
-
Hello. I hope you are well. I loved your video and your package. Easy to work with and minimal bugs. I am very novice to unity and c# (1 month) and I have a group school project around "Education and VR". I have been tasked to add the feature of a talking npc (a professor) for which we'll make customized prompts. Different professors, different prompts for different subjects. A kind of virtual school. The idea came from Mesut's video on youtube: https://www.youtube.com/watch?v=QMogW-A9oD8&t=6s&ab_channel=MesutTomruk and I want to reproduce a similar interaction with the NPCs.
Another issue is, if I want to interrupt the npc mid-sentence. Thank you in advance for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 16 replies
-
Hi @achraf-oujjir,
|
Beta Was this translation helpful? Give feedback.
-
@achraf-oujjir |
Beta Was this translation helpful? Give feedback.
Hi @achraf-oujjir,
Yes, you can make the audio sent longer, in the sample it was 5 seconds however OpenAI does not show a max amount in the API Docs. You can turn the sample code into a push-to-talk system which should work for you.
You can add a part to your prompt such as "Reply in maximum 100 words" then this should help you shorten the result.