Skip to content

Commit

Permalink
[project-s] sing追加してデフォルトをtalkにする (#1030)
Browse files Browse the repository at this point in the history
* sing追加してデフォルトをtalkにする

* test
  • Loading branch information
Hiroshiba authored Jan 27, 2024
1 parent ea76515 commit 2b88ff2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -725,10 +725,12 @@
"type": "string"
},
"type": {
"default": "talk",
"enum": [
"talk",
"humming",
"sing_teacher"
"sing_teacher",
"sing"
],
"title": "モデルの種類",
"type": "string"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@
{
"id": 0,
"name": "style0",
"type": null
"type": "talk"
},
{
"id": 2,
"name": "style1",
"type": null
"type": "talk"
},
{
"id": 4,
"name": "style2",
"type": null
"type": "talk"
},
{
"id": 6,
"name": "style3",
"type": null
"type": "talk"
}
],
"supported_features": {
Expand All @@ -36,22 +36,22 @@
{
"id": 1,
"name": "style0",
"type": null
"type": "talk"
},
{
"id": 3,
"name": "style1",
"type": null
"type": "talk"
},
{
"id": 5,
"name": "style2",
"type": null
"type": "talk"
},
{
"id": 7,
"name": "style3",
"type": null
"type": "talk"
}
],
"supported_features": {
Expand All @@ -66,7 +66,7 @@
{
"id": 8,
"name": "style0",
"type": null
"type": "talk"
}
],
"supported_features": {
Expand All @@ -81,7 +81,7 @@
{
"id": 9,
"name": "style0",
"type": null
"type": "talk"
}
],
"supported_features": {
Expand Down
4 changes: 2 additions & 2 deletions voicevox_engine/metas/Metas.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# NOTE: 循環importを防ぐためにとりあえずここに書いている
# FIXME: 他のmodelに依存せず、全modelから参照できる場所に配置する
StyleId = NewType("StyleId", int)
StyleType = Literal["talk", "humming", "sing_teacher"]
StyleType = Literal["talk", "humming", "sing_teacher", "sing"]


class SpeakerStyle(BaseModel):
Expand All @@ -16,7 +16,7 @@ class SpeakerStyle(BaseModel):

name: str = Field(title="スタイル名")
id: StyleId = Field(title="スタイルID")
type: Optional[StyleType] = Field(title="モデルの種類")
type: Optional[StyleType] = Field(default="talk", title="モデルの種類")


class SpeakerSupportPermittedSynthesisMorphing(str, Enum):
Expand Down

0 comments on commit 2b88ff2

Please sign in to comment.