Code Monkey home page Code Monkey logo

discordearsgo's Introduction

DiscordEarsGo

A speech-to-text bot for Discord written in GoLang. Can be useful for hearing impaired and deaf people. Try the bot for yourself on our Discord server: https://discord.gg/ApdTMG9

Note: This works only on a Linux x86 platform

Setup

In your Discord Developers Bot settings, you need to enable these intents:

image

  1. You may need to install opus apt-get install opus-tools
  2. Clone this repository and cd inside
  3. Create .env file to provide your Discord bot token: TOKEN=...

Usage

  • Run VOSK_PATH=$(pwd)/vosk-linux-x86_64-0.3.45 LD_LIBRARY_PATH=$VOSK_PATH CGO_CPPFLAGS="-I $VOSK_PATH" CGO_LDFLAGS="-L $VOSK_PATH" go run ears.go
  • Or use go build to (with the above CLI prefix) and run the binary

Usage

  1. Enter one of your voice channels.
  2. In one of your text channels type: *join, the bot will join the voice channel.
  3. Everything said within that channel will be transcribed into text (as long as the bot is within the voice channel).
  4. Type *leave to make the bot leave the voice channel.

STT

You can find and download more STT models here: https://alphacephei.com/vosk/models

discordearsgo's People

Contributors

inevolin avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mrslushiey

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.