Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please support for audio/wav (PCM) in MSE #55

Open
petamoriken opened this issue Mar 3, 2016 · 10 comments
Open

Please support for audio/wav (PCM) in MSE #55

petamoriken opened this issue Mar 3, 2016 · 10 comments
Labels
feature request TPAC-2022-discussion Marked for discussion at TPAC 2022 Media WG meeting Sep 16
Milestone

Comments

@petamoriken
Copy link

I converted original format files to PCM files in Web Worker (by Emscripten), and I tried to stream by MSE.
However, this trial doesn't achieve, because MSE hasn't support for audio/wav in almost browsers yet.

I hope that it's mentioned in Media Source Extensions Byte Stream Format Registry. Thanks!

@jdsmith3000 jdsmith3000 added this to the VNext milestone Mar 15, 2016
@jdsmith3000
Copy link
Contributor

Triaging per the new MSE & EME Spec Issue Triage Process.

This issue requests support for a new format, and doesn't meet the triage criteria for V1 or V1NonBlocking.

@wolenetz
Copy link
Member

FWIW, I agree this looks appropriately triaged to VNext.

@tjenkinson
Copy link

Any update on this? I would like to decode audio to PCM with web assemblly and then play in MSE

@EE-GSlomin
Copy link

This seems to work with MOV files.

@PetrochukM
Copy link

PetrochukM commented Jan 18, 2019

Hi!

Fundamentally, it should be easy to stream raw samples and play them sequentially via HTMLMediaElement. (Similar to the old Mozilla Audio API) Without this issue being resolved, how is this possible?

There are a number of problems that'd be solved with this addition:

@guest271314
Copy link

It is possible to use Web Audio API AudioWorklet to stream audio/wav (PCM). FWIW see WebAudio/web-audio-api-v2#61, https://guest271314.github.io/AudioWorkletStream/, https://plnkr.co/edit/nECtUZ.

@petamoriken
Copy link
Author

...or will it be supported by WebCodecs?
https://github.com/WICG/web-codecs

@guest271314
Copy link

@petamoriken WebCodecs is not specified or implemented. Created the linked code a a proof-of-concept of how WebCodecs potentially could be connected to Web Audio API WebAudio/web-audio-api-v2#61. The gist of the WAV parsing algorithm is based on https://stackoverflow.com/a/35248852. Extended to be used with AudioWorkletProcessor https://github.com/guest271314/AudioWorkletStream/blob/master/audioWorklet.js. Similar to MediaSource, the current version requests multiple parts of the same file (actually due to GitHub not allowing upload of files over 25MB split the 71MB file into four parts).

@guest271314
Copy link

Essentially, users in the field that want support for x-codec can roll their own instead of or while waiting for API's to specify and implement algorithms. That is why included the module "codecs" https://github.com/guest271314/AudioWorkletStream/blob/master/codecs.js where any user codec parsing code can be placed. There is no bar from users implementing their own processor, and no guarantee that parsing algorithms implemented by others will achieve what the developer cannot themselves while waiting for an external working group to agree with the concept or request, specify and implement.

@wolenetz wolenetz removed this from the VNext milestone Jun 9, 2020
@mwatson2 mwatson2 added this to the Backlog milestone Sep 21, 2020
@mwatson2 mwatson2 added agenda Topic should be discussed in a group call and removed agenda Topic should be discussed in a group call labels Sep 21, 2020
@mwatson2 mwatson2 modified the milestones: Backlog, V2 Sep 21, 2020
kenrick95 added a commit to kenrick95/nikku that referenced this issue Feb 2, 2022
Idea is to have MediaSource as audio player instead of using WebAudio.

This is because you can just append and append more buffers to the stream,
resembles how the dead Audio Data API worked. However, upon further
research, no browser implementaion of MediaSource supported
playing raw audio 🤦

w3c/media-source#55
@wolenetz wolenetz added the TPAC-2022-discussion Marked for discussion at TPAC 2022 Media WG meeting Sep 16 label Sep 16, 2022
@ewof
Copy link

ewof commented Feb 21, 2024

please 🙏
coqui tts is all wav format :(((

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request TPAC-2022-discussion Marked for discussion at TPAC 2022 Media WG meeting Sep 16
Projects
None yet
Development

No branches or pull requests

9 participants