text to speech bot for discord

Overview

discord-tts

text to speech bot for discord

run

$ export TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
$ export CLIENT_ID=YYYYYYYYYYYYYYYY
$ go run main.go

usage

  1. @ join : The bot enters the same voice chat as you
  2. In same channel of 1 , send caht hogehuga : Bot talks to 'hogehuga' in voice chat.

In this sample, the bot says "test".

sample

contribution

Welcome

You might also like...
Templating system for HTML and other text documents - go implementation

FAQ What is Kasia.go? Kasia.go is a Go implementation of the Kasia templating system. Kasia is primarily designed for HTML, but you can use it for any

Package sanitize provides functions for sanitizing text in golang strings.

sanitize Package sanitize provides functions to sanitize html and paths with go (golang). FUNCTIONS sanitize.Accents(s string) string Accents replaces

Small and fast FTS (full text search)

Microfts A small full text indexing and search tool focusing on speed and space. Initial tests seem to indicate that the database takes about twice as

A diff3 text merge implementation in Go

Diff3 A diff3 text merge implementation in Go based on the awesome paper below. "A Formal Investigation of Diff3" by Sanjeev Khanna, Keshav Kunal, and

gomtch - find text even if it doesn't want to be found

gomtch - find text even if it doesn't want to be found Do your users have clever ways to hide some terms from you? Sometimes it is hard to find forbid

Unified text diffing in Go (copy of the internal diffing packages the officlal Go language server uses)

gotextdiff - unified text diffing in Go This is a copy of the Go text diffing packages that the official Go language server gopls uses internally to g

Convert scanned image PDF file to text annotated PDF file
Convert scanned image PDF file to text annotated PDF file

Jisui (自炊) This tool is PoC (Proof of Concept). Jisui is a helper tool to create e-book. Ordinary the scanned book have not text information, so you c

A modern text indexing library for go
A modern text indexing library for go

bleve modern text indexing in go - blevesearch.com Features Index any go data structure (including JSON) Intelligent defaults backed up by powerful co

Paranoid text spacing in Go (Golang)

pangu.go Paranoid text spacing for good readability, to automatically insert whitespace between CJK (Chinese, Japanese, Korean) and half-width charact

Comments
  • 色々と追加

    色々と追加

    @mentionかprefixでの呼び出しをswitch コメントアウトの追加 @mentionでの反応がなかったため修正 起動: go run main.go -call (mention|prefix{任意}) -token <bot_token> -id <client_id> prefixについて... @mention joinなどだったのが{任意} joinで呼び出せるように(起動時に設定) !ttsでも?joinでも反応するはず(呼び出すときにエスケープしないといけないかもしれない)

    opened by atomu21263 7
  • <prefix> leave時にbotがcrashする

    leave時にbotがcrashする

    再現 1. join 2. leave この2を実行しbotがVCからleaveした瞬間にcrashする

    crash code

    panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0x64e6fc]

    goroutine 988 [running]: github.com/takanakahiko/discord-tts/session.(*TtsSession).GuidID(...) /home/pi/discord-tts./session/session.go:46 github.com/takanakahiko/discord-tts/session.(*TtsSessionManager).Remove(0x40000ae320, 0x0, 0x0, 0x0, 0x1) /home/pi/discord-tts./session/manager.go:46 +0x64 main.onMessageCreate(0x40000bed80, 0x40004a0510) /home/pi/discord-tts./main.go:134 +0x1588 github.com/bwmarrin/discordgo.messageCreateEventHandler.Handle(0x727ea8, 0x40000bed80, 0x6ab4a0, 0x40004a0510) /home/pi/go/pkg/mod/github.com/bwmarrin/[email protected]/eventhandlers.go:497 +0x50 created by github.com/bwmarrin/discordgo.(*Session).handle /home/pi/go/pkg/mod/github.com/bwmarrin/[email protected]/event.go:171 +0xec exit status 2

    opened by atomu21263 2
  • Coefont 以外の API を利用できるようにする

    Coefont 以外の API を利用できるようにする

    https://github.com/takanakahiko/discord-tts/pull/28#pullrequestreview-1012638705

    Coefont の API が個人開発だと利用しづらくなるみたいで、代替策も用意しなきゃなという気持ちがある 😮‍💨 https://prtimes.jp/main/html/rd/p/000000024.000078329.htmlx

    opened by takanakahiko 0
Owner
takanakahiko
プリパラだいすき
takanakahiko
Google GCP Text-to-Speech Service in one simple binary ;)

Google text-to-speak Simple Binary file This repository is a simple implementation of google text-to-speak service. Required enable API in GCP (https:

Mikołaj Jeziorny 1 Dec 25, 2022
Script to inject Aliucord into a Discord ipa.

Aliucord-Patcher Script to patch Discord's ipa with a custom build of hermes, apply a custom icon and apply changes to Info.plist. Usage: go run cmds/

Zoey 3 Jan 15, 2022
A general purpose application and library for aligning text.

align A general purpose application that aligns text The focus of this application is to provide a fast, efficient, and useful tool for aligning text.

John Moore 78 Sep 27, 2022
Parse placeholder and wildcard text commands

allot allot is a small Golang library to match and parse commands with pre-defined strings. For example use allot to define a list of commands your CL

Sebastian Müller 55 Nov 24, 2022
Guess the natural language of a text in Go

guesslanguage This is a Go version of python guess-language. guesslanguage provides a simple way to detect the natural language of unicode string and

Nikita Vershinin 56 Dec 26, 2022
omniparser: a native Golang ETL streaming parser and transform library for CSV, JSON, XML, EDI, text, etc.

omniparser Omniparser is a native Golang ETL parser that ingests input data of various formats (CSV, txt, fixed length/width, XML, EDI/X12/EDIFACT, JS

JF Technology 532 Jan 4, 2023
Produces a set of tags from given source. Source can be either an HTML page, Markdown document or a plain text. Supports English, Russian, Chinese, Hindi, Spanish, Arabic, Japanese, German, Hebrew, French and Korean languages.

Tagify Gets STDIN, file or HTTP address as an input and returns a list of most popular words ordered by popularity as an output. More info about what

ZoomIO 26 Dec 19, 2022
Extract urls from text

xurls Extract urls from text using regular expressions. Requires Go 1.13 or later. import "mvdan.cc/xurls/v2" func main() { rxRelaxed := xurls.Relax

Daniel Martí 999 Jan 7, 2023
Easy AWK-style text processing in Go

awk Description awk is a package for the Go programming language that provides an AWK-style text processing capability. The package facilitates splitt

Scott Pakin 94 Jul 25, 2022
Change the color of console text.

go-colortext package This is a package to change the color of the text and background in the console, working both under Windows and other systems. Un

Yi Deng 215 Oct 26, 2022