
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
@mastra/speech-replicate
Advanced tools
Affected versions:
Replicate Speech integration for Mastra, providing Text-to-Speech (TTS) capabilities using various AI models hosted on Replicate.
npm install @mastra/speech-replicate
The module requires the following environment variable:
REPLICATE_API_TOKEN=your_api_token
import { ReplicateTTS } from '@mastra/speech-replicate';
// Initialize with configuration
const tts = new ReplicateTTS({
model: {
name: 'default', // Default model
apiToken: 'your-api-token', // Optional, can use REPLICATE_API_TOKEN env var
},
});
// List available models
const voices = await tts.voices();
// Generate speech
const result = await tts.generate({
voice: 'model-id',
text: 'Hello from Mastra!',
});
// Stream speech
const stream = await tts.stream({
voice: 'model-id',
text: 'Hello from Mastra!',
});
Replicate provides access to various TTS models:
Each model has its own unique characteristics and capabilities. View the available models in the voices.ts file or Replicate's model collection.
FAQs
Mastra Replicate speech integration
The npm package @mastra/speech-replicate receives a total of 772 weekly downloads. As such, @mastra/speech-replicate popularity was classified as not popular.
We found that @mastra/speech-replicate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.