closeio / mic-recorder-to-mp3

Microphone Recorder to mp3
MIT License
238 stars 130 forks source link

Lame is not defined #18

Closed madeInLagny closed 3 years ago

madeInLagny commented 4 years ago

Whether I use cdn or local package I get the following error when instanciating MicRecorder

image

Any idea how to fix ?

buzinas commented 4 years ago

If you share a reproducible issue (for example, on Code Sandbox), I can try to help you.

buzinas commented 3 years ago

Closing this for inactivity. I'll reopen in case someone shares a reproducible repo/sandbox etc.

calvinckho commented 3 years ago

32 fixes this bug

AlexeyShaykov commented 2 years ago

Hi! why this MR #32 not merge! it is supper important!! @buzinas

nanu-c commented 2 years ago

@buzinas i have this problem because vitejs doesn't support require()

ozancakir commented 1 year ago

@nanu-c do we have any fix for that?

nanu-c commented 1 year ago

npm add --save https://github.com/NikolaBalaban/mic-recorder-to-mp3.git

Chiliseo commented 3 weeks ago

if use vite you need to define to global variables

define: { "process.env": env, global: {}, Lame: {}, Presets: {}, GainAnalysis: {}, QuantizePVT: {}, Quantize: {}, Takehiro: {}, Reservoir: {}, MPEGMode: {}, BitStream: {}, },