cyberkitsune / vrc-osc-scripts

VRChat Chatbox OSC scripts for speech to text and audio now playing
MIT License
117 stars 18 forks source link
osc python vrchat

vrc-osc-scripts

This repo contains various python OSC helper scripts that I made for VRChat, mostly stuff that interacts with the new chatbox api!

For additional feedback or help feel free to join the Discord!

All these scripts require python3 and use pip for dependency management unless otherwise specified.

Be sure to enable OSC in your VRChat radial menu before using these scripts!

If you don't have python installed already, and you are running Windows, get it from here and be sure to click "Add Python to environment variables" in the installer (Under Customize Install -> Advanced Options)

If you want a quick video tutorial on how to use these scripts, check this video I made!

VRCSubs

This script attempts to auto-transcribe your microphone audio into chat bubbles using the Google Web Search Speech API (via the SpeechRecognition package) -- It's considered a prototype and has many issues, but is kinda neat!

VRCSubs in action!

Usage

Auto

If you're on windows, try double-clicking RunVRCSubs.bat after installing python!

Manual

First, install deps:

pip install -r VRCSubs/Requirements.txt

Then, get in VR and launch the game, and ensure your headset mic / mic you use is your default in windows! (Setting a specific mic isn't supported yet)

Last, run the script

python VRCSubs/vrcsubs.py

The script should start listening to you right away and will send chatbox messages as you speak!

OSC Avatar Control

You don't need any avatar-specific setup to use VRCSubs! But if you'd like you can add some additional paramaters to make controlling it easier. For more information check out: VRCSubs OSC Avatar Toggle Setup

Configuration

Some options can be configured in VRCSubs/Config.yml -- Just edit that file and check the comments to see what the options are!

Translation

There is a prototype live translation function in VRCSubs. It's considered a prototype and the output may not be very useful, but if you with to try it adjust the options EnableTranslation and TranslateTo in VRCSubs/Config.yml!

To-do

VRCNowplaying

This script broadcasts what you're currently listening to your chatbox, grabbing the data from the Windows MediaManager API.

VRCNowplaying in action!

Usage

Auto

If you're on windows, try double-clicking RunVRCNowPlaying.bat after installing python!

Manual

First, install deps:

pip install -r VRCNowPlaying/Requirements.txt

Then, just run the Script

python VRCNowPlaying/vrcnowplaying.py

Now, listen to some music and watch your chatbox!

Config

Some options can be configured in VRCNowPlaying/Config.yml -- Just edit that file and check the comments to see what the options are!

To-do