-
Notifications
You must be signed in to change notification settings - Fork 309
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
ENH: モーフィングUIの実装 #1030
Merged
+614
−168
Merged
ENH: モーフィングUIの実装 #1030
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
bc41c37
ENH: audioStoreにモーフィング適用するための操作を追加
sabonerune 202f31a
FIX: MorphingInfo型からundefinedを除去
sabonerune 9a15da6
ENH: モーフィングUIとプリセットを追加
sabonerune bd6e7a2
Update src/components/AudioInfo.vue
sabonerune c5991c8
Update src/components/AudioInfo.vue
sabonerune efe21bd
FIX: 変数名等を修正
sabonerune 811dee7
FIX: convertAudioQueryFromEditorToEngineを共通化
sabonerune 9ba2528
ADD: モーフィングの設定が不正である場合エラーを返してその旨をダイアログに表示する
sabonerune 9355128
Merge branch 'main' into morphing_ui/audioStore
sabonerune 8156f65
FIX: GenerateAudioResultObjectを廃止して例外を投げるように変更
sabonerune 586ed7b
FIX: PLAY_AUDIOのエラー処理を変更
sabonerune f754a6e
FIX: 設定でモーフィングが無効化されていてもモーフィングが行われるように変更
sabonerune 5dc0556
FIXMEコメントの追加
sabonerune bd2b4f1
FIX: Errorの型名を変更
sabonerune 97a59af
Merge branch 'main' into working/morphing_ui
sabonerune File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -695,9 +695,8 @@ export const audioStore = createPartialStore<AudioStoreTypes>({ | |
}, | ||
|
||
VALID_MOPHING_INFO: { | ||
getter: (state, getters) => (audioItem: AudioItem) => { | ||
getter: (_, getters) => (audioItem: AudioItem) => { | ||
if ( | ||
!state.experimentalSetting.enableMorphing || | ||
audioItem.morphingInfo == undefined || | ||
audioItem.engineId == undefined | ||
) | ||
|
@@ -1092,30 +1091,29 @@ export const audioStore = createPartialStore<AudioStoreTypes>({ | |
if (audioQuery == undefined || speaker == undefined) { | ||
return null; | ||
} | ||
const engineAudioQuery = convertAudioQueryFromEditorToEngine( | ||
audioQuery, | ||
state.engineManifests[engineId].defaultSamplingRate | ||
); | ||
|
||
return dispatch("INSTANTIATE_ENGINE_CONNECTOR", { | ||
engineId, | ||
}) | ||
.then((instance) => { | ||
if ( | ||
audioItem.morphingInfo != undefined && | ||
state.experimentalSetting.enableMorphing && | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. モーフィングの設定は音声合成時に確認します |
||
getters.VALID_MOPHING_INFO(audioItem) | ||
) { | ||
return instance.invoke("synthesisMorphingSynthesisMorphingPost")({ | ||
audioQuery: convertAudioQueryFromEditorToEngine( | ||
audioQuery, | ||
state.engineManifests[engineId].defaultSamplingRate | ||
), | ||
audioQuery: engineAudioQuery, | ||
baseSpeaker: speaker, | ||
targetSpeaker: audioItem.morphingInfo.targetStyleId, | ||
morphRate: audioItem.morphingInfo.rate, | ||
}); | ||
} | ||
return instance.invoke("synthesisSynthesisPost")({ | ||
audioQuery: convertAudioQueryFromEditorToEngine( | ||
audioQuery, | ||
state.engineManifests[engineId].defaultSamplingRate | ||
), | ||
audioQuery: engineAudioQuery, | ||
speaker, | ||
enableInterrogativeUpspeak: | ||
state.experimentalSetting.enableInterrogativeUpspeak, | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VALID_MOPHING_INFO
の判定からモーフィングの設定を外しました。