在windows10 系统中通过pinokio 安装了openvoice v2 ,运行后 地址是 http://12..

*.71.150.216 /
在windows10 系统中通过pinokio 安装了openvoice v2 ,运行后 地址是 http://127.0.0.1:7860 , 也安装了 pyvideotrans 软件 ,想安装 github.com/kungful/openvoice-api ,请问支持通过pinokio 安装的openvoice v2吗?
尝试按照openvoice-api操作说明,把文件放到D:\\Users\\hi\\pinokio\\api\\openvoice2.git\\ 根目录吧,使用 cd 命令改变当前工作目录,cd D:\\Users\\hi\\pinokio\\api\\openvoice2.git,然后在pyvideotrans 软件中调用openvoice-api ,打开pyvideotrans的GUI,点击设置TTS与翻译Key,选择自定义TTS-API,输入API地址:http://127.0.0.1:8000 (不应该是 http://127.0.0.1:7860 吗),测试api 出现下面错误, 错误提示 HTTPConnectionPool(host=\'127.0.0.1\', port=8000): Max retries
exceeded with urt: / (Caused by
NewConnectionError( : Falled to establish a new connection:
[WinEror10061]由于目标计算机积极拒绝。无法连接。)) .请问是哪里的问题?该如何解决?谢谢!
回复
  • #1 / **.70.214.95
    7860
    8000
    ???
  • #2 / **.69.33.249
    仔细看那个仓库说明,需要下载仓库里的那个文件,启动那个文件夹而不是openv2自带的
  • #3 / **.71.146.209
    多谢回复!openvoice-api仓库文件放入openvoice根目录D:\\Users\\hi\\pinokio\\api\\openvoice2.git 下了,用的是pinokio安装的,没有虚拟环境,也没有安装python,我太懂代码,只能咨询ai, 尝试 在根目录下面来执行cmd 命令,D:\\Users\\hi\\pinokio\\bin\\miniconda\\python.exe -m pip install notebook
    D:\\Users\\hi\\pinokio\\bin\\miniconda\\python.exe -m pip install uvicorn
    D:\\Users\\hi\\pinokio\\bin\\miniconda\\python.exe -m uvicorn tryopenvoice:app --reload
    前面运行了,但到最后一步 D:\\Users\\hi\\pinokio\\api\\openvoice2.git>D:\\Users\\hi\\pinokio\\bin\\miniconda\\python.exe -m uvicorn tryopenvoice:app --reload 没反应了 。是操作不对吗?
  • #4 / **.71.146.209
    按了下enter键,下面是提示
    D:\\Users\\hi\\pinokio\\api\\openvoice2.git>D:\\Users\\hi\\pinokio\\bin\\miniconda\\python.exe -m uvicorn tryopenvoice:app --reload
    INFO: Will watch for changes in these directories: [\'D:\\\\Users\\\\hi\\\\pinokio\\\\api\\\\openvoice2.git\']
    INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    INFO: Started reloader process [14344] using WatchFiles
    Process SpawnProcess-1:
    Traceback (most recent call last):
    File \"D:\\Users\\hi\\pinokio\\bin\\miniconda\\lib\\multiprocessing\\process.py\", line 314, in _bootstrap
    self.run()
    File \"D:\\Users\\hi\\pinokio\\bin\\miniconda\\lib\\multiprocessing\\process.py\", line 108, in run
    self._target(*self._args, **self._kwargs)
    。。。此处省略 一部分
    File \"D:\\Users\\hi\\pinokio\\bin\\miniconda\\lib\\importlib\\__init__.py\", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
    File \"\", line 1050, in _gcd_import
    File \"\", line 1027, in _find_and_load
    File \"\", line 1006, in _find_and_load_unlocked
    File \"\", line 688, in _load_unlocked
    File \"\", line 883, in exec_module
    File \"\", line 241, in _call_with_frames_removed
    File \"D:\\Users\\hi\\pinokio\\api\\openvoice2.git\\tryopenvoice.py\", line 4, in
    from melo.api import TTS
    ModuleNotFoundError: No module named \'melo\' 是哪里出了问题呢?
  • #5 / **.162.245.18
    应该用这个python吧?
    D:\\Users\\hi\\pinokio\\api\\openvoice2.git\\app\\env\\Scripts\\python.exe -m pip install notebook
    D:\\Users\\hi\\pinokio\\api\\openvoice2.git\\app\\env\\Scripts\\python.exe -m pip install uvicorn
    到最后一步D:\\Users\\hi\\pinokio\\api\\openvoice2.git\\app\\env\\Scripts\\python.exe -m uvicorn tryopenvoice:app --reload ,弹窗 无法定位程序输入点
    ??$ mutable _ data _ ptr @ UHalf @c10@@@ TensorBase @ at @@ QEB APEAUHalf @c10@@ XZ 于动态链接库
    D :\\ Users \\ hi \\ pinokio \\ api \\openvoice2.git\\ app \\ env \\ Lib \\ site - packag es \\ torchaudio \\/ ib \\/ ibtorchaudio . pyd 上。
    请问是哪里操作错误吗?该如何解决,谢谢
  • #6 / **.69.33.119
    可能你 openvoice2 环境配置问题
    先安装好 openvoice2,确保这个能正常使用。再覆盖那个py文件
  • #8 / **.162.245.153
    openvoice2 安装好了,能正常使用。openvoice api 下的文件也是覆盖到主目录了。不知道为什么不行?
  • #9 / **.69.33.104
    python.exe -m pip install git+https://github.com/myshell-ai/MeloTTS.git

    python.exe -m unidic download
  • #10 / **.68.22.4
    感谢回复!下载安装了unidic, 最后一步出现这个问题 D:\\Users\\hi\\pinokio\\api\\openvoice2.git\\app\\env\\Scripts>D:\\Users\\hi\\pinokio\\api\\openvoice2.git\\app\\env\\Scripts\\python.exe -m uvicorn tryopenvoice:app --reload
    INFO: Will watch for changes in these directories: [\'D:\\\\Users\\\\hi\\\\pinokio\\\\api\\\\openvoice2.git\\\\app\\\\env\\\\Scripts\']
    INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    INFO: Started reloader process [20336] using WatchFiles
    ERROR: Error loading ASGI app. Could not import module \"tryopenvoice\". 该如何解决呢?
  • #11 / **.70.211.206
    在tryopenvoice.py文件所在目录下执行
  • #12 / **.68.23.136
    我试了,也就是根目录下 D:\\Users\\hi\\pinokio\\api\\openvoice2.git ,但是此目录没有python 文件,没法执行D:\\Users\\hi\\pinokio\\api\\openvoice2.git\\python.exe -m uvicorn tryopenvoice:app --reload ,python 文件在 D:\\Users\\hi\\pinokio\\api\\openvoice2.git\\app\\env\\Scripts\\python.exe -m uvicorn tryopenvoice:app --reload ,但是没有 tryopenvoice.py 该如何解决呢?
  • #13 / **.70.214.221
    D:\\\\Users\\\\hi\\\\pinokio\\\\api\\\\openvoice2.git\\\\app\\\\env\\\\Scripts\\\\python.exe
    这样来执行 python.exe
  • #14 / **.68.23.136
    按照D:\\Users\\hi\\pinokio\\api\\openvoice2.git\\python.exe 执行python.exe后,
    尝试一:直接执行
    pip install notebook
    pip install uvicorn
    uvicorn tryopenvoice:app --reload
    出现错误: D:\\Users\\hi\\pinokio\\api\\openvoice2.git>D:\\Users\\hi\\pinokio\\api\\openvoice2.git\\app\\env\\Scripts\\python.exe
    Python 3.10.14 | packaged by Anaconda, Inc. | (main, Mar 21 2024, 16:20:14) [MSC v.1916 64 bit (AMD64)] on win32
    Type \"help\", \"copyright\", \"credits\" or \"license\" for more information.
    >>> pip install notebook
    File \"\", line 1
    pip install notebook
    ^^^^^^^
    省略一下。。。
    SyntaxError: invalid syntax
    >>> uvicorn tryopenvoice:app --reload
    File \"\", line 1
    uvicorn tryopenvoice:app --reload
    ^^^^^^^^^^^^
    尝试二:
    执行
    D:\\Users\\hi\\pinokio\\api\\openvoice2.git\\python.exe -m pip install notebook
    D:\\Users\\hi\\pinokio\\api\\openvoice2.git\\python.exe -m pip install uvicorn
    D:\\Users\\hi\\pinokio\\api\\openvoice2.git\\python.exe -m uvicorn tryopenvoice:app --reload

    出现D:\\Users\\hi\\pinokio\\api\\openvoice2.git>D:\\Users\\hi\\pinokio\\api\\openvoice2.git\\app\\env\\Scripts\\python.exe
    Python 3.10.14 | packaged by Anaconda, Inc. | (main, Mar 21 2024, 16:20:14) [MSC v.1916 64 bit (AMD64)] on win32
    Type \"help\", \"copyright\", \"credits\" or \"license\" for more information.
    >>> D:\\Users\\hi\\pinokio\\api\\openvoice2.git\\python.exe -m pip install notebook
    File \"\", line 1
    D:\\Users\\hi\\pinokio\\api\\openvoice2.git\\python.exe -m pip install notebook
    ^
    省略一下

    SyntaxError: unexpected character after line continuation character
    >>> D:\\Users\\hi\\pinokio\\api\\openvoice2.git\\python.exe -m uvicorn tryopenvoice:app --reload
    File \"\", line 1
    D:\\Users\\hi\\pinokio\\api\\openvoice2.git\\python.exe -m uvicorn tryopenvoice:app --reload
    ^
    SyntaxError: unexpected character after line continuation character
    怎么解决呢?谢谢
问答模块基于php8.1/sqlite/webman/layui构建 © pyvideotrans.com