Skip to content

Commit

Permalink
Fix: "Neutral" を "ノーマル" に変換する際、既存の "ノーマル" と衝突する場合は "Neutral" のまま使用
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukumijima committed Nov 3, 2024
1 parent 6cd92e8 commit acbc584
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aivmlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def generate_aivm_metadata(
styles = [
AivmManifestSpeakerStyle(
# "Neutral" はより分かりやすい "ノーマル" に変換する
name = 'ノーマル' if style_name == 'Neutral' else style_name,
# ただし、既にスタイル名が "ノーマル" のスタイルがある場合は "Neutral" のままにする
name = 'ノーマル' if (style_name == 'Neutral' and 'ノーマル' not in hyper_parameters.data.style2id) else style_name,
icon = None,
local_id = style_index,
voice_samples = [],
Expand Down

0 comments on commit acbc584

Please sign in to comment.