Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems in index.html #36

Open
Ladbaby opened this issue Nov 15, 2024 · 0 comments
Open

Problems in index.html #36

Ladbaby opened this issue Nov 15, 2024 · 0 comments

Comments

@Ladbaby
Copy link

Ladbaby commented Nov 15, 2024

Problem Description

In web frontend:

  • websocket connection status shows disconnected
  • clicking on the microphone button in the frontend does not change the on/off status

How to reproduce

follow the basic setup process as described in Wiki:

  • git clone https://github.com/t41372/Open-LLM-VTuber
  • conda create -n my_env python=3.11, conda activate my_env
  • pip install -r requirements.txt

Nothing else is changed, including conf.yaml.

Now launch the program via python server.py, and the problems above can be reproduced.

My workaround

Websocket problem is caused by a force value overwrite when the frontend is connected via http:// (but not file://)

wsUrl.value = "/client-ws";

change it to wsUrl.value = "ws://127.0.0.1:12393/client-ws"; did solve the websocket connection problem, but it still makes the input area in front end useless.

For the other microphone problem, it was caused by inappropriate initialization of myvad, which is only initialized in start_mic()

myvad.pause();

adding if (myvad == null) await init_vad(); also in stop_mic() solves the problem.

(PS: 用英文说明只是因为担心其他人有遇到类似的问题)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant