RepositoryJavaScriptCACanada
audiojs

audiojs/web-audio-api

Web Audio API outside browsers

953sao
71fork
1issue
0lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

3
TINIX TRENDING·Quốc gia: CA

#3 Repository của tháng

🎧 web-audio-api: Web Audio API trên Node.js, không cần trình duyệt

100% WPT conformance, headless, chạy trong CI và CLI.

web-audio-api là một polyfill cài đặt Web Audio API, cho phép sử dụng AudioContext, OfflineAudioContext, oscillator, filter, và toàn bộ API âm thanh web nguyên bản trong môi trường Node.js — không cần trình duyệt, không phụ thuộc native. Phù hợp cho kỹ thuật kiểm thử âm thanh trong CI, xử lý âm thanh từ dòng lệnh, hoặc tích hợp Tone.js và các thư viện web audio khác vào server.

✨ Điểm nổi bật

  • 100% WPT conformance: Tuân thủ đầy đủ tiêu chuẩn Web Platform Tests.
  • Headless, không native deps: Chạy trên bất kỳ nền tảng nào có Node.js.
  • OfflineAudioContext: Render âm thanh trong CI mà không cần loa.
  • CLI scripting: Pipe, xử lý, tạo âm thanh từ terminal.
  • Server-side audio: Sinh âm thanh từ API, bot, pipeline.
  • Tone.js compatible: Chạy Tone.js và thư viện web audio khác trên Node.js.
  • Built-in speaker output: Tích hợp audio-speaker, không cần cài thêm.
  • Parametric examples: Hàng chục ví dụ âm thanh, hỗ trợ cú pháp ghi chú như A4, 20k, 10m.

💡 Vì sao đáng chú ý

Không phải là polyfill thông thường — web-audio-api còn cung cấp CLI scripting và hàng chục ví dụ thực tế: từ bơi toàn hình (shepard), nhịp độ nhấp nháy (risset rhythm), binaural beats, FM synthesis, đến sequencer và jazz modal. Tích hợp audio-speaker để phát trực tiếp, hoặc OfflineAudioContext để render ra buffer — cả hai đều hoạt động trong CI mà không cần phần cứng.

Tone.js và các thư viện web audio khác hoạt động nguyên trạng sau khi polyfill được load trước. Dùng --import web-audio-api/polyfill hoặc import 'web-audio-api/polyfill' để chuẩn bị môi trường, rồi dùng Tone.setContext(new AudioContext()) để kết nối.


#WebAudioAPI #NodeJS #Polyfill #ToneJS #OfflineAudioContext #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPython
AIGC-Audio/AudioGPT

AudioGPT: Understanding and Generating Speech, Music, Sound, and Talking Head

10.2k
Jul 6, 2024
RepositoryPython
librosa/librosa

Python library for audio and music analysis

9.3k
Dec 2, 2026
RepositoryTypeScript
pear-devs/pear-desktop

Pear 🍐 is extension for music player

34.1k
Nov 27, 2026
RepositoryTypeScript
withastro/astro

The web framework for content-driven websites.

64.4k
Dec 1, 2026
RepositoryPHP
koel/koel

Music streaming solution that works.

17.4k
Dec 1, 2026
RepositoryC++
sonic-pi-net/sonic-pi

Code. Music. Live.

12.3k
Nov 27, 2026
RepositorySwift
AudioKit/AudioKit

Audio synthesis, processing, & analysis platform for iOS, macOS and tvOS

11.5k
Jul 26, 2026
RepositoryRust
crmne/spotifast

Spotify, native and fast. One lightweight Rust app for your whole library, local playback, and Spotify Connect on Linux, macOS, and Windows.

11.0k
Dec 1, 2026
RepositoryTypeScript
katspaugh/wavesurfer.js

Audio waveform player

10.5k
Nov 24, 2026