{"_id":"@caleblawson/voice-google","name":"@caleblawson/voice-google","dist-tags":{"latest":"0.10.3"},"versions":{"0.10.3":{"name":"@caleblawson/voice-google","version":"0.10.3","description":"Mastra Google 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":{"@google-cloud/speech":"^6.7.1","@google-cloud/text-to-speech":"^6.1.0","zod":"^3.25.57"},"devDependencies":{"@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-google@0.10.3","_integrity":"sha512-Le2pLL7pI4anINW7BWwXZFzDiGamgdkqet9cbOB904A8O/Y32OF5pWNMOgDb6MYWelDtMXMHHWgudztAUKDLnQ==","_resolved":"C:\\Users\\caleb\\AppData\\Local\\Temp\\477057c2a316fccfd71e856a9f95495b\\caleblawson-voice-google-0.10.3.tgz","_from":"file:caleblawson-voice-google-0.10.3.tgz","_nodeVersion":"21.2.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-Le2pLL7pI4anINW7BWwXZFzDiGamgdkqet9cbOB904A8O/Y32OF5pWNMOgDb6MYWelDtMXMHHWgudztAUKDLnQ==","shasum":"411aa04257effb43401b0e9813c0aca2d5243106","tarball":"https://registry.npmjs.org/@caleblawson/voice-google/-/voice-google-0.10.3.tgz","fileCount":9,"unpackedSize":25608,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHOvsfo1YFGIgycSGFlKxjIz/Ff3Lq61lkONWJw6SwHeAiEA0ei/8g2okAMLqUfaTGfUvr5UWSyNGVKGJG+EkavmDv8="}]},"_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-google_0.10.3_1750741050168_0.27663381790876085"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-24T04:57:30.074Z","0.10.3":"2025-06-24T04:57:30.332Z","modified":"2025-06-24T04:57:30.634Z"},"maintainers":[{"name":"caleblawson","email":"caleb.lawson@dynapt.com"}],"description":"Mastra Google voice integration","license":"Elastic-2.0","readme":"# @mastra/voice-google\r\n\r\nGoogle Cloud Voice integration for Mastra, providing both Text-to-Speech (TTS) and Speech-to-Text capabilities.\r\n\r\n> Note: This package replaces the deprecated @mastra/speech-google package, combining both speech synthesis and recognition capabilities.\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm install @mastra/voice-google\r\n```\r\n\r\n## Configuration\r\n\r\nThe module requires the following environment variable:\r\n\r\n```bash\r\nGOOGLE_API_KEY=your_api_key\r\n```\r\n\r\n## Usage\r\n\r\n```typescript\r\nimport { GoogleVoice } from '@mastra/voice-google';\r\n\r\n// Initialize with configuration\r\nconst voice = new GoogleVoice({\r\n  speechModel: {\r\n    apiKey: 'your-api-key', // Optional, can use GOOGLE_API_KEY env var\r\n  },\r\n  listeningModel: {\r\n    apiKey: 'your-api-key', // Optional, can use GOOGLE_API_KEY env var\r\n  },\r\n  speaker: 'en-US-Standard-F', // Default 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: 'en-US-Standard-F',\r\n  languageCode: 'en-US',\r\n});\r\n\r\n// Transcribe speech\r\nconst text = await voice.listen(audioStream);\r\n```\r\n\r\n## Features\r\n\r\n- Neural Text-to-Speech synthesis\r\n- Speech-to-Text recognition\r\n- Multiple voice options across different languages\r\n- Streaming support for both speech and transcription\r\n- High-quality audio processing\r\n- Natural-sounding voice synthesis\r\n\r\n## Voice Options\r\n\r\nView the complete list using the `getSpeakers()` method or [Google Cloud's documentation](https://cloud.google.com/text-to-speech/docs/voices).\r\n","readmeFilename":"README.md","_rev":"1-ce4089da9b515a6c0bc0163c1542c7c1"}