GithubHelp home page GithubHelp logo

failed to run demo about openvoice HOT 4 CLOSED

myshell-ai avatar myshell-ai commented on August 19, 2024
failed to run demo

from openvoice.

Comments (4)

yuxumin avatar yuxumin commented on August 19, 2024

It looks like there may be an issue caused by HTTP timeout, possibly due to the server experiencing a lack of response when accessing GitHub.

from openvoice.

wolf-joe avatar wolf-joe commented on August 19, 2024

It looks like there may be an issue caused by HTTP timeout, possibly due to the server experiencing a lack of response when accessing GitHub.

i try to run demo code directly, then i got exception detail: 401 error.

Traceback (most recent call last):
  File "/home/worker/miniconda3/envs/openvoice/lib/python3.9/site-packages/whisper_timestamped/transcribe.py", line 1885, in get_vad_segments
    _silero_vad_model, utils = torch.hub.load(repo_or_dir=repo_or_dir, model="silero_vad", onnx=onnx, source=source)
  File "/home/worker/miniconda3/envs/openvoice/lib/python3.9/site-packages/torch/hub.py", line 539, in load
    repo_or_dir = _get_cache_or_reload(repo_or_dir, force_reload, trust_repo, "load",
  File "/home/worker/miniconda3/envs/openvoice/lib/python3.9/site-packages/torch/hub.py", line 203, in _get_cache_or_reload
    _validate_not_a_forked_repo(repo_owner, repo_name, ref)
  File "/home/worker/miniconda3/envs/openvoice/lib/python3.9/site-packages/torch/hub.py", line 162, in _validate_not_a_forked_repo
    response = json.loads(_read_url(Request(url, headers=headers)))
  File "/home/worker/miniconda3/envs/openvoice/lib/python3.9/site-packages/torch/hub.py", line 145, in _read_url
    with urlopen(url) as r:
  File "/home/worker/miniconda3/envs/openvoice/lib/python3.9/urllib/request.py", line 214, in urlopen
    return opener.open(url, data, timeout)
  File "/home/worker/miniconda3/envs/openvoice/lib/python3.9/urllib/request.py", line 523, in open
    response = meth(req, response)
  File "/home/worker/miniconda3/envs/openvoice/lib/python3.9/urllib/request.py", line 632, in http_response
    response = self.parent.error(
  File "/home/worker/miniconda3/envs/openvoice/lib/python3.9/urllib/request.py", line 561, in error
    return self._call_chain(*args)
  File "/home/worker/miniconda3/envs/openvoice/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/home/worker/miniconda3/envs/openvoice/lib/python3.9/urllib/request.py", line 642, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 401: Unauthorized

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/worker/git/OpenVoice/test.py", line 26, in <module>
    target_se, audio_name = se_extractor.get_se(
  File "/home/worker/git/OpenVoice/se_extractor.py", line 130, in get_se
    wavs_folder = split_audio_vad(audio_path, target_dir)
  File "/home/worker/git/OpenVoice/se_extractor.py", line 75, in split_audio_vad
    segments = get_vad_segments(
  File "/home/worker/miniconda3/envs/openvoice/lib/python3.9/site-packages/whisper_timestamped/transcribe.py", line 1889, in get_vad_segments
    raise RuntimeError(f"Problem when installing silero with version {version}. Check versions here: https://github.com/snakers4/silero-vad/wiki/Version-history-and-Available-Models") from err
RuntimeError: Problem when installing silero with version None. Check versions here: https://github.com/snakers4/silero-vad/wiki/Version-history-and-Available-Models

from openvoice.

wolf-joe avatar wolf-joe commented on August 19, 2024

Based on the information from the 401 error in the code, I printed the URL that caused the 401 error and obtained the following address: https://api.github.com/repos/snakers4/silero-vad/branches?per_page=100&page=1. However, strangely, when I accessed this URL locally using curl, I received a normal 200 response.

from openvoice.

wolf-joe avatar wolf-joe commented on August 19, 2024

I found the reason. There is an invalid GITHUB_TOKEN in my environment variables.

from openvoice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.