npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@elizaos/plugin-simple-voice-root

v2.0.0-alpha.1

Published

Retro 1980s SAM Text-to-Speech plugin for ElizaOS agents

Readme

@elizaos/plugin-simple-voice

Retro 1980s SAM (Software Automatic Mouth) Text-to-Speech plugin for ElizaOS agents.

Available in TypeScript, Python, and Rust.

Overview

SAM was a speech synthesizer from the 1980s known for its distinctive robotic voice. This plugin provides formant-based synthesis across three languages with identical APIs and feature parity.

Features

  • 🎙️ Authentic retro voice synthesis
  • 🔊 Hardware bridge integration for audio output
  • ⚙️ Voice parameter control (speed, pitch, throat, mouth)
  • 🎯 Natural language trigger detection
  • 🎵 WAV format output

Voice Parameters

| Parameter | Range | Default | Description | | --------- | ------ | ------- | ------------------ | | Speed | 20-200 | 72 | Speaking rate | | Pitch | 0-255 | 64 | Voice pitch | | Throat | 0-255 | 128 | Throat resonance | | Mouth | 0-255 | 128 | Mouth articulation |

Trigger Phrases

The SAY_ALOUD action responds to:

  • say aloud, speak, read aloud
  • announce, proclaim, voice
  • say "quoted text", speak 'quoted text'
  • Voice modifiers: higher voice, robotic, slower

Usage

TypeScript

import { simpleVoicePlugin, SamTTSService } from "@elizaos/plugin-simple-voice";

// As plugin
const runtime = new AgentRuntime({ plugins: [simpleVoicePlugin] });

// Direct usage
const service = new SamTTSService(runtime);
const audio = service.generateAudio("Hello world", {
  speed: 72,
  pitch: 64,
  throat: 128,
  mouth: 128,
});
const wav = service.createWAVBuffer(audio);

Python

from eliza_plugin_simple_voice import SamTTSService, SamTTSOptions

service = SamTTSService()
audio = service.generate_audio("Hello world", SamTTSOptions(speed=72))
wav = service.create_wav_buffer(audio)

Rust

use eliza_plugin_simple_voice::{SamTTSService, SamTTSOptions};

let service = SamTTSService::default();
let audio = service.generate_audio("Hello world", Some(SamTTSOptions::default()));
let wav = service.create_wav_buffer(&audio, 22050);

Installation

# TypeScript
cd typescript && bun install && bun run build

# Python
cd python && pip install -e .

# Rust
cd rust && cargo build --release

Testing

# TypeScript
cd typescript && npx vitest

# Python
cd python && pytest

# Rust
cd rust && cargo test

Architecture

plugin-simple-voice/
├── typescript/          # TypeScript implementation
│   ├── src/
│   │   ├── index.ts
│   │   ├── types.ts
│   │   ├── actions/sayAloud.ts
│   │   └── services/SamTTSService.ts
│   └── package.json
├── python/              # Python implementation
│   ├── src/eliza_plugin_simple_voice/
│   │   ├── __init__.py
│   │   ├── types.py
│   │   ├── sam_engine.py
│   │   ├── actions/say_aloud.py
│   │   └── services/sam_tts_service.py
│   └── pyproject.toml
└── rust/                # Rust implementation
    ├── src/
    │   ├── lib.rs
    │   ├── types.rs
    │   ├── sam_engine.rs
    │   ├── actions/say_aloud.rs
    │   └── services/sam_tts_service.rs
    └── Cargo.toml

Audio Pipeline

Text → Phoneme Conversion → Formant Synthesis → 8-bit PCM → WAV → Hardware Bridge

License

MIT