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

Refactor: acoustic_feature_extractor.py の単純化 #780

Closed
3 tasks done
tarepan opened this issue Nov 26, 2023 · 2 comments · Fixed by #781
Closed
3 tasks done

Refactor: acoustic_feature_extractor.py の単純化 #780

tarepan opened this issue Nov 26, 2023 · 2 comments · Fixed by #781

Comments

@tarepan
Copy link
Contributor

tarepan commented Nov 26, 2023

内容

現在の acoustic_feature_extractor.pyvoicevox_engine 内で未使用なDict・クラス(テストのみ)を備えている。以下はそのリスト:

  • JvsPhoneme
  • phoneme_type_to_class

JvsPhoneme に関しては2年前にリファクタリング提案があり、以後進展無し(the discussion)。
これら不使用Dict・クラスの削除によるリファクタリングを提案します。

Pros 良くなる点

  • コードの見通し改善

Cons 悪くなる点

  • 無し

実現方法

  • 関数・テストの削除

VOICEVOXのバージョン

0.14.10

OSの種類/ディストリ/バージョン

  • Windows
  • macOS
  • Linux
@github-actions github-actions bot added OS 依存:linux Linux に依存した現象 OS 依存:mac macOS に依存した現象 OS 依存:win Windows に依存した現象 labels Nov 26, 2023
@Hiroshiba
Copy link
Member

提案ありがとうございます!
削除で良いのかなと思いました!必要になったら再度追加すれば良いかなと。
@tarepan もしよかったらプルリクエスト頂けると!

@tarepan
Copy link
Contributor Author

tarepan commented Nov 26, 2023

@Hiroshiba 👍
着手します。

@tarepan tarepan removed OS 依存:mac macOS に依存した現象 OS 依存:linux Linux に依存した現象 OS 依存:win Windows に依存した現象 labels Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants