Unable to decode audio for MIME type `audio/vnd.wave`
Closed this issue · 7 comments
Audio refuses to play on Firefox for Linux, with the following error in console:
Cannot play media. No decoders for requested formats: audio/vnd.wave, audio/vnd.wave
This is probably because Chrome and Firefox usually don't like audio/vnd.wave
as a MIME type. It should be using audio/x-wav
for compatibility. Or better, the audio should be an MP3 since it supports most browsers out of the box.
this is what i get for exporting audio files from Scratch sound editor. I'll fix it in the next update
I've pushed a fix to the main
branch. I'd be very grateful, if you could download the latest commit and tell me if it works now
Tested build 27dac49 by doing wxt -b firefox --mv2
.
Still returns the same error, so it's probably Firefox just simply not liking WAV files at all for whatever reason
Content-Security-Policy: Couldn’t process unknown directive ‘require-trusted-types-for’ www.youtube.com
performance.now precision has been modified for compatibility reasons. See https://bugzilla.mozilla.org/show_bug.cgi?id=1756970 for details. bug1842437-www.youtube.com-performance-now-precision.js:18:9
LegacyDataMixin will be applied to all legacy elements.
Set `_legacyUndefinedCheck: true` on element class to enable. desktop_polymer.js:4782:9
Cookie warnings 25
[NUXIFY] NUXIFYING dom.ts:114:12
MouseEvent.mozPressure is deprecated. Use PointerEvent.pressure instead. desktop_polymer.js:1851:51
MouseEvent.mozInputSource is deprecated. Use PointerEvent.pointerType instead. desktop_polymer.js:1851:51
[NUXIFY] Captions replaced for video null liveDubbing.ts:39:20
[NUXIFY] Live dubbing ready! liveDubbing.ts:123:16
Will-change memory consumption is too high. Budget limit is the document surface area multiplied by 3 (1096960 px). Occurrences of will-change over the budget will be ignored. results
[NUXIFY] Captions replaced for video null liveDubbing.ts:39:20
[NUXIFY] Live dubbing ready! liveDubbing.ts:123:16
[NUXIFY] Captions replaced for video null liveDubbing.ts:39:20
[NUXIFY] Live dubbing ready! liveDubbing.ts:123:16
[NUXIFY] Captions replaced for video null liveDubbing.ts:39:20
This site appears to use a scroll-linked positioning effect. This may not work well with asynchronous panning; see https://firefox-source-docs.mozilla.org/performance/scroll-linked_effects.html for further details and to join the discussion on related tools and features! @jaidenanimations
WEBGL_debug_renderer_info is deprecated in Firefox and will be removed. Please use RENDERER. UCY5Klx_0fJhMytIltuKLUwnjJON9GWedkq6jjIrpW0.js line 2 > eval line 5756 > eval line 1 > eval line 1 > eval:1:139
The resource at “https://i.ytimg.com/generate_204” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. watch
WEBGL_debug_renderer_info is deprecated in Firefox and will be removed. Please use RENDERER. UCY5Klx_0fJhMytIltuKLUwnjJON9GWedkq6jjIrpW0.js line 2 > eval line 5756 > eval line 1 > eval line 1 > eval:1:139
Partitioned cookie or storage access was provided to “https://tpc.googlesyndication.com/sodar/5k7CCto5.html” because it is loaded in the third-party context and dynamic state partitioning is enabled.
[NUXIFY] Captions replaced for video OrjM48L-n6I liveDubbing.ts:39:20
WEBGL_debug_renderer_info is deprecated in Firefox and will be removed. Please use RENDERER. yJuQ3p8x9-kBF0t6vhbzpq7jmrn5nj2c8R33qNK7r0I.js line 2 > eval line 2882 > eval line 1 > eval line 1 > eval:1:95
A resource is blocked by OpaqueResponseBlocking, please check browser console for details. gen_204
HTTP “Content-Type” of “audio/vnd.wave” is not supported. Load of media resource moz-extension://33148f91-53ca-48fa-8dcd-8b27c3a67492/audio/our.wav failed. watch
HTTP “Content-Type” of “audio/vnd.wave” is not supported. Load of media resource moz-extension://33148f91-53ca-48fa-8dcd-8b27c3a67492/audio/sfxThud.wav failed. watch
Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable. 2
Cannot play media. No decoders for requested formats: audio/vnd.wave, audio/vnd.wave watch
HTTP “Content-Type” of “audio/vnd.wave” is not supported. Load of media resource moz-extension://33148f91-53ca-48fa-8dcd-8b27c3a67492/audio/we.wav failed. watch
HTTP “Content-Type” of “audio/vnd.wave” is not supported. Load of media resource moz-extension://33148f91-53ca-48fa-8dcd-8b27c3a67492/audio/sfxThud.wav failed. watch
Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable. 2
Cannot play media. No decoders for requested formats: audio/vnd.wave, audio/vnd.wave, audio/vnd.wave, audio/vnd.wave watch
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://googleads.g.doubleclick.net/pagead/viewthroughconversion/962985656/?backend=innertube&cname=1&cver=2_20240829&data=backend%3Dinnertube%3Bcname%3D1%3Bcver%3D2_20240829%3Bptype%3Df_view%3Btype%3Dview%3Butuid%3DGwu0nbY2wSkW8N-cghnLpA%3Butvid%3DOrjM48L-n6I&foc_id=Gwu0nbY2wSkW8N-cghnLpA&label=followon_view&ptype=f_view&random=309706026&utuid=Gwu0nbY2wSkW8N-cghnLpA&cv_attributed=0. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 302.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://googleads.g.doubleclick.net/pagead/viewthroughconversion/962985656/?backend=innertube&cname=1&cver=2_20240829&data=backend%3Dinnertube%3Bcname%3D1%3Bcver%3D2_20240829%3Bptype%3Df_view%3Btype%3Dview%3Butuid%3DGwu0nbY2wSkW8N-cghnLpA%3Butvid%3DOrjM48L-n6I&foc_id=Gwu0nbY2wSkW8N-cghnLpA&label=followon_view&ptype=f_view&random=309706026&utuid=Gwu0nbY2wSkW8N-cghnLpA&cv_attributed=0. (Reason: CORS request did not succeed). Status code: (null).
WEBGL_debug_renderer_info is deprecated in Firefox and will be removed. Please use RENDERER. UCY5Klx_0fJhMytIltuKLUwnjJON9GWedkq6jjIrpW0.js line 2 > eval line 5756 > eval line 1 > eval line 1 > eval:1:139
HTTP “Content-Type” of “audio/vnd.wave” is not supported. Load of media resource moz-extension://33148f91-53ca-48fa-8dcd-8b27c3a67492/audio/our.wav failed. watch
Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable.
HTTP “Content-Type” of “audio/vnd.wave” is not supported. Load of media resource moz-extension://33148f91-53ca-48fa-8dcd-8b27c3a67492/audio/sfxThud.wav failed. watch
Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable.
Cannot play media. No decoders for requested formats: audio/vnd.wave, audio/vnd.wave watch
HTTP “Content-Type” of “audio/vnd.wave” is not supported. Load of media resource moz-extension://33148f91-53ca-48fa-8dcd-8b27c3a67492/audio/we.wav failed. watch
HTTP “Content-Type” of “audio/vnd.wave” is not supported. Load of media resource moz-extension://33148f91-53ca-48fa-8dcd-8b27c3a67492/audio/sfxThud.wav failed. watch
Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable. 2
Cannot play media. No decoders for requested formats: audio/vnd.wave, audio/vnd.wave watch
HTTP “Content-Type” of “audio/vnd.wave” is not supported. Load of media resource moz-extension://33148f91-53ca-48fa-8dcd-8b27c3a67492/audio/weare.wav failed. watch
HTTP “Content-Type” of “audio/vnd.wave” is not supported. Load of media resource moz-extension://33148f91-53ca-48fa-8dcd-8b27c3a67492/audio/sfxThud.wav failed. watch
Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable. 2
Cannot play media. No decoders for requested formats: audio/vnd.wave, audio/vnd.wave watch
HTTP “Content-Type” of “audio/vnd.wave” is not supported. Load of media resource moz-extension://33148f91-53ca-48fa-8dcd-8b27c3a67492/audio/our.wav failed. watch
Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable.
HTTP “Content-Type” of “audio/vnd.wave” is not supported. Load of media resource moz-extension://33148f91-53ca-48fa-8dcd-8b27c3a67492/audio/sfxThud.wav failed. watch
Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable.
Cannot play media. No decoders for requested formats: audio/vnd.wave, audio/vnd.wave, audio/vnd.wave, audio/vnd.wave watch
HTTP “Content-Type” of “audio/vnd.wave” is not supported. Load of media resource moz-extension://33148f91-53ca-48fa-8dcd-8b27c3a67492/audio/us.wav failed. watch
Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable.
HTTP “Content-Type” of “audio/vnd.wave” is not supported. Load of media resource moz-extension://33148f91-53ca-48fa-8dcd-8b27c3a67492/audio/sfxThud.wav failed. watch
Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable.
Cannot play media. No decoders for requested formats: audio/vnd.wave, audio/vnd.wave watch
HTTP “Content-Type” of “audio/vnd.wave” is not supported. Load of media resource moz-extension://33148f91-53ca-48fa-8dcd-8b27c3a67492/audio/our.wav failed. watch
Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable.
HTTP “Content-Type” of “audio/vnd.wave” is not supported. Load of media resource moz-extension://33148f91-53ca-48fa-8dcd-8b27c3a67492/audio/sfxThud.wav failed. watch
Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable.
Cannot play media. No decoders for requested formats: audio/vnd.wave, audio/vnd.wave watch
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://googleads.g.doubleclick.net/pagead/viewthroughconversion/962985656/?backend=innertube&cname=1&cver=2_20240829&data=backend%3Dinnertube%3Bcname%3D1%3Bcver%3D2_20240829%3Bptype%3Df_view%3Btype%3Dview%3Butuid%3DGwu0nbY2wSkW8N-cghnLpA%3Butvid%3DPbdyXIaBK9A&foc_id=Gwu0nbY2wSkW8N-cghnLpA&label=followon_view&ptype=f_view&random=742662723&utuid=Gwu0nbY2wSkW8N-cghnLpA&cv_attributed=0. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 302.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://googleads.g.doubleclick.net/pagead/viewthroughconversion/962985656/?backend=innertube&cname=1&cver=2_20240829&data=backend%3Dinnertube%3Bcname%3D1%3Bcver%3D2_20240829%3Bptype%3Df_view%3Btype%3Dview%3Butuid%3DGwu0nbY2wSkW8N-cghnLpA%3Butvid%3DPbdyXIaBK9A&foc_id=Gwu0nbY2wSkW8N-cghnLpA&label=followon_view&ptype=f_view&random=742662723&utuid=Gwu0nbY2wSkW8N-cghnLpA&cv_attributed=0. (Reason: CORS request did not succeed). Status code: (null).
[NUXIFY] Captions replaced for video PbdyXIaBK9A liveDubbing.ts:39:20
HTTP “Content-Type” of “audio/vnd.wave” is not supported. Load of media resource moz-extension://33148f91-53ca-48fa-8dcd-8b27c3a67492/audio/us.wav failed. watch
Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable.
HTTP “Content-Type” of “audio/vnd.wave” is not supported. Load of media resource moz-extension://33148f91-53ca-48fa-8dcd-8b27c3a67492/audio/sfxThud.wav failed. watch
Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable.
WEBGL_debug_renderer_info is deprecated in Firefox and will be removed. Please use RENDERER. UCY5Klx_0fJhMytIltuKLUwnjJON9GWedkq6jjIrpW0.js line 2 > eval line 5756 > eval line 1 > eval line 1 > eval:1:139
HTTP “Content-Type” of “audio/vnd.wave” is not supported. Load of media resource moz-extension://33148f91-53ca-48fa-8dcd-8b27c3a67492/audio/us.wav failed. watch
Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable.
HTTP “Content-Type” of “audio/vnd.wave” is not supported. Load of media resource moz-extension://33148f91-53ca-48fa-8dcd-8b27c3a67492/audio/sfxThud.wav failed. watch
Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable.
Cannot play media. No decoders for requested formats: audio/vnd.wave, audio/vnd.wave watch
I'm gonna try and transcode all the audio to MP3 and fork to see if it works or not
EDIT: You should also try using Vorbis files (.ogg
) since it should work too in this case
UPDATE: I tried transcoding all the WAV audio files to Ogg Vorbis using FFMpeg and it seems like it works pretty well now. Also thanks to audio compression this makes the files smaller.
I'll be sending a PR to replace the files with Ogg, alongside running Firefox dev mode with Manifest V2 because of some wxt issues.