Back to Trending
RepositoryJavaScriptSESweden
exelerus

exelerus/cordova-plugin-audioinput

High-performance audio capture plugin enabling real-time microphone access in Cordova and Capacitor apps. Stream normalized audio data, record to files, and build audio analyzers, voice apps, and DSP applications with ease.

172stars
90forks
0issues
0views

🎙️ Truy cập mikrofon thời gian thực cho Cordova & Capacitor

Một gói duy nhất hỗ trợ cả Cordova lẫn Capacitor, mang đến luồng dữ liệu âm thanh PCM thấp độ trễ ngay trong JavaScript.

cordova-plugin-audioinput là plugin cho phép truy cập mikrofon liên tục và trực tiếp trên thiết bị di động thông qua môi trường Cordova và Capacitor. Khác với MediaRecorder chỉ cung cấp blob âm thanh đã mã hóa, plugin này truyền về các khối dữ liệu PCM thô (ArrayBuffer) ngay trong thời gian thực — lý tưởng cho các ứng dụng phân tích sóng giọng nói (VAD), DSP tùy chỉnh hoặc xây dựng bộ phân tích âm thanh.

✨ Điểm nổi bật

  • Streaming PCM thời gian thực: nhận dữ liệu audioData / audioinput liên tục từ mikrofon.
  • Cập nhật bridge nhị phân: truyền trực tiếp ArrayBuffer qua native bridge, giảm overhead.
  • Hỗ trợ chuẩn hóa âm thanh: tùy chọn chuẩn hóa giá trị từ -1.0 .. 1.0 để dễ xử lý DSP.
  • Ghi âm WAV: lưu trực tiếp ra tệp WAV thông qua tham số fileUrl.
  • Hỗ trợ quyền mikrofon: cung cấp hàm kiểm tra và yêu cầu quyền truy cập mikrofon.
  • Hỗ trợ TypeScript: định nghĩa kiểu cho Capacitor giúp phát triển an toàn hơn.
  • Tích hợp Web Audio API: kết nối trực tiếp với AudioNode qua streamToWebAudio.
  • Đa nền tảng: hỗ trợ Android, iOS và trình duyệt.

💡 Vì sao đáng chú ý

Plugin này không chỉ là một công cụ ghi âm — nó mở ra khả năng kiểm soát hoàn toàn luồng dữ liệu âm thanh thô. Khi MediaRecorder chỉ cho phép nhận kết quả sau khi ghi xong, cordova-plugin-audioinput cung cấp từng đoạn dữ liệu nhỏ ngay lập tức, giúp phát triển các ứng dụng như trò chuyện thời gian thực, nhận dạng giọng nói, hoặc bộ lọc DSP tùy chỉnh. Đặc biệt hữu ích cho những dự án cần hiệu năng cao và độ trễ thấp trên nền tảng di động.


#Cordova #Capacitor #AudioInput #MobileDevelopment #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryJava
katzer/cordova-plugin-local-notifications

Cordova Local-Notification Plugin

2.6k
Aug 29, 2026
RepositoryShell
greybax/cordova-plugin-proguard

:white_square_button: Cordova Plugin for ProGuard

54
Jan 21, 2026
RepositoryC
FFmpeg/FFmpeg

Mirror of https://git.ffmpeg.org/ffmpeg.git

66.0k
Oct 28, 2026
RepositoryPython
OpenBMB/VoxCPM

VoxCPM2: Tokenizer-Free TTS for Multilingual Speech Generation, Creative Voice Design, and True-to-Life Cloning

40.8k
Oct 8, 2026
RepositoryC
mpv-player/mpv

🎥 Command line media player

37.6k
Oct 27, 2026
Modelautomatic-speech-recognition
openai/whisper-large-v3

Whisper Whisper is a state-of-the-art model for automatic speech recognition (ASR) and speech translation, proposed in the paper Robust Speech Recognition via Large-Scale Weak Supervision(https://huggingface.co/papers/2212.04356) by Alec Radford et...

♥0
3.7M
Aug 12, 2024
Modelautomatic-speech-recognition
pyannote/speaker-diarization-3.1

Using this open-source model in production? Consider switching to pyannoteAI(https://www.pyannote.ai) for better and faster options. 🎹 Speaker diarization 3.1 This pipeline is the same as pyannote/speaker-diarization-3.0(https://hf.co/pyannote/speak...

♥0
7.1M
May 10, 2024
RepositoryMarkdown
DigitalPlatDev/FreeDomain

Free domain registration and practical DNS learning resources for everyone.

206.3k
Aug 12, 2026
RepositoryPython
yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader

203.7k
Oct 29, 2026