jackschedel / KoalaClient

The best LLM API Playground Interface (for me)
https://client.koaladev.io/
Creative Commons Zero v1.0 Universal
31 stars 9 forks source link

fix Whisper transcription on website version not working - RecordRTC is destroyed #66

Closed jackschedel closed 10 months ago

jackschedel commented 1 year ago

(Whisper is currently disabled on the website because it doesn't work properly. Remove the isElectron() && on line 266 of EditView.tsx to enable it on the website.)

Electron: image

Website: image

jackschedel commented 10 months ago

this has the same issue on yarn electron, but not the built version. Strange.

HritikR commented 10 months ago

@jackschedel This issue is because of vite dependency optimization. lamejs (CJS dependency used by useWhisper) is being excluded. This issue only exists on dev server. Production server is working as expected.

Should I create a pull request to fix this in the dev server? This will also fix yarn electron

jackschedel commented 10 months ago

@HritikR that would be amazing, thanks.

jackschedel commented 10 months ago

fixed in #98 thanks Hritik!