Skip to content

Commit

Permalink
update to v0.9.19 & 話し手の言語スタイルを調整
Browse files Browse the repository at this point in the history
  • Loading branch information
solaoi committed Aug 25, 2024
1 parent 8229c20 commit b7fc1db
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 24 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lycoris",
"private": true,
"version": "0.9.18",
"version": "0.9.19",
"type": "module",
"license": "MIT",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lycoris"
version = "0.9.18"
version = "0.9.19"
description = "Lycoris is an offline voice memo"
authors = ["solaoi"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "Lycoris",
"version": "0.9.18"
"version": "0.9.19"
},
"tauri": {
"allowlist": {
Expand Down
39 changes: 19 additions & 20 deletions src/components/molecules/SpeakerLanguage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,65 +32,54 @@ const SpeakerLanguage = (): JSX.Element => {
const mapModel = (model: string) => {
switch (model) {
case "small-ja-0.22":
return "日本語:低";
case "ja-0.22":
return "日本語";
case "small-en-us-0.15":
return "英語:低";
case "en-us-0.22":
return "英語";
case "small-cn-0.22":
return "中国語:低";
case "cn-0.22":
return "中国語";
case "small-ko-0.22":
return "韓国語:低";
return "韓国語";
case "small-fr-0.22":
return "フランス語:低";
case "fr-0.22":
return "フランス語";
case "small-de-0.15":
return "ドイツ語:低";
case "de-0.21":
return "ドイツ語";
case "small-ru-0.22":
return "ロシア語:低";
case "ru-0.42":
return "ロシア語";
case "small-es-0.42":
return "スペイン語:低";
case "es-0.42":
return "スペイン語";
case "small-pt-0.3":
return "ポルトガル語:低";
return "ポルトガル語";
case "small-tr-0.3":
return "トルコ語:低";
return "トルコ語";
case "small-vn-0.4":
return "ベトナム語:低";
case "vn-0.4":
return "ベトナム語";
case "small-it-0.22":
return "イタリア語:低";
case "it-0.22":
return "イタリア語";
case "small-nl-0.22":
return "オランダ語:低";
return "オランダ語";
case "small-ca-0.4":
return "カタルーニャ語:低";
return "カタルーニャ語";
case "small-uk-v3-small":
return "ウクライナ語:低";
case "uk-v3":
return "ウクライナ語";
case "small-sv-rhasspy-0.15":
return "スウェーデン語:低";
return "スウェーデン語";
case "small-hi-0.22":
return "ヒンディー語:低";
case "hi-0.22":
return "ヒンディー語";
case "small-cs-0.4-rhasspy":
return "チェコ語:低";
return "チェコ語";
case "small-pl-0.22":
return "ポーランド語:低";
return "ポーランド語";
default:
throw new Error("unknown modelType");
}
Expand Down Expand Up @@ -126,7 +115,17 @@ const SpeakerLanguage = (): JSX.Element => {
style={{ backgroundColor: "hsl(var(--b1) / var(--tw-bg-opacity))", border: "1px solid hsl(var(--bc) / 0.2)" }}
>
{downloadedModels.length > 0 && <ul className="max-h-56 overflow-y-scroll rounded-box scrollbar-transparent">
{downloadedModels.map((model, i) => (
{downloadedModels.filter(model => model.startsWith("small")).length > 0 && downloadedModels.filter(model => !model.startsWith("small")).length > 0 && <p className="text-sm ml-2 mb-2">通常</p>}
{downloadedModels.filter(model => !model.startsWith("small")).map((model, i) => (
<li key={"speaker-language_" + i}>
<label className="label inline-flex active:!bg-inherit">
<input type="radio" name="language-option" className="radio radio-accent" onChange={change} value={model} checked={model === speakerLanguage} />
<a className="grow">{mapModel(model)}</a>
</label>
</li>
))}
{downloadedModels.filter(model => model.startsWith("small")).length > 0 && downloadedModels.filter(model => !model.startsWith("small")).length > 0 && <><hr className="mt-2" /><p className="text-sm ml-2 my-2">ライト</p></>}
{downloadedModels.filter(model => model.startsWith("small")).map((model, i) => (
<li key={"speaker-language_" + i}>
<label className="label inline-flex active:!bg-inherit">
<input type="radio" name="language-option" className="radio radio-accent" onChange={change} value={model} checked={model === speakerLanguage} />
Expand Down

0 comments on commit b7fc1db

Please sign in to comment.