Skip to content

Commit

Permalink
Fixed loaded phonemes from mrp are not properly applied
Browse files Browse the repository at this point in the history
  • Loading branch information
EX3exp committed Oct 7, 2024
1 parent 1c81492 commit 52bc6c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Mirivoice/Views/LineBoxView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ public LineBoxView(MLinePrototype mLinePrototype, MainViewModel v, int index, in
{
// if phonemeEdit is not empty, use phonemeEdit's results
singleLineEditorView = new SingleLineEditorView(this, false);
ShouldPhonemizeWhenSelected = false;
}
else
{
Expand Down
6 changes: 6 additions & 0 deletions Mirivoice/Views/SingleLineEditorView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ public SingleLineEditorView(LineBoxView lineBoxView, bool FirstUpdate = true)
this.pointerExit = false;
l.DeActivatePhonemizer = false;
this.FirstUpdate = FirstUpdate;
if (!FirstUpdate)
{
l.lastPhonemizedText = l.viewModel.LineText;
l.DeActivatePhonemizer = true;
l.ShouldPhonemize = false;
}
}

bool ShouldPhonemizeWhenOutFocused = false;
Expand Down

0 comments on commit 52bc6c9

Please sign in to comment.