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

add: リクエストのノートにNoteIdを代入可能にし、音素ごとに元のノートIDが紐づくようにする #2283

Merged
merged 2 commits into from
Oct 5, 2024

Conversation

Hiroshiba
Copy link
Member

内容

将来音素編集が入ると、どの音素がどのノートと結びついているかの情報が必要になります。
エンジンへのリクエストにノート ID を付与し、エンジンが返す情報にノート ID が付与されていればOKです。

エンジン側はこのプルリクエストで実装されていたので、エディタ側も追従しました。
特に機能的な変更はありません。

関連 Issue

その他

@Hiroshiba Hiroshiba requested a review from a team as a code owner October 5, 2024 13:50
@@ -65,6 +65,7 @@ const createNotesForRequestToEngine = (
);
const noteOffFrame = Math.round(noteOffSeconds * frameRate);
notesForRequestToEngine.push({
id: note.id,
Copy link
Member Author

Choose a reason for hiding this comment

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

ここでエディタ側が持つノートIDをエンジン側に送ってます。
前後の空白用のノートがあるのですが、そっちは今 ID 振られてなかったので、特に振らないようにしました。
もしpauも挿入できるようにするならID振る必要があるかも。

@@ -383,6 +383,7 @@ const getFeatureName = (name: keyof SupportedFeatures) => {
adjustPitchScale: "全体の音高の調整",
adjustIntonationScale: "全体の抑揚の調整",
adjustVolumeScale: "全体の音量の調整",
adjustPauseLength: "句読点などの無音時間の調整",
Copy link
Member Author

Choose a reason for hiding this comment

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

エンジン側を更新したらついでにはいった更新の追従。

タスク関連なはず?

@Hiroshiba
Copy link
Member Author

@sigprogramming
音素とノート ID を紐付けられるようにするプルリクエスト作ってみました!!
もしよかったらレビューいただけると 🙇
(と言ってもほぼほぼOpenAPIの更新ですが)

Copy link
Contributor

@sigprogramming sigprogramming 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 616ad31 into VOICEVOX:main Oct 5, 2024
8 checks passed
@Hiroshiba Hiroshiba deleted the ScoreにNoteIdを導入 branch October 5, 2024 15:03
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