{"_id":"@djmahirnationtv/discord-reconizer","name":"@djmahirnationtv/discord-reconizer","dist-tags":{"latest":"3.4.2"},"versions":{"3.4.2":{"name":"@djmahirnationtv/discord-reconizer","version":"3.4.2","description":"Extension for making discord speech recognition bots.","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.cts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"dev":"nodemon dist/index.js","watch":"tsdown --watch","doc":"typedoc","build":"tsdown","test":"vitest run","test:watch":"vitest","coverage":"vitest run --coverage","lint":"oxlint --type-aware src/ && oxfmt --check src/ && tsc --noEmit","format":"oxfmt --write src/ tests/","lint:fix":"oxlint --fix --type-aware src/ && oxfmt --write src/","prepare":"husky","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/DJMahirNationTV/-djmahirnationtv-discord-reconizer.git"},"keywords":["discord.js","discord","speechrecognition"],"author":{"name":"DJMahirNationTV"},"license":"MIT","bugs":{"url":"https://github.com/DJMahirNationTV/-djmahirnationtv-discord-reconizer/issues"},"homepage":"https://djmahirnationtv.com","engines":{"node":">=20.0.0"},"peerDependencies":{"@discordjs/opus":"^0.10.0","@discordjs/voice":"^0.19.0","discord.js":"14.x"},"dependencies":{"@snazzah/davey":"^0.1.10","prism-media":"^2.0.0-alpha.0","wav":"^1.0.2"},"devDependencies":{"@types/libsodium-wrappers":"^0.7.14","@types/node":"^25.3.5","@types/node-wit":"^6.1.0","@types/wav":"^1.0.4","@vitest/coverage-v8":"^4.0.18","dotenv":"^17.3.1","ffmpeg-static":"^5.3.0","husky":"^9.1.7","libsodium-wrappers":"^0.8.2","oxfmt":"^0.36.0","oxlint":"^1.51.0","oxlint-tsgolint":"^0.16.0","tsdown":"^0.21.0","tweetnacl":"^1.0.3","typedoc":"^0.28.5","typescript":"^5.8.3","vitest":"^4.0.18"},"gitHead":"aba2eb538497a7ed18f98b191ba1352410e34fa5","_id":"@djmahirnationtv/discord-reconizer@3.4.2","_nodeVersion":"24.2.0","_npmVersion":"11.6.1","dist":{"integrity":"sha512-9FHJDxHagOM+2tL7BDNfd3cZyAbaNmAjfgS7CKg8mRiBQmZ9MYF26bHnSIaQmhktfr4Z8WEZHEgW/ul8SSnOLA==","shasum":"c14ca375d9898a4b0637aaac2559a538d554ace0","tarball":"https://registry.npmjs.org/@djmahirnationtv/discord-reconizer/-/discord-reconizer-3.4.2.tgz","fileCount":9,"unpackedSize":79443,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDXPgN76vpSO7GnDbrMbwci83dKI6BL8LFAcuLAWE79CwIhAIPYJLXlnEP/PvV6k4OpSjwg//m60GOGv91dYXn+B14T"}]},"_npmUser":{"name":"djmahirnationtv","email":"mahirkum04@gmail.com"},"directories":{},"maintainers":[{"name":"djmahirnationtv","email":"mahirkum04@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/discord-reconizer_3.4.2_1774445604370_0.9563691061140047"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-25T13:33:24.285Z","3.4.2":"2026-03-25T13:33:24.509Z","modified":"2026-03-25T13:33:24.722Z"},"maintainers":[{"name":"djmahirnationtv","email":"mahirkum04@gmail.com"}],"description":"Extension for making discord speech recognition bots.","homepage":"https://djmahirnationtv.com","keywords":["discord.js","discord","speechrecognition"],"repository":{"type":"git","url":"git+https://github.com/DJMahirNationTV/-djmahirnationtv-discord-reconizer.git"},"author":{"name":"DJMahirNationTV"},"bugs":{"url":"https://github.com/DJMahirNationTV/-djmahirnationtv-discord-reconizer/issues"},"license":"MIT","readme":"# Discord Speech Recognition Extension\n\nThis is an extension for [discord.js](https://discord.js.org) library that makes creating discord speech recognition bots as easy as common text bots.\n\n## Installation\n\n**Discord.js v14**:\n\n```\nnpm i @djmahirnationtv/discord-reconizer\n```\n\nCheckout simpleBot example in examples directory for ready-to-use bot.\n\n**Discord.js v13**:\n\n```\nnpm i @djmahirnationtv/discord-reconizer@2\n```\n\n**Discord.js v12**:\n\n```\nnpm i @djmahirnationtv/discord-reconizer@1\n```\n\n\n## Example usage for discord.js v14\n\n```javascript\nconst { Client, GatewayIntentBits, Events } = require(\"discord.js\");\nconst { joinVoiceChannel } = require(\"@discordjs/voice\");\nconst { addSpeechEvent, SpeechEvents } = require(\"@djmahirnationtv/discord-reconizer\");\n\nconst client = new Client({\n  intents: [\n    GatewayIntentBits.GuildVoiceStates,\n    GatewayIntentBits.GuildMessages,\n    GatewayIntentBits.Guilds,\n    GatewayIntentBits.MessageContent,\n  ],\n});\naddSpeechEvent(client);\n\nclient.on(Events.MessageCreate, (msg) => {\n  const voiceChannel = msg.member?.voice.channel;\n  if (voiceChannel) {\n    joinVoiceChannel({\n      channelId: voiceChannel.id,\n      guildId: voiceChannel.guild.id,\n      adapterCreator: voiceChannel.guild.voiceAdapterCreator,\n      selfDeaf: false,\n    });\n  }\n});\n\nclient.on(SpeechEvents.speech, (msg) => {\n  // If bot didn't recognize speech, content will be empty\n  if (!msg.content) return;\n\n  msg.author.send(msg.content);\n});\n\nclient.on(Events.ClientReady, () => {\n  console.log(\"Ready!\");\n});\n\nclient.login(\"token\");\n```\n\nYou need to enable message content for this example, so it can react to messages in chat.\n\n![](https://i.imgur.com/06doHXE.png)\n","readmeFilename":"README.md","_rev":"1-3fcc8c18a92fd7a6a0f11e2ba0566e41"}