asyncfunctionrun(): Promise<void> { constmp3Analyzer = newMP3Analyzer(); constfilename = 'demo.mp3'; constoptions: IMP3Analyzer.Options = { mpeg:true, // test for mpeg warnings id3v2:true, // test for id3v2 warnings id3v1:true, // test for id3v1 warnings xing:true, // test for frame head xing warnings ignoreXingOffOne:false// ignore most common error in off-by-one XING header declaration }; constdata = awaitmp3Analyzer.read(filename, options); console.log('report:', data); }
Class for
Basic usage example: