{"_id":"@caleblawson/voice-deepgram","name":"@caleblawson/voice-deepgram","dist-tags":{"latest":"0.10.3"},"versions":{"0.10.3":{"name":"@caleblawson/voice-deepgram","version":"0.10.3","description":"Mastra Deepgram voice integration","type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"license":"Elastic-2.0","dependencies":{"@deepgram/sdk":"^3.13.0","zod":"^3.25.57"},"devDependencies":{"@microsoft/api-extractor":"^7.52.8","@types/node":"^20.19.0","eslint":"^9.28.0","tsup":"^8.5.0","typescript":"^5.8.3","vitest":"^2.1.9","@internal/lint":"0.0.13","@mastra/core":"npm:@caleblawson/core@0.10.7-alpha.0"},"peerDependencies":{"@mastra/core":"^0.10.0-alpha.0"},"scripts":{"build":"tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting","build:watch":"pnpm build --watch","test":"vitest run","lint":"eslint ."},"gitHead":"c31e90130a5c9765c23f688ecea70adc6164543d","_id":"@caleblawson/voice-deepgram@0.10.3","_integrity":"sha512-wRFxHOoX1Y3sh9h5QDhWesbwP8qkXncX1XZZGMfdsQWHqbQ77jZu6pdkk6pcDYNPBI4FwsjQVgrQgNTWIYU+ZA==","_resolved":"C:\\Users\\caleb\\AppData\\Local\\Temp\\dfc3301c9a9f745bdbbed763e18f5ac9\\caleblawson-voice-deepgram-0.10.3.tgz","_from":"file:caleblawson-voice-deepgram-0.10.3.tgz","_nodeVersion":"21.2.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-wRFxHOoX1Y3sh9h5QDhWesbwP8qkXncX1XZZGMfdsQWHqbQ77jZu6pdkk6pcDYNPBI4FwsjQVgrQgNTWIYU+ZA==","shasum":"322049b1737c9ca2eeb900a6b6470c468492478d","tarball":"https://registry.npmjs.org/@caleblawson/voice-deepgram/-/voice-deepgram-0.10.3.tgz","fileCount":9,"unpackedSize":21664,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDwfxBErvZ1M245Nq6I9NyJC5T1pw/tx0L9OOiAuPg/oQIgVS59RTsVzKD6vXusLwhnvWh/QcsHAx8hT6bT3/U5/dY="}]},"_npmUser":{"name":"caleblawson","email":"caleb.lawson@dynapt.com","actor":{"name":"caleblawson","email":"caleb.lawson@dynapt.com","type":"user"}},"directories":{},"maintainers":[{"name":"caleblawson","email":"caleb.lawson@dynapt.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/voice-deepgram_0.10.3_1750741039846_0.5540546709668792"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-24T04:57:19.769Z","0.10.3":"2025-06-24T04:57:20.140Z","modified":"2025-06-24T04:57:20.449Z"},"maintainers":[{"name":"caleblawson","email":"caleb.lawson@dynapt.com"}],"description":"Mastra Deepgram voice integration","license":"Elastic-2.0","readme":"# @mastra/voice-deepgram\r\n\r\nDeepgram voice integration for Mastra, providing both Text-to-Speech (TTS) and Speech-to-Text (STT) capabilities using Deepgram's advanced AI models.\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm install @mastra/voice-deepgram\r\n```\r\n\r\n## Configuration\r\n\r\nThe module requires a Deepgram API key, which can be provided through environment variables or directly in the configuration:\r\n\r\n```bash\r\nDEEPGRAM_API_KEY=your_api_key\r\n```\r\n\r\n## Usage\r\n\r\n```typescript\r\nimport { DeepgramVoice } from '@mastra/voice-deepgram';\r\n\r\n// Create voice with both speech and listening capabilities\r\nconst voice = new DeepgramVoice({\r\n  speechModel: {\r\n    name: 'aura-asteria-en', // Default voice\r\n    apiKey: 'your-api-key', // Optional, can use DEEPGRAM_API_KEY env var\r\n  },\r\n  listeningModel: {\r\n    name: 'nova', // Optional, specify a listening model\r\n    apiKey: 'your-api-key', // Optional, can use DEEPGRAM_API_KEY env var\r\n  },\r\n  speaker: 'aura-athena-en', // Optional, specify a speaker voice\r\n});\r\n\r\n// List available voices\r\nconst voices = await voice.getSpeakers();\r\n\r\n// Generate speech\r\nconst audioStream = await voice.speak('Hello from Mastra!', {\r\n  speaker: 'aura-athena-en', // Optional: override default speaker\r\n  speed: 1.0, // Optional: adjust speech speed\r\n});\r\n\r\n// Convert speech to text\r\nconst text = await voice.listen(audioStream);\r\n```\r\n\r\n## Features\r\n\r\n- High-quality Text-to-Speech synthesis\r\n- Accurate Speech-to-Text transcription\r\n\r\n## Voice Options\r\n\r\nDeepgram provides several AI voices with different characteristics:\r\n\r\n- aura-asteria-en (Female, American)\r\n- aura-athena-en (Female, American)\r\n- aura-zeus-en (Male, American)\r\n- aura-hera-en (Female, American)\r\n- aura-orion-en (Male, American)\r\n\r\nView the complete list in the `voices.ts` file or [Deepgram's documentation](https://developers.deepgram.com/docs/tts-models).\r\n\r\n### New Features\r\n\r\n- **Speaker Selection**: You can now specify a speaker voice when initializing the `DeepgramVoice` class. This allows for more personalized speech generation.\r\n\r\n- **Updated `speak` Method**: The `speak` method now supports an optional `speaker` parameter in the options, allowing you to dynamically choose the voice for speech synthesis.\r\n","readmeFilename":"README.md","_rev":"1-9ef7087060cc3f7e49df37f5fd3946ff"}