-
-
Notifications
You must be signed in to change notification settings - Fork 71
OSC Listener
VRCWizard edited this page Sep 26, 2023
·
10 revisions
- Option to show battery life of Controllers (not for quest controllers) and tracker battery life.
- MUST HAVE XSOVERLAY to use https://store.steampowered.com/app/1173510/XSOverlay/
- Battery Updates appear in the log and can be shown with the Spotify Song Output Text feature
- Media Integration Text Variables
{averageTrackerBattery} // OSC address: /avatar/parameters/averageTrackerBattery
{leftControllerBattery} // OSC address: /avatar/parameters/leftControllerBattery
{rightControllerBattery} // OSC address: /avatar/parameters/rightControllerBattery
{averageControllerBattery} // OSC address: /avatar/parameters/averageControllerBattery
{TCharge} // lightning bolt emoji if tracker is charging
{RCharge} // lightning bolt emoji if right controller charging
{LCharge} // lightning bolt emoji if left controller charging
{AVGCharge} // lightning bolt emoji if either controller avg charging
- Change the port that XSOverlay sends to from VRChat (9000) to TTS Voice Wizard (4026)
- If you don't know what you are doing please don't change TTS Voice Wizard's port from 4026
- Most people INCORRECTLY change TTS Voice Wizard's OSC Listener Receive port to 9000, which is what you should not do!
- You want to change the external application (HRToVRChat or XSOverlay) to 4026 from 9000 so it sends to TTS Voice Wizard instead of VRChat
- Press the Activate OSC Listener Button
- That's it, now when you have XSOverlay open it will send OSC messages to TTS Voice Wizard. To have the messages appear in-game this feature must be used in conjunction with the Spotify Integration feature.
- Download an app to allow you to send Quest Battery Life Over OSC. Recommended Apps:
App | Info |
---|---|
Quest2-TTSVoiceWizard | Quest2-TTSVoiceWizard is a modified version of Sergey004/Quest2-VRC |
quest2-battery-to-vrchat-osc | JavaScript implementation created by NekoSuneVR |
{HMDBattery} //Send to TTS Voice Wizard as a float from address: /avatar/parameters/HMDBat
{leftControllerBattery} //Send to TTS Voice Wizard as a float from address: /avatar/parameters/leftControllerBattery
{rightControllerBattery} //Send to TTS Voice Wizard as a float from address: /avatar/parameters/rightControllerBattery
{averageControllerBattery} //Send to TTS Voice Wizard as a float from address: /avatar/parameters/averageControllerBattery
Quest controller battery life is not supported with XSOverlay as shown in this image using a Quest 2
- https://github.com/200Tigersbloxed/HRtoVRChat_OSC
- only thing you would change in the setup process is for port in HRtoVRChat_OSC to be changed to TTS Voice Wizard (4026 or what ever you changed the receive port to)
-
You can also use my modified https://github.com/VRCWizard/vrc-osc-miband-hrm-TTSVoiceWizard-compatible
-
Once you have OSC Listener enabled and your Heartrate app running and sending to TTS Voice Wizard you can either use the default output by turning on Output Heartrate or set up the media integration tab like so
- Have a program send an osc message to
/TTSVoiceWizard/TextToSpeech
on the specified Receive Port with the OSC Listener Enabled. - The string will use what ever settings are selected in the Text to Speech tab when received.
- Have a program connect and send strings to
ws://{IPAddress}:{Port}
where {IPAddress} will me that of the machine running TTS Voice Wizard (if it is the same machine it would be "localhost"). And the specified {Port} (9008 by default)- https://vrcwizard.github.io/TTS-Voice-Wizard-React/ is example of a web app capable of sending data to the web socket server