Giter VIP home page Giter VIP logo

vrc-osc-scripts's Introduction

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

  • Make the hacky audio-chunking I use cut off words less
  • Consider alternative Speech-to-text API
  • Support swaping listened to / translated language via OSC input
  • Make a self-updating standalone exe
  • Support OSCQuery when it's out
  • Communicate VRC mic mute status
  • Support non-default mic / better handle mic switching
  • Support VRC's chatbox rate-limit
  • Add gif of this in action to this README

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

  • Support customizing output format via yml
  • Gif of this working
  • Anything else?

vrc-osc-scripts's People

Contributors

0kq-github avatar cyberkitsune avatar jamieslyman avatar senkodev avatar shingenpizza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vrc-osc-scripts's Issues

Chat box pulse

I'm not sure if I installed something wrong or what but when I activate the vrcnowplaying it'll open and load but in the game the box its playing in will pulse at various speeds.

system tray?

hello! i was wondering if there was a way you could make the program minimize to system tray. im pretty sure itd be easy to implement

More support for other unique characters?

Are there plans to get other unique language characters supported as well other then Japanese? Other characters like รœ and ร˜ for example get filtered as ? as well.

image

[Feedback Requested] Splitting up this Repository

I plan on splitting this repo at some point, potentially, but also want some feedback on it.

As they have grown a little bit, I consider VRCNowplaying and VRCSubs to be unique enough that they should live in their own repos -- I also want to eventually start releasing builds as exes and do auto-updating, and splitting the repos will be a good way to go about this.

This repo has been linked around several times so I will probably keep the URL around with a Readme.md linking to the new repos.

If anyone who is contributing to this project or uses this repo do update the scripts has any feedback on the matter, please comment on this issue!

Support for more speech recognizer engines (such as Vosk)

Hi i actually did something for personal use exactly like Your Vrc Subs
I thought id alert you of a pretty cool module
Vosk its Offline Lightweight (for the small model) Speech Recognition Really easy to use
making my own subs was actually my first python project lol
https://alphacephei.com/vosk/
how do i add labels lmao
i made a github account just for this lmao
also sorry if this was like the wrong tab i couldn't find a like discussions page

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.