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: Rust APIにおけるgetterをパブリックAPIとして整える #807

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

qryxip
Copy link
Member

@qryxip qryxip commented Jul 10, 2024

内容

題の通りです。

  • SupportedDevices, SpeakerMeta系: VOICEVOX CORE側から一方的に返すものなのでopen structでよい
  • AudioQuery系: 「不正なAudioQuery」という概念は一応今は定義されていないため、open structでよい
  • UserDictWord: 上記とは異なり、「不正なUserDictWord」という概念が存在するためgetterを定義
    • surfacepronunciationpriorityだけだったらUserDictWord{Surface,…}を作ればよいのだが、「accent_typeは単語のモーラ数を超過してはならない」という制約もある

関連 Issue

ref #388

その他

Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(ちゃんとわかってないですが)LGTM!!

処理は変わってなさそうっぽいことを確認しました!

@Hiroshiba Hiroshiba merged commit d66a8b0 into VOICEVOX:main Jul 11, 2024
31 checks passed
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.

2 participants