Socket
Book a DemoInstallSign in
Socket

@mediapipe/tasks-audio

Package Overview
Dependencies
Maintainers
7
Versions
486
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mediapipe/tasks-audio

MediaPipe Audio Tasks

latest
npmnpm
Version
0.10.22-rc.20250304
Version published
Maintainers
7
Created
Source

MediaPipe Tasks Vision Package

This package contains the audio tasks for MediaPipe.

Audio Classifier

The MediaPipe Audio Classifier task performs classification on audio data.

const audio = await FilesetResolver.forAudioTasks(
    "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-audio/wasm"
);
const audioClassifier = await AudioClassifier.createFromModelPath(audio,
    "https://storage.googleapis.com/mediapipe-models/audio_classifier/yamnet/float32/1/yamnet.tflite
);
const classifications = audioClassifier.classify(audioData);

For more information, refer to the Audio Classifier documentation.

Audio Embedding

The MediaPipe Audio Embedding task extracts embeddings from audio data.

const audio = await FilesetResolver.forAudioTasks(
    "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-audio/wasm"
);
const audioEmbedder = await AudioEmbedder.createFromModelPath(audio,
    "https://storage.googleapis.com/mediapipe-assets/yamnet_embedding_metadata.tflite?generation=1668295071595506"
);
const embeddings = audioEmbedder.embed(audioData);

Keywords

AR

FAQs

Package last updated on 04 Mar 2025

Did you know?

Socket

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.

Install

Related posts