🚀 Socket Launch Week Day 4:Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection.Learn more
Sign In

@mastra/speech-azure

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-azure

Mastra Azure speech integration

unpublished
npmnpm
Version
0.2.1
Version published
Weekly downloads
651
112.75%
Maintainers
1
Weekly downloads
 
Created
Source

@mastra/speech-azure

Azure Speech integration for Mastra, providing Text-to-Speech (TTS) capabilities using Azure's Neural Voice technology.

Installation

npm install @mastra/speech-azure

Configuration

The module requires the following environment variables:

AZURE_API_KEY=your_api_key
AZURE_REGION=your_region # e.g., eastus, westus2

Usage

import { AzureTTS } from '@mastra/speech-azure';

// Initialize with configuration
const tts = new AzureTTS({
  model: {
    name: 'en-US-AriaNeural', // Default voice
    apiKey: 'your-api-key', // Optional, can use AZURE_API_KEY env var
    region: 'your-region', // Optional, can use AZURE_REGION env var
  },
});

// List available voices
const voices = await tts.voices();

// Generate speech
const result = await tts.generate({
  voice: 'en-US-AriaNeural',
  text: 'Hello from Mastra!',
});

// Stream speech
const stream = await tts.stream({
  voice: 'en-US-AriaNeural',
  text: 'Hello from Mastra!',
});

Features

  • Neural Text-to-Speech synthesis
  • 400+ neural voices across 100+ languages and variants
  • Streaming support
  • High-quality speech output
  • Natural-sounding voice synthesis

Voice Options

The module provides access to all Azure Neural voices. Some popular English voices include:

  • en-US-AriaNeural (Female)
  • en-US-GuyNeural (Male)
  • en-US-JennyNeural (Female)
  • en-GB-SoniaNeural (Female)
  • en-AU-NatashaNeural (Female)

View the complete list in the voices.ts file or Azure's documentation.

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