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

@angularai/voice-actions

v0.0.3

Published

<div align="center"> <h1>@angularai/voice-actions</h1> <p>🎀 Voice command integration for Angular applications</p>

Readme

Overview

@angularai/voice-actions provides voice command integration for Angular applications. Add speech-to-text input, voice-activated commands, and text-to-speech responses with AI-powered natural language understanding.

✨ Features

  • 🎀 Speech-to-Text: Convert voice to text input
  • πŸ”Š Text-to-Speech: Read responses aloud
  • 🧠 AI Understanding: Natural language command processing
  • 🌍 Multi-Language: Support for 50+ languages
  • ⚑ Real-time: Live transcription as you speak
  • πŸ”§ Fully Typed: Complete TypeScript support
  • πŸ“± Mobile Support: Works on mobile browsers

πŸ“¦ Installation

npm install @angularai/voice-actions @angularai/core

πŸš€ Quick Start

1. Voice Input Component

import { Component } from '@angular/core';
import { VoiceInputComponent } from '@angularai/voice-actions';

@Component({
  selector: 'app-voice-search',
  standalone: true,
  imports: [VoiceInputComponent],
  template: `
    <voice-input
      [language]="'en-US'"
      placeholder="Click mic to speak..."
      (transcriptChanged)="onTranscript($event)"
      (commandDetected)="onCommand($event)"
    />
  `
})
export class VoiceSearchComponent {
  onTranscript(text: string) {
    console.log('Transcribed:', text);
  }

  onCommand(command: VoiceCommand) {
    console.log('Command detected:', command);
  }
}

2. Voice Actions Service

import { Component, inject } from '@angular/core';
import { VoiceActionsService } from '@angularai/voice-actions';

@Component({ ... })
export class VoiceComponent {
  private voice = inject(VoiceActionsService);

  startListening() {
    this.voice.startListening({
      language: 'en-US',
      continuous: true
    }).subscribe({
      next: (result) => {
        console.log('Heard:', result.transcript);
        if (result.isFinal) {
          this.processCommand(result.transcript);
        }
      }
    });
  }

  speak(text: string) {
    this.voice.speak(text, {
      language: 'en-US',
      rate: 1.0,
      pitch: 1.0
    });
  }

  stopListening() {
    this.voice.stopListening();
  }
}

πŸ“– API Reference

VoiceActionsService

@Injectable({ providedIn: 'root' })
export class VoiceActionsService {
  // Start listening for voice input
  startListening(options?: ListenOptions): Observable<SpeechResult>;

  // Stop listening
  stopListening(): void;

  // Text-to-speech
  speak(text: string, options?: SpeakOptions): Promise<void>;

  // Stop speaking
  stopSpeaking(): void;

  // Check if listening
  isListening(): boolean;

  // Check if speaking
  isSpeaking(): boolean;

  // Get supported languages
  getSupportedLanguages(): string[];
}

VoiceInputComponent

Inputs

| Input | Type | Default | Description | |-------|------|---------|-------------| | language | string | 'en-US' | Recognition language | | continuous | boolean | false | Continuous listening | | placeholder | string | 'Speak...' | Input placeholder | | showTranscript | boolean | true | Show live transcript |

Outputs

| Output | Type | Description | |--------|------|-------------| | transcriptChanged | EventEmitter<string> | Emitted on transcript update | | commandDetected | EventEmitter<VoiceCommand> | Emitted when command detected | | listeningStarted | EventEmitter<void> | Emitted when listening starts | | listeningStopped | EventEmitter<void> | Emitted when listening stops |

πŸ”§ Advanced Usage

Custom Voice Commands

import { Component, inject } from '@angular/core';
import { VoiceCommandsService } from '@angularai/voice-actions';

@Component({ ... })
export class CommandsComponent {
  private commands = inject(VoiceCommandsService);

  ngOnInit() {
    this.commands.register([
      {
        phrase: 'navigate to home',
        action: () => this.router.navigate(['/home'])
      },
      {
        phrase: 'search for *',
        action: (query) => this.search(query)
      },
      {
        phrase: 'scroll down',
        action: () => window.scrollBy(0, 500)
      }
    ]);

    this.commands.startListening();
  }
}

AI-Powered Command Understanding

<voice-input
  [provider]="'openai'"
  [apiKey]="apiKey"
  [aiUnderstanding]="true"
  (commandDetected)="onCommand($event)"
/>

🌍 Supported Languages

| Language | Code | Status | |----------|------|--------| | English (US) | en-US | βœ… | | English (UK) | en-GB | βœ… | | Spanish | es-ES | βœ… | | French | fr-FR | βœ… | | German | de-DE | βœ… | | Italian | it-IT | βœ… | | Portuguese | pt-BR | βœ… | | Japanese | ja-JP | βœ… | | Korean | ko-KR | βœ… | | Chinese | zh-CN | βœ… |

πŸ“¦ Related Packages

| Package | Description | |---------|-------------| | @angularai/core | Core AI functionality | | @angularai/chatbot | AI chat components |

πŸ”— Related Projects

| Framework | Repository | Status | |-----------|-----------|--------| | Vue.js | @aivue | βœ… Available | | React | @anthropic-ai/react | βœ… Available | | Angular | @angularai | βœ… Available | | Svelte | @svelteai | πŸ’‘ Planned |

πŸ“„ License

MIT Β© AngularAI