-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: プリセットへモデルモジュールを追加 * refactor: lint * Apply suggestions from code review * merge --------- Co-authored-by: Hiroshiba <hihokaruta@gmail.com> Co-authored-by: Hiroshiba Kazuyuki <kazuyuki_hiroshiba@dwango.co.jp>
- Loading branch information
1 parent
3b79fbc
commit a272814
Showing
9 changed files
with
36 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
""" | ||
プリセット機能に関して API と ENGINE 内部実装が共有するモデル | ||
「API と ENGINE 内部実装が共有するモデル」については `voicevox_engine/model.py` の module docstring を確認すること。 | ||
""" | ||
|
||
from pydantic import BaseModel, Field | ||
|
||
from voicevox_engine.metas.Metas import StyleId | ||
|
||
|
||
class Preset(BaseModel): | ||
""" | ||
プリセット情報 | ||
""" | ||
|
||
id: int = Field(title="プリセットID") | ||
name: str = Field(title="プリセット名") | ||
speaker_uuid: str = Field(title="話者のUUID") | ||
style_id: StyleId = Field(title="スタイルID") | ||
speedScale: float = Field(title="全体の話速") | ||
pitchScale: float = Field(title="全体の音高") | ||
intonationScale: float = Field(title="全体の抑揚") | ||
volumeScale: float = Field(title="全体の音量") | ||
prePhonemeLength: float = Field(title="音声の前の無音時間") | ||
postPhonemeLength: float = Field(title="音声の後の無音時間") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters