In my current project using React and TypeScript with Visual Studio Code 1.69.2 and Node 16.15.1, I encountered an issue.
I am attempting to create a new AudioDecoder object, but I keep getting an error message stating "Cannot find name 'AudioDecoder'". The WebCodecs API, which includes the AudioDecoder, should be readily available for use, so I'm unsure why this error is occurring.
Any insights into what mistake I may be making?
const audioDecoder = new AudioDecoder({
output: () => {},
error: () => {},
});