{"title":"The Web Audio API as a Standardized Interface Beyond Web Browsers","authors":"Benjamin Matuszewski, Otto Rottier","doi":"10.17743/jaes.2022.0114","DOIUrl":null,"url":null,"abstract":"In this paper, the authors present two related libraries, web-audio-api-rs and node-web-audio-api , that provide a solution for using the Web Audio API outside the Web browsers. The first project is a low-level implementation of the Web Audio API written in the Rust language, and the second provides bindings of the core Rust library for the Node.js platform. The authors’ approach here is to consider Web standards and specifications as tools for defining standardized APIs across different environments and languages, which they believe could benefit the audio community in a more general manner. Although such a proposition presents some portability limitations due to the differences between languages, the authors think it nevertheless opens up new possibilities in sharing documentation, resources, and components across a wide range of environments, platforms, and users. The paper first describes the general design and implementation of the authors’ libraries. Then, it presents somebenchmarksoftheselibrariesagainststate-of-the-artimplementationfromWebbrowsers, andtheperformanceimprovementsthathavebeenmadeoverthelastyear.Finally,itdiscussesthecurrentknownlimitationsoftheselibrariesandproposessomedirectionsforfuturework. Thetwoprojectsareopen-source,reasonablyfeature-complete,andreadytouseinproductionapplications.","PeriodicalId":50008,"journal":{"name":"Journal of the Audio Engineering Society","volume":"49 1","pages":""},"PeriodicalIF":1.1000,"publicationDate":"2023-11-16","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of the Audio Engineering Society","FirstCategoryId":"5","ListUrlMain":"https://doi.org/10.17743/jaes.2022.0114","RegionNum":4,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"ACOUSTICS","Score":null,"Total":0}
引用次数: 0
Abstract
In this paper, the authors present two related libraries, web-audio-api-rs and node-web-audio-api , that provide a solution for using the Web Audio API outside the Web browsers. The first project is a low-level implementation of the Web Audio API written in the Rust language, and the second provides bindings of the core Rust library for the Node.js platform. The authors’ approach here is to consider Web standards and specifications as tools for defining standardized APIs across different environments and languages, which they believe could benefit the audio community in a more general manner. Although such a proposition presents some portability limitations due to the differences between languages, the authors think it nevertheless opens up new possibilities in sharing documentation, resources, and components across a wide range of environments, platforms, and users. The paper first describes the general design and implementation of the authors’ libraries. Then, it presents somebenchmarksoftheselibrariesagainststate-of-the-artimplementationfromWebbrowsers, andtheperformanceimprovementsthathavebeenmadeoverthelastyear.Finally,itdiscussesthecurrentknownlimitationsoftheselibrariesandproposessomedirectionsforfuturework. Thetwoprojectsareopen-source,reasonablyfeature-complete,andreadytouseinproductionapplications.
在本文中,作者介绍了两个相关库:web-audio-api-rs 和 node-web-audio-api,它们为在网络浏览器之外使用网络音频 API 提供了解决方案。第一个项目是用 Rust 语言编写的网络音频 API 的底层实现,第二个项目为 Node.js 平台提供了核心 Rust 库的绑定。作者在此采用的方法是将网络标准和规范视为在不同环境和语言中定义标准化 API 的工具,他们认为这将以更普遍的方式惠及音频社区。尽管由于不同语言之间的差异,这样的主张会带来一些可移植性方面的限制,但作者认为它还是为在各种环境、平台和用户之间共享文档、资源和组件开辟了新的可能性。本文首先介绍了作者库的总体设计和实现。最后,本文讨论了目前已知的图书馆局限,并提出了未来的工作方向。这两个项目都是开源的,功能比较齐全,可以在生产应用中使用。
期刊介绍:
The Journal of the Audio Engineering Society — the official publication of the AES — is the only peer-reviewed journal devoted exclusively to audio technology. Published 10 times each year, it is available to all AES members and subscribers.
The Journal contains state-of-the-art technical papers and engineering reports; feature articles covering timely topics; pre and post reports of AES conventions and other society activities; news from AES sections around the world; Standards and Education Committee work; membership news, patents, new products, and newsworthy developments in the field of audio.