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

@siteed/audio-studio

v3.0.2

Published

Comprehensive audio processing library for React Native and Expo with recording, analysis, visualization, and streaming capabilities across iOS, Android, and web

Readme

@siteed/audio-studio

Version Downloads License GitHub stars

Give it a GitHub star, if you found this repo useful.

Cross-platform audio recording, analysis, and processing for React Native and Expo. Mel spectrogram and spectral feature extraction run through a shared C++ layer on iOS, Android, and web (via WASM).

Formerly @siteed/expo-audio-studio. See MIGRATION.md for upgrade steps.

Features

  • Recording — real-time streaming, dual-stream (raw PCM + compressed), background recording, zero-latency start via prepareRecording
  • Device management — list/select input devices (Bluetooth, USB, wired), automatic fallback
  • Interruption handling — auto pause/resume during phone calls
  • Audio analysis — MFCC, spectral features, mel spectrogram, tempo, pitch, waveform preview
  • Native performance — mel spectrogram and FFT-based features (MFCC, spectral centroid, etc.) computed in shared C++ on all platforms (JNI on Android, Obj-C++ bridge on iOS, WASM on web)
  • Trimming — precision cut with multi-segment support (keep or remove ranges)
  • Notifications — Android live waveform in notification, iOS media player integration
  • Consistent format — WAV PCM output across all platforms

Install

yarn add @siteed/audio-studio

Quick Start

import { useAudioRecorder } from '@siteed/audio-studio';

const { startRecording, stopRecording, isRecording } = useAudioRecorder();

// Record
await startRecording({
  sampleRate: 44100,
  channels: 1,
  encoding: 'pcm_16bit',
});

// ... later
const result = await stopRecording();
console.log('Saved to:', result.fileUri);

Zero-Latency Recording

Pre-initialize to eliminate startup delay:

const { prepareRecording, startRecording, stopRecording } = useSharedAudioRecorder();

await prepareRecording({ sampleRate: 44100, channels: 1, encoding: 'pcm_16bit' });

// Later — starts instantly
await startRecording();

Shared State Across Components

const AudioApp = () => (
  <AudioRecorderProvider>
    <RecordButton />
    <AudioVisualizer />
  </AudioRecorderProvider>
);

Float32 Streaming (for ML / DSP)

Set streamFormat: 'float32' to get Float32Array on all platforms instead of base64:

await startRecording({
  sampleRate: 16000,
  channels: 1,
  encoding: 'pcm_32bit',
  streamFormat: 'float32',
  onAudioStream: async (event) => {
    const samples = event.data as Float32Array;
    await myModel.feed(samples);
  },
});

Audio Analysis

import { extractAudioAnalysis, extractPreview, extractMelSpectrogram, trimAudio } from '@siteed/audio-studio';

// Feature extraction
const analysis = await extractAudioAnalysis({
  fileUri: 'path/to/recording.wav',
  features: { rms: true, zcr: true, mfcc: true, spectralCentroid: true }
});

// Lightweight waveform for visualization
const preview = await extractPreview({
  fileUri: 'path/to/recording.wav',
  pointsPerSecond: 50
});

// Mel spectrogram for ML
const mel = await extractMelSpectrogram({
  fileUri: 'path/to/recording.wav',
  nMels: 40, hopLengthMs: 10
});

// Trim audio
const trimmed = await trimAudio({
  fileUri: 'path/to/recording.wav',
  ranges: [{ startTimeMs: 1000, endTimeMs: 5000 }],
  mode: 'keep'
});

Which Method to Use

| Method | Cost | Use case | |--------|------|----------| | extractPreview | Light | Waveform visualization | | extractRawWavAnalysis | Light | WAV metadata without decoding | | extractAudioData | Medium | Raw PCM for custom processing | | extractAudioAnalysis | Medium-Heavy | MFCC, spectral features, pitch, tempo | | extractMelSpectrogram | Heavy | Frequency-domain for ML |

Docs

License

MIT — see LICENSE.


Created by Arthur Breton