DEV Community

Cover image for Translator Voicebot in VRChat 2
Lunran
Lunran

Posted on

1 1

Translator Voicebot in VRChat 2

What's this?

System

  • ASR, Translation: googletrans
  • TTS: gtts

  • Sound Pipeline

    • application -> speaker -> dialog.py -> mic -> application
    • Direct loop also exists.. (application -> speaker -> mic -> application)
  • (TBD) Release the scripts in GitHub

    • Need to clean the codes and write documents..

Prerequisites

  • Ubuntu 18.04.5 LTS
  • Voice chat application (VRChat for example)

Setup


$ sudo apt install portaudio19-dev pavucontrol python-xlib scrot
$ git clone https://github.com/Lunran/sts.git
$ cd sts
$ python3 -m venv venv
$ . venv/bin/activate
$ pip install --upgrade pip
$ pip install -r requirements.txt

Usage

  • Run VRChat
    • Open "Settings", "Audio Volume"
    • Mute "UI/Menu", "World" and "Avatars"
  • Run the script
    • refer to "$ python dialog.py -h" for details

API Trace View

How I Cut 22.3 Seconds Off an API Call with Sentry

Struggling with slow API calls? Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more →

Top comments (0)

Heroku

This site is powered by Heroku

Heroku was created by developers, for developers. Get started today and find out why Heroku has been the platform of choice for brands like DEV for over a decade.

Sign Up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay