From 6813b41c6c3a307fa7fdb912873d5f124a792ad3 Mon Sep 17 00:00:00 2001 From: Hiroshiba Date: Tue, 25 Jun 2024 15:24:12 +0900 Subject: [PATCH] =?UTF-8?q?=E8=BF=BD=E5=8A=A0=EF=BC=9A=E3=82=A8=E3=83=B3?= =?UTF-8?q?=E3=82=B8=E3=83=B3=E3=83=9E=E3=83=8B=E3=83=95=E3=82=A7=E3=82=B9?= =?UTF-8?q?=E3=83=88=E3=81=AB=E7=84=A1=E9=9F=B3=E6=99=82=E9=96=93=E3=82=92?= =?UTF-8?q?=E8=AA=BF=E6=95=B4=E3=81=99=E3=82=8B=E8=83=BD=E5=8A=9B`adjust?= =?UTF-8?q?=5Fpause=5Flength`=E3=82=92=E8=BF=BD=E5=8A=A0=20(#1432)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit エンジンマニフェストに無音時間を調整する能力adjust_pause_lengthを追加 --- engine_manifest.json | 5 +++++ ...223\343\201\250\343\202\222\347\242\272\350\252\215.json" | 4 ++++ .../test_engine_manifest/test_get_engine_manifest_200.json | 1 + voicevox_engine/engine_manifest.py | 4 ++++ 4 files changed, 14 insertions(+) diff --git a/engine_manifest.json b/engine_manifest.json index 000edb6dc..b3a840501 100644 --- a/engine_manifest.json +++ b/engine_manifest.json @@ -44,6 +44,11 @@ "value": true, "name": "全体の音量の調整" }, + "adjust_pause_length": { + "type": "bool", + "value": true, + "name": "句読点などの無音時間の調整" + }, "interrogative_upspeak": { "type": "bool", "value": true, diff --git "a/test/e2e/__snapshots__/test_openapi/test_OpenAPI\343\201\256\345\275\242\343\201\214\345\244\211\343\202\217\343\201\243\343\201\246\343\201\204\343\201\252\343\201\204\343\201\223\343\201\250\343\202\222\347\242\272\350\252\215.json" "b/test/e2e/__snapshots__/test_openapi/test_OpenAPI\343\201\256\345\275\242\343\201\214\345\244\211\343\202\217\343\201\243\343\201\246\343\201\204\343\201\252\343\201\204\343\201\223\343\201\250\343\202\222\347\242\272\350\252\215.json" index 0d9e9f862..65c84de4c 100644 --- "a/test/e2e/__snapshots__/test_openapi/test_OpenAPI\343\201\256\345\275\242\343\201\214\345\244\211\343\202\217\343\201\243\343\201\246\343\201\204\343\201\252\343\201\204\343\201\223\343\201\250\343\202\222\347\242\272\350\252\215.json" +++ "b/test/e2e/__snapshots__/test_openapi/test_OpenAPI\343\201\256\345\275\242\343\201\214\345\244\211\343\202\217\343\201\243\343\201\246\343\201\204\343\201\252\343\201\204\343\201\223\343\201\250\343\202\222\347\242\272\350\252\215.json" @@ -861,6 +861,10 @@ "title": "モーラごとの音高の調整", "type": "boolean" }, + "adjust_pause_length": { + "title": "句読点などの無音時間の調整", + "type": "boolean" + }, "adjust_phoneme_length": { "title": "音素ごとの長さの調整", "type": "boolean" diff --git a/test/e2e/single_api/engine_info/__snapshots__/test_engine_manifest/test_get_engine_manifest_200.json b/test/e2e/single_api/engine_info/__snapshots__/test_engine_manifest/test_get_engine_manifest_200.json index 774fdaa43..d24ff2283 100644 --- a/test/e2e/single_api/engine_info/__snapshots__/test_engine_manifest/test_get_engine_manifest_200.json +++ b/test/e2e/single_api/engine_info/__snapshots__/test_engine_manifest/test_get_engine_manifest_200.json @@ -16,6 +16,7 @@ "supported_features": { "adjust_intonation_scale": true, "adjust_mora_pitch": true, + "adjust_pause_length": true, "adjust_phoneme_length": true, "adjust_pitch_scale": true, "adjust_speed_scale": true, diff --git a/voicevox_engine/engine_manifest.py b/voicevox_engine/engine_manifest.py index 30c5198f2..05677ed7a 100644 --- a/voicevox_engine/engine_manifest.py +++ b/voicevox_engine/engine_manifest.py @@ -34,6 +34,7 @@ class SupportedFeaturesJson: adjust_pitch_scale: FeatureSupportJson adjust_intonation_scale: FeatureSupportJson adjust_volume_scale: FeatureSupportJson + adjust_pause_length: FeatureSupportJson interrogative_upspeak: FeatureSupportJson synthesis_morphing: FeatureSupportJson sing: FeatureSupportJson @@ -103,6 +104,9 @@ class SupportedFeatures(BaseModel): adjust_pitch_scale: bool = Field(title="全体の音高の調整") adjust_intonation_scale: bool = Field(title="全体の抑揚の調整") adjust_volume_scale: bool = Field(title="全体の音量の調整") + adjust_pause_length: bool | SkipJsonSchema[None] = Field( + default=None, title="句読点などの無音時間の調整" + ) interrogative_upspeak: bool = Field(title="疑問文の自動調整") synthesis_morphing: bool = Field( title="2種類のスタイルでモーフィングした音声を合成"