Skip to content

Commit

Permalink
commment
Browse files Browse the repository at this point in the history
  • Loading branch information
jordimas committed Dec 23, 2024
1 parent fec5eff commit f7fa9d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions open_dubbing/text_to_speech.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ def update_utterance_metadata(
if utterance
else []
)
# If "assigned_voice" has changed we give it priority and not overwrite it
# by recalculating from speaker_id/gender
if not utterance or (
"speaker_id" in fields and "assigned_voice" not in fields
):
Expand Down

0 comments on commit f7fa9d0

Please sign in to comment.