{"id":20040843,"url":"https://github.com/vadimkantorov/discordspeechtotext","last_synced_at":"2025-05-05T08:32:06.827Z","repository":{"id":146466391,"uuid":"269394264","full_name":"vadimkantorov/discordspeechtotext","owner":"vadimkantorov","description":"Discord Speech-To-Text bot in Python using Google Cloud Speech-To-Text API","archived":false,"fork":false,"pushed_at":"2020-06-06T20:25:24.000Z","size":29,"stargazers_count":22,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-08T19:47:08.073Z","etag":null,"topics":["discord","discord-bot","googlecloud","python","speech-recognition","speech-to-text"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vadimkantorov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-06-04T15:19:47.000Z","updated_at":"2025-04-06T18:35:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"9e4d9600-e77a-4a31-8503-4454c87ac632","html_url":"https://github.com/vadimkantorov/discordspeechtotext","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vadimkantorov%2Fdiscordspeechtotext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vadimkantorov%2Fdiscordspeechtotext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vadimkantorov%2Fdiscordspeechtotext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vadimkantorov%2Fdiscordspeechtotext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vadimkantorov","download_url":"https://codeload.github.com/vadimkantorov/discordspeechtotext/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252466738,"owners_count":21752424,"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":["discord","discord-bot","googlecloud","python","speech-recognition","speech-to-text"],"created_at":"2024-11-13T10:44:12.055Z","updated_at":"2025-05-05T08:32:06.822Z","avatar_url":"https://github.com/vadimkantorov.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### How to create and configure a Discord bot\nhttps://medium.com/voice-tech-podcast/how-to-make-a-discord-bot-with-python-e066b03bfd9\n\n### Installation\n```shell\n# install dependencies\n# make sure numpy is installed\npip install pynacl google-cloud-speech grpc\napt-get install -y libopus-dev\n\n# clone with the submodule\ngit clone --recursive https://github.com/vadimkantorov/discordspeechtotext\n```\n\n### Usage\n```shell\n# make sure to dump audio to debugdir instead of transcription, the discord client may be buggy, sometimes audio is cranky\npython3 discord_speech_to_text_bot.py --discord-bot-token-file discordbottoken.txt --debug debugdir --text-channel-name general --voice-channel-name General\n\n# run with google speech to text\npython3 discord_speech_to_text_bot.py --discord-bot-token-file discordbottoken.txt --google-api-credentials-file googleapikeycredentials.json --text-channel-name general --voice-channel-name General\n\n# you can also test your own speech-to-text system that serves a Google Cloud Speech2Text-like API; assumes your system listens at tcp://127.0.0.1:50000:\n# example of third-party impl of Google Cloud Speech2Text API: https://github.com/vadimkantorov/convasr/blob/master/serve_google_api.py\npython3 discord_speech_to_text_bot.py --discord-bot-token-file discordbottoken.txt --google-api-credentials-file= --endpoint 127.0.0.1:50000 --text-channel-name general --voice-channel-name General\n\n# then in the text channel use commands:\n#  \"!transcribeyes\" to start transcribing - the bot will send transcriptions of sound in the voice channel to the text channel\n#  \"!transcribenot\" to stop transcribing\n# one can specify --text-channel-id and --voice-channel-id for better control\n\n```\n\n### Background\nUnfortunately, [discord.py](https://github.com/Rapptz/discord.py) does not support yet receiving voice (as opposed to [discord.js](https://github.com/discordjs/discord.js)). In the meanwhile I use @imayhaveborkedit's excellent [fork](https://github.com/imayhaveborkedit/discord.py). Hopefully, the changes will get merged upstream: https://github.com/Rapptz/discord.py/issues/1094, https://github.com/Rapptz/discord.py/issues/444\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvadimkantorov%2Fdiscordspeechtotext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvadimkantorov%2Fdiscordspeechtotext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvadimkantorov%2Fdiscordspeechtotext/lists"}