bephrem1 / bephrem1/vocalized.dev

Fix Silero VAD Static Paths

Open
#15 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
9
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Currently in [next.config.js](https://github.com/bephrem1/vocalized.dev/blob/main/next.config.js#L31) we place static files for the [VAD package](https://github.com/ricky0123/vad) under `static/chunks/pages`. This was due to an import error during runtime where the `ricky0123/vad` package code would only look at that root path for static files (there's no config to have the library looks to a different path). So I set the files to be copied over there.

Ideally we pick & choose the actual place we want these files to be in the build via some param (which I think they may expose), instead of hacking things to align.

Everything works though (locally & in prod), but sort of hacked. Need to put more attention back on this issue to prevent weird future breakages.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.