{"id":13622297,"url":"https://github.com/nullabork/talkbot","last_synced_at":"2025-04-15T05:34:36.302Z","repository":{"id":53019502,"uuid":"127360873","full_name":"nullabork/talkbot","owner":"nullabork","description":"Text-to-speech and translation bot for Discord","archived":false,"fork":false,"pushed_at":"2023-04-25T10:46:41.000Z","size":13779,"stargazers_count":30,"open_issues_count":8,"forks_count":22,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-08T09:43:10.578Z","etag":null,"topics":["bot","discord","discord-bot","language-translation","text-to-speech","tts","voice-channel"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nullabork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"patreon":"talkbot"}},"created_at":"2018-03-30T00:23:18.000Z","updated_at":"2024-02-26T13:40:09.000Z","dependencies_parsed_at":"2024-06-12T04:37:33.252Z","dependency_job_id":"bacdb15b-6f84-4697-8d70-94bd94df04c2","html_url":"https://github.com/nullabork/talkbot","commit_stats":null,"previous_names":[],"tags_count":90,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullabork%2Ftalkbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullabork%2Ftalkbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullabork%2Ftalkbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullabork%2Ftalkbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nullabork","download_url":"https://codeload.github.com/nullabork/talkbot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249016300,"owners_count":21198828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","discord","discord-bot","language-translation","text-to-speech","tts","voice-channel"],"created_at":"2024-08-01T21:01:17.317Z","updated_at":"2025-04-15T05:34:36.295Z","avatar_url":"https://github.com/nullabork.png","language":"JavaScript","funding_links":["https://patreon.com/talkbot"],"categories":["JavaScript","TypeScript"],"sub_categories":[],"readme":"[logo]: https://raw.githubusercontent.com/nullabork/artwork/master/talkbot/face/png/face_200.png 'Talkbot'\r\n\r\n![alt text](https://raw.githubusercontent.com/nullabork/artwork/master/talkbot/face/png/face_200.png 'Talkbot')\r\n\r\n# Talkbot\r\n\r\nDiscord bot for text-to-speech and language translation\r\n\r\nTry it out here: [https://discord.gg/NxrPp8g](https://discord.gg/NxrPp8g)\r\n\r\n# Docker\r\n\r\n1. If your on windows10, Install wsl2 https://docs.microsoft.com/en-us/windows/wsl/install-win10 else go to step two ;)\r\n2. Install docker https://docs.docker.com/get-docker/\r\n3. Clone this repo or [Download the talkbot files](https://github.com/nullabork/talkbot/archive/refs/heads/master.zip) and extract them.\r\n4. Copy `config/auth.example` to `config/auth.json` and put in your discord app key.\r\n    - To learn how to setup a discord app and get this token [go here](https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-\u0026-getting-a-token)\r\n    - AMAZON: To learn how to setup Amazon AWS Polly [go here](https://docs.aws.amazon.com/polly/latest/dg/setting-up.html)\r\n    - AZURE: To learn how to setup Azure [go here](https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/overview#try-the-speech-service-for-free)\r\n5. Add a file, `config/google-auth.json` with the google credentials\r\n    - GOOGLE: To learn how to setup your Google API credentials [go here](https://cloud.google.com/text-to-speech/docs/quickstart-client-libraries)\r\n6. In the command line run `docker pull faxwang/talkbot:latest` this will take a while.\r\n7. In the command line run change directory to the project root and run\r\n    - `docker-compose up -d` to run talkbot in the background\r\n    - `docker-compose up` to run talkbot in the foreground\r\n8. It should be running now.\r\n\r\n# Quick start\r\n\r\n1. [Click here to add the bot to your discord](https://discordapp.com/oauth2/authorize?\u0026client_id=428866923267358721\u0026scope=bot\u0026permissions=0): https://discordapp.com/oauth2/authorize?\u0026client_id=428866923267358721\u0026scope=bot\u0026permissions=0\r\n2. Join a voice channel\r\n3. Type `!follow`\r\n4. Type the message `Hello World` to hear it read out to you\r\n\r\n# Documentation\r\n\r\nCheck out the documentation on gitbook: https://nullabork.gitbook.io/talkbot/\r\n\r\n# Commands in discord\r\n\r\nThe bot requires a master to control it. Once you're its master it'll convert your text into voice in the current voice channel. The bot will also follow you between voice channels. Other users will only be able to use the bot if you permit them to use it. If you don't use the bot for 30 minutes it'll unfollow you.\r\n\r\n```yaml\r\n= Control =\r\n !follow            :: The bot will join your voice channel and speak what you write\r\n !unfollow          :: Release the bot\r\n !sidle             :: Take control of the bot from someone else\r\n !transfer          :: Transfer control of the bot to another person\r\n !permit [\u003cuser\u003e]   :: Permit someone else to use the bot whilst it's following you\r\n !unpermit [\u003cuser\u003e] :: Unpermit someone else from using the bot\r\n !tts               :: Speak when you're muted\r\n\r\n= Personalization =\r\n !defaults              :: Reset your default voice settings\r\n !mypitch \u003cpitch\u003e       :: Alter the pitch of the bot's voice. Valid values are -20 to 20\r\n !myspeed \u003cspeed\u003e       :: Alter the speed the bot talks. 1.0 is the default. Valid values are 0.25 to 4.0\r\n !myvoice \u003cvoice|alias\u003e :: Change accent or style.\r\n !tolang \u003clang\u003e         :: Translate your text to a different language eg. en, fr, jp, de etc.\r\n !mute                  :: Mute yourself so your text is not read out\r\n !unmute                :: Unmute yourself so all your text is read out\r\n\r\n= More =\r\n !help info   :: info help commands\r\n !help server :: server help commands\r\n```\r\n\r\n# Setup your own bot\r\n\r\nUse this to setup your own bot on your own server.\r\nNote you will require a Google Cloud account to use their TTS API and an Amazon Polly account to use Amazon TTS voices.\r\nBoth of these services have free tiers but may cost you money if you exceed their free caps.\r\nEach of these services can be turned on and off in the configuration of the bot.\r\n\r\n## Win 10 Software requirements\r\n\r\n-   node js - v18\r\n-   git\r\n\r\n## Install, setup and run\r\n\r\n1. Clone this respository\r\n    - `git clone https://github.com/nullabork/talkbot talkbot`\r\n    - `git\r\n2. Duplicate the `auth.example` file in the `config` directory and rename the new file to `auth.json` edit the file and paste in your discord app key.\r\n    - To learn how to setup a discord app and get this token [go here](https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-\u0026-getting-a-token)\r\n3. Setup your prefered API provider - Google, Amazon AWS Polly or Azure or any combination of those.\r\n    - GOOGLE: To learn how to setup your Google API credentials [go here](https://cloud.google.com/text-to-speech/docs/quickstart-client-libraries)\r\n    - AMAZON: To learn how to setup Amazon AWS Polly [go here](https://docs.aws.amazon.com/polly/latest/dg/setting-up.html)\r\n    - AZURE: To learn how to setup Azure [go here](https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/overview#try-the-speech-service-for-free)\r\n4. Install NPM dependencies\r\n    ```yaml\r\n    npm install\r\n    ```\r\n5. Run the bot!\r\n    - `node bot.js`\r\n\r\n# Updating to the latest code\r\n\r\nTo update to the latest code run:\r\n`git pull`\r\n\r\n# Troubleshooting\r\n\r\n[Talk to us on discord](https://discord.gg/NxrPp8g)\r\n\r\n## Google TTS API Issues\r\n\r\nConfirm you've put the path to your API credentials file in the env var GOOGLE_APPLICATION_CREDENTIALS. [See Google cloud docs here](https://cloud.google.com/text-to-speech/docs/quickstart-client-libraries)\r\n\r\n\r\n# Acknowledgements\r\n\r\n-   WootoSmash - coder/bugmaker/shitposter\r\n-   FaxWang - coder/bugfinder/shitposter\r\n-   GreenLionVoltronPilot - bugfinder/shitposter\r\n-   Kingk22 - bugfinder/shitposter/questionanswerer\r\n-   Kelinmiriel - bugfinder/shitposter\r\n-   All the npm package builders!\r\n\r\n[Want to shitpost also?](https://discord.gg/NxrPp8g)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullabork%2Ftalkbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnullabork%2Ftalkbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullabork%2Ftalkbot/lists"}