Skip to content

Make API Great Again#894

Merged
RVC-Boss merged 7 commits into
RVC-Boss:mainfrom
KamioRinn:Power-API
Mar 30, 2024
Merged

Make API Great Again#894
RVC-Boss merged 7 commits into
RVC-Boss:mainfrom
KamioRinn:Power-API

Conversation

@KamioRinn

Copy link
Copy Markdown
Contributor

本次更新不影响原已适配API的第三方程序运行

更新内容如下:

  1. 将语言支持同步到webui版本,即中/日/英/中英/日英/自动
  2. 新增文本按标点符号切分功能,支持命令行设置及API传参设置
  3. 新增音频返回格式选择,支持wav/ogg/aac,仅支持命令行设置
  4. 新增音频流式返回,支持ogg/aac,仅支持命令行设置

@RVC-Boss RVC-Boss merged commit 4afecd1 into RVC-Boss:main Mar 30, 2024
@ccjjfdyqlhy

Copy link
Copy Markdown

666

3 similar comments
@wubangjunjava

Copy link
Copy Markdown

666

@SapphireLab

Copy link
Copy Markdown
Contributor

666

@xmimu

xmimu commented Apr 2, 2024

Copy link
Copy Markdown
Contributor

666

@Miuzarte

Miuzarte commented Apr 7, 2024

Copy link
Copy Markdown
Contributor

这个commit之后加载模型会报

Traceback (most recent call last):
  File "A:\Git\GPT-SoVITS\api.py", line 657, in <module>
    change_sovits_weights(sovits_path)
  File "A:\Git\GPT-SoVITS\api.py", line 181, in change_sovits_weights
    hps.data.filter_length // 2 + 1,
AttributeError: 'DictToAttrRecursive' object has no attribute 'filter_length'

打印dir(hps.data)的结果是

['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'max_eval_sample', 'max_sec', 'num_workers', 'pad_val']

用旧的commit是正常的

['__class__', '__contains__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__len__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__setitem__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'add_blank', 'cleaned_text', 'exp_dir', 'filter_length', 'hop_length', 'items', 'keys', 'max_wav_value', 'mel_fmax', 'mel_fmin', 'n_mel_channels', 'n_speakers', 'sampling_rate', 'values', 'win_length']

请问佬知道什么情况么

@KamioRinn

Copy link
Copy Markdown
Contributor Author

这个commit之后加载模型会报

Traceback (most recent call last):
  File "A:\Git\GPT-SoVITS\api.py", line 657, in <module>
    change_sovits_weights(sovits_path)
  File "A:\Git\GPT-SoVITS\api.py", line 181, in change_sovits_weights
    hps.data.filter_length // 2 + 1,
AttributeError: 'DictToAttrRecursive' object has no attribute 'filter_length'

是不是SoVITS模型GPT模型传反了呀

@Miuzarte

Miuzarte commented Apr 7, 2024

Copy link
Copy Markdown
Contributor

这个commit之后加载模型会报

Traceback (most recent call last):
  File "A:\Git\GPT-SoVITS\api.py", line 657, in <module>
    change_sovits_weights(sovits_path)
  File "A:\Git\GPT-SoVITS\api.py", line 181, in change_sovits_weights
    hps.data.filter_length // 2 + 1,
AttributeError: 'DictToAttrRecursive' object has no attribute 'filter_length'

是不是SoVITS模型GPT模型传反了呀

草草草 还真是,🙏🙏🙏

RVC-Boss added a commit that referenced this pull request Apr 19, 2024
* Update README

* Optimize-English-G2P

* docs: change akward expression

* docs: update Changelog_KO.md

* Fix CN punc in EN,add 's match

* Adjust normalize and g2p logic

* Update zh_CN.json

* Update README (#827)

Update README.md
Update some outdated file paths and commands

* 修复英文多音字,调整字典热加载,新增姓名匹配 (#869)

* Fix homograph dict

* Add JSON in dict

* Adjust hot dict to hot reload

* Add English name dict

* Adjust get name dict logic

* Make API Great Again (#894)

* Add zh/jp/en mix

* Optimize code readability and formatted output.

* Try OGG streaming

* Add stream mode arg

* Add media type arg

* Add cut punc arg

* Eliminate punc risk

* Update README (#895)

* Update README

* Update README

* update README

* update README

* fix typo s/Licence /License (#904)

* fix reformat cmd (#917)

Co-authored-by: starylan <starylan@outlook.com>

* Update README.md

* Normalize chinese arithmetic operations (#947)

* 改变训练和推理时的mask策略,以修复当batch_size>1时,产生的复读现象

* 同步main分支代码,增加“保持随机”选项

* 在colab中运行colab_webui.ipynb发生的uvr5模型缺失问题 (#968)

在colab中使用git下载uvr5模型时报错:
fatal: destination path 'uvr5_weights' already exists and is not an empty directory.
通过在下载前将原本从本仓库下载的uvr5_weights文件夹删除可以解决问题。

* [ASR] 修复FasterWhisper遍历输入路径失败 (#956)

* remove glob

* rename

* reset mirror pos

* 回退mask策略;
回退pad策略;
在T2SBlock中添加padding_mask,以减少pad的影响;
开放repetition_penalty参数,让用户自行调整重复惩罚的强度;
增加parallel_infer参数,用于开启或关闭并行推理,关闭时与0307版本保持一致;
在webui中增加“保持随机”选项;
同步main分支代码。

* 删除无用注释

---------

Co-authored-by: Lion <drain.daters.0p@icloud.com>
Co-authored-by: RVC-Boss <129054828+RVC-Boss@users.noreply.github.com>
Co-authored-by: KamioRinn <snowsdream@live.com>
Co-authored-by: Pengoose <pengoose_dev@naver.com>
Co-authored-by: Yuan-Man <68322456+Yuan-ManX@users.noreply.github.com>
Co-authored-by: XXXXRT666 <157766680+XXXXRT666@users.noreply.github.com>
Co-authored-by: KamioRinn <63162909+KamioRinn@users.noreply.github.com>
Co-authored-by: Lion-Wu <130235128+Lion-Wu@users.noreply.github.com>
Co-authored-by: digger yu <digger-yu@outlook.com>
Co-authored-by: SapphireLab <36986837+SapphireLab@users.noreply.github.com>
Co-authored-by: starylan <starylan@outlook.com>
Co-authored-by: shadow01a <141255649+shadow01a@users.noreply.github.com>
@KamioRinn KamioRinn deleted the Power-API branch August 6, 2024 17:59
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

Successfully merging this pull request may close these issues.

7 participants