Handlers
Speech Handler
VRCOSC's speech engine is global, meaning you can implement ISpeechHandler
and speech recognition will be handled entirely by the app.
2 methods are exposed, OnPartialSpeechResult
and OnFinalSpeechResult
. Both provide the text of what the user has said.
OnPartialSpeechResult
occurs every 1.5 seconds while the user is still talking.
OnFinalSpeechResult
occurs when the user has stopped talking and a final more accurate recognition is done.
Client Events Handler
VRCOSC scans VRChat's logs for certain events, meaning you can implement IVRCClientEventHandler
.
OnInstanceLeft
occurs when the user leaves their current instance.
OnInstanceJoin
occurs when the user finishes joining the new instance.
OnUserLeft
occurs when a remote user leaves the current instance.
OnUserJoined
occurs when a remote user joins the current instance.
All events are passed with their relevant data and the time at which the log occurred. The whole log file is scanned once on start to allow modules to backfill data if needed (see the instance user count of ClientInfo). Make sure to ignore any logs from the past if you only need new data.