From d01dc27395d1eb21b0058fe41ca2905fbf34cf4b Mon Sep 17 00:00:00 2001 From: Ryo Yamashita Date: Sun, 15 Dec 2024 00:15:22 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20fix=20up=20#761:=20Java=E3=81=A8Python?= =?UTF-8?q?=E3=81=AE`StyleType`=E3=82=92=E5=9F=8B=E3=82=81=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/jp/hiroshiba/voicevoxcore/StyleType.java | 15 +++++++++++++++ .../python/voicevox_core/_models.py | 9 +++++++++ 2 files changed, 24 insertions(+) diff --git a/crates/voicevox_core_java_api/lib/src/main/java/jp/hiroshiba/voicevoxcore/StyleType.java b/crates/voicevox_core_java_api/lib/src/main/java/jp/hiroshiba/voicevoxcore/StyleType.java index 1e7c52d47..e0eb699fb 100644 --- a/crates/voicevox_core_java_api/lib/src/main/java/jp/hiroshiba/voicevoxcore/StyleType.java +++ b/crates/voicevox_core_java_api/lib/src/main/java/jp/hiroshiba/voicevoxcore/StyleType.java @@ -9,4 +9,19 @@ public enum StyleType { @SerializedName("talk") @Expose TALK, + + /** 歌唱音声合成用のクエリの作成が可能。 */ + @SerializedName("singing_teacher") + @Expose + SINGING_TEACHER, + + /** 歌唱音声合成が可能。 */ + @SerializedName("frame_decode") + @Expose + FRAME_DECODE, + + /** 歌唱音声合成用のクエリの作成と歌唱音声合成が可能。 */ + @SerializedName("sing") + @Expose + SING, } diff --git a/crates/voicevox_core_python_api/python/voicevox_core/_models.py b/crates/voicevox_core_python_api/python/voicevox_core/_models.py index dc32558fb..68359bf18 100644 --- a/crates/voicevox_core_python_api/python/voicevox_core/_models.py +++ b/crates/voicevox_core_python_api/python/voicevox_core/_models.py @@ -41,6 +41,15 @@ class StyleType(str, Enum): TALK = "talk" """音声合成クエリの作成と音声合成が可能。""" + SINGING_TEACHER = "singing_teacher" + """歌唱音声合成用のクエリの作成が可能。""" + + FRAME_DECODE = "frame_decode" + """歌唱音声合成が可能。""" + + SING = "sing" + """歌唱音声合成用のクエリの作成と歌唱音声合成が可能。""" + @pydantic.dataclasses.dataclass class StyleMeta: