π Overview
π΅ Streaming
π€ Recording
βοΈ Processing
πΎ Caching
π Real-time
π Permissions
π΅ Welcome to audio.libx.js
A comprehensive progressive audio streaming library with real-time processing, recording, and caching capabilities. Explore all
features using the tabs above.
π΅
Progressive Streaming
Stream audio with MediaSource Extensions, intelligent buffering, and cross-platform compatibility including iOS
ManagedMediaSource support.
π€
Audio Recording
High-quality audio recording with real-time processing, permission management, and configurable quality settings.
βοΈ
Audio Processing
Advanced audio processing including silence trimming, format conversion, and audio buffer manipulation.
πΎ
Intelligent Caching
Persistent IndexedDB storage with memory caching, statistics tracking, and automatic cleanup management.
π
Real-time Processing
Live audio analysis with effects, silence detection, level monitoring, and visual feedback.
π
Permission Management
Cross-browser permission handling with user-friendly error messages and device enumeration.
π Quick Start
Get started with audio.libx.js in just a few lines of code:
// Import the library
import { createAudioStreamer, createAudioRecorder } from 'audio.libx.js';
// Create audio streamer
const audioElement = document.getElementById('audio');
const streamer = createAudioStreamer(audioElement, {
enableCaching: true,
enableTrimming: true,
bufferThreshold: 5
});
// Stream audio
const result = await streamer.streamFromUrl('path/to/audio.mp3');
await result.onLoaded;
// Create audio recorder
const recorder = createAudioRecorder({
enableRealtimeProcessing: true,
audioBitsPerSecond: 128000
});
// Start recording
const recording = await recorder.startRecording();
await recording.onStarted;
π Browser Compatibility
β
Chrome
β
Firefox
β
Safari 17.1+
β
Edge
π΅ Progressive Audio Streaming
Stream audio with progressive loading, intelligent buffering, and persistent caching.
Your browser does not support the audio element.
π΅ Stream Audio
πΎ Play from Cache
ποΈ Clear Cache
Quick Examples:
WAV File
MP3 File
Ready to stream audio...
π Streaming Statistics
0
Cache Entries
0 MB
Cache Size
0%
Cache Hit Ratio
idle
Stream State
π€ Audio Recording
Record high-quality audio with real-time processing, level monitoring, and visual feedback.
π€ Start Recording
βΉοΈ Stop
βΈοΈ Pause
βΆοΈ Resume
π Test Permission
Ready to record...
βοΈ Recording Configuration
π΅ Recordings
π€
No recordings yet. Start recording to see them here.
Clear All Recordings
π Recording Event Log
Clear Log
βοΈ Audio Processing
Process audio with silence trimming, format conversion, and advanced audio manipulation.
π Format Conversion
Output Format:
WAV
MP3
WebM
Convert Format
β±οΈ Duration Analysis
Estimate Duration
Load Audio File
πΎ Download Processed
Select an audio file to start processing...
π Processing Results
0 MB
Original Size
0 MB
Processed Size
0%
Size Reduction
0ms
Processing Time
π Processing Event Log
Clear Log
πΎ Audio Caching System
Manage persistent audio cache with IndexedDB storage and memory optimization.
π Refresh Stats
ποΈ Clear All Cache
π€ Export Cache Data
β‘ Optimize Cache
Cache system ready...
π Cache Statistics
0
Total Entries
0 MB
Total Size
0%
Hit Ratio
0 MB
Memory Usage
0 MB
Storage Quota
Never
Last Cleanup
ποΈ Cache Entries
πΎ
No cache entries found. Stream some audio to populate the cache.
βοΈ Cache Configuration
π Cache Event Log
Clear Log
π Real-time Audio Processing
Live audio analysis with effects, visualization, and real-time processing capabilities.
π€ Start Real-time Processing
βΉοΈ Stop Processing
β¨ Toggle Effects
π Mute Output
Real-time processing ready...
ποΈ Audio Effects
ποΈ Filter
Type:
None
Low Pass
High Pass
Band Pass
Frequency: 1000 Hz
βοΈ Processing Configuration
π Real-time Statistics
0 dB
Current Level
0 dB
Peak Level
0 dB
Average Level
0%
Silence %
π Real-time Event Log
Clear Log
π Permission Management
Manage microphone permissions with cross-browser compatibility and user-friendly error handling.
π Check Permission
π Request Permission
π€ List Devices
π§ͺ Test Microphone
Permission status unknown...
π Permission Status
unknown
Current Status
unknown
Browser
0
Audio Devices
No
Stream Active
π€ Available Devices
π€
Click "List Devices" to enumerate available audio input devices.
βοΈ Constraint Configuration
Device ID:
Default Device
Sample Rate:
Auto
44.1 kHz
48 kHz
Channels:
Auto
Mono
Stereo
π Troubleshooting Guide
π Permission Denied: Check browser settings and ensure HTTPS connection
π§ Device Not Found: Verify microphone is connected and not used by other apps
π Browser Compatibility: Ensure your browser supports getUserMedia API
π HTTPS Required: Microphone access requires secure context (HTTPS)
π Permission Event Log
Clear Log