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

@dataclouder/ngx-mic

v0.1.5

Published

Angular library for microphone and speech recognition functionality using Web or Capacitor

Readme

ngx-mic — Microphone Component

A configurable microphone component for Angular applications with speech recognition and audio recording support. Cross-platform: Web (SpeechRecognition API) and Native (Capacitor iOS/Android).

Documentation

  • mic-understanding.md — Complete architecture, data flow diagrams, and how the component sends audio to your backend server
  • getting_started.md — Quick start guide, usage examples, and integration patterns

Quick Start

Recording Mode (Capture Audio)

<dc-mic 
  [maxRecordingTime]="30"
  (onFinished)="handleAudioRecorded($event)">
</dc-mic>

Recognition Mode (Speech-to-Text)

<dc-mic 
  [micSettings]="{ micMode: 'recognition', lang: 'es-MX' }"
  (onInterpretedText)="handleText($event)"
  (onFinishedRecognition)="handleRecognitionEnd()">
</dc-mic>

Handle Audio in Component

export class MyComponent {
  handleAudioRecorded(event: AudioRecording): void {
    // Send blob to your backend
    this.http.post('/api/transcribe', 
      { audio: event.blob },
      { headers: { 'Content-Type': 'multipart/form-data' } }
    ).subscribe(response => {
      console.log('Transcription:', response.text);
    });
  }
}

Key Features

Standalone Component — No NgModule dependencies
Signal-Based — Reactive UI updates with Angular Signals
Cross-Platform — Web + iOS/Android via Capacitor
Two Modes — Recording (raw audio) or Recognition (speech-to-text)
Silence Detection — Auto-stop recording on silence
Real-Time Visualization — Noise level indicator
Permissioning — Automatic browser/native permission handling

Development

# Build the library
ng build ngx-mic

# Run tests
ng test ngx-mic

# Lint
ng lint ngx-mic

Integration Example: Chat Application

See ChatFooterComponent for a real-world integration that:

  1. Captures audio from mic
  2. Sends to backend for transcription
  3. Displays transcribed message in chat
  4. Sends to AI for response

Architecture

DCMicComponent (Presentation)
├── MicRecordingService (Audio Capture)
├── SpeechRecognizerService (Speech Recognition)
└── MicStateService (UI State)

↓ (onFinished event with AudioRecording blob)

Parent Component
├── Handles audio blob
└── Sends to backend API

For detailed architecture and data flow, see mic-understanding.md.