
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
audio-analysis-core
Advanced tools
React Native audio analysis library with waveform extraction and full audio analysis
A React Native library for audio analysis with waveform extraction and comprehensive audio feature extraction.
npm install audio-analysis-core
# or
yarn add audio-analysis-core
cd ios && pod install && cd ..
No additional setup required for Android.
import { extractWaveform } from 'audio-analysis-core';
const waveform = await extractWaveform({
fileUri: 'file://path/to/audio.mp3',
pointsPerSecond: 50, // points per second
startTimeMs: 0, // start time in milliseconds
endTimeMs: 10000, // end time in milliseconds (optional)
decodingOptions: {
sampleRate: 44100,
channels: 1,
bitDepth: 16
}
});
console.log(waveform.data); // Array of waveform values
console.log(waveform.duration); // Duration in seconds
console.log(waveform.sampleRate); // Sample rate
console.log(waveform.channels); // Number of channels
console.log(waveform.bitDepth); // Bit depth
import { analyzeAudio } from 'audio-analysis-core';
const analysis = await analyzeAudio({
fileUri: 'file://path/to/audio.mp3',
segmentDurationMs: 100, // duration of each data point in milliseconds
startTimeMs: 0, // start time in milliseconds
endTimeMs: 10000, // end time in milliseconds (optional)
features: {
energy: true,
rms: true,
zcr: true,
spectralCentroid: true,
mfcc: false
},
decodingOptions: {
sampleRate: 44100,
channels: 1,
bitDepth: 16
}
});
console.log(analysis.dataPoints); // Array of data points
console.log(analysis.durationMs); // Duration in milliseconds
console.log(analysis.sampleRate); // Sample rate
console.log(analysis.numberOfChannels); // Number of channels
extractWaveform(options)Extract waveform data from an audio file (similar to expo-audio-stream's extractPreview).
Parameters:
options.fileUri (string): Path to the audio fileoptions.pointsPerSecond (number, optional): Points per second to extract (default: 50)options.startTimeMs (number, optional): Start time in milliseconds (default: 0)options.endTimeMs (number, optional): End time in milliseconds (default: entire file)options.decodingOptions (DecodingOptions, optional): Decoding configurationReturns: Promise
analyzeAudio(options)Perform comprehensive audio analysis (similar to expo-audio-stream's extractAudioAnalysis).
Parameters:
options.fileUri (string): Path to the audio fileoptions.segmentDurationMs (number, optional): Duration of each data point in milliseconds (default: 100)options.startTimeMs (number, optional): Start time in milliseconds (default: 0)options.endTimeMs (number, optional): End time in milliseconds (default: entire file)options.features (AudioFeatures, optional): Features to extractoptions.decodingOptions (DecodingOptions, optional): Decoding configurationReturns: Promise
interface WaveformData {
data: number[];
duration: number;
sampleRate: number;
channels: number;
bitDepth: number;
}
interface AudioFeatures {
energy?: boolean;
rms?: boolean;
zcr?: boolean;
spectralCentroid?: boolean;
mfcc?: boolean;
waveform?: boolean;
spectrum?: boolean;
}
interface DecodingOptions {
sampleRate?: number;
channels?: number;
bitDepth?: number;
}
interface AudioAnalysisDataPoint {
amplitude: number;
rms: number;
db: number;
energy?: number;
zcr?: number;
spectralCentroid?: number;
mfcc?: number[];
}
interface AudioAnalysisResult {
segmentDurationMs: number;
durationMs: number;
bitDepth: number;
samples: number;
numberOfChannels: number;
sampleRate: number;
dataPoints: AudioAnalysisDataPoint[];
}
MIT
FAQs
React Native audio analysis library with waveform extraction and full audio analysis
The npm package audio-analysis-core receives a total of 1 weekly downloads. As such, audio-analysis-core popularity was classified as not popular.
We found that audio-analysis-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.