🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@mastra/speech-replicate

Package Overview
Dependencies
Maintainers
1
Versions
199
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package version was removed
This package version has been unpublished, mostly likely due to security reasons
This package has malicious versions linked to the ongoing "Mastra AI framework compromise" supply chain attack.

Affected versions:

0.2.1
View campaign page

@mastra/speech-replicate

Mastra Replicate speech integration

unpublished
npmnpm
Version
0.2.1
Version published
Weekly downloads
772
203.94%
Maintainers
1
Weekly downloads
 
Created
Source

@mastra/speech-replicate

Replicate Speech integration for Mastra, providing Text-to-Speech (TTS) capabilities using various AI models hosted on Replicate.

Installation

npm install @mastra/speech-replicate

Configuration

The module requires the following environment variable:

REPLICATE_API_TOKEN=your_api_token

Usage

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!',
});

Features

  • Access to multiple TTS models
  • High-quality speech synthesis
  • Streaming support
  • Model version control
  • Various voice options

Model Options

Replicate provides access to various TTS models:

  • Coqui TTS
  • Bark
  • Tortoise
  • Facebook MMS
  • And more...

Each model has its own unique characteristics and capabilities. View the available models in the voices.ts file or Replicate's model collection.

Additional Features

  • Model version selection
  • Custom model parameters
  • Multiple output formats
  • Batch processing
  • Progress tracking

FAQs

Package last updated on 17 Jun 2026

Did you know?

Socket

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.

Install

Related posts