Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feature/1810_sing_col…
Browse files Browse the repository at this point in the history
…or_scheme_oklch
  • Loading branch information
romot-co committed Aug 9, 2024
2 parents 13d9bb3 + 563bd3e commit e6854b4
Show file tree
Hide file tree
Showing 10 changed files with 291 additions and 123 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ VITE_DEFAULT_ENGINE_INFOS=`[
"uuid": "074fc39e-678b-4c13-8916-ffca8d505d1d",
"name": "VOICEVOX Engine",
"executionEnabled": true,
"executionFilePath": "vv-engine/run.exe",
"executionFilePath": "C:/Users/(ユーザー名)/AppData/Local/Programs/VOICEVOX/vv-engine/run.exe",
"executionArgs": [],
"host": "http://127.0.0.1:50021"
}
Expand Down
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,26 @@ npm ci

## 実行

`.env.production`をコピーして`.env`を作成し、`VITE_DEFAULT_ENGINE_INFOS`内の`executionFilePath``voicevox_engine`のパスを指定します。
### エンジンの準備

[製品版 VOICEVOX](https://voicevox.hiroshiba.jp/) のディレクトリのパスを指定すれば動きます。
`.env.production`をコピーして`.env`を作成し、`VITE_DEFAULT_ENGINE_INFOS`内の`executionFilePath`
[製品版 VOICEVOX](https://voicevox.hiroshiba.jp/) 内の`vv-engine/run.exe`を指定すれば動きます。

Windows の場合でもパスの区切り文字は`\`ではなく`/`なのでご注意ください。
Windows でインストール先を変更していない場合は`C:/Users/(ユーザー名)/AppData/Local/Programs/VOICEVOX/vv-engine/run.exe`を指定してください。
パスの区切り文字は`\`ではなく`/`なのでご注意ください。

また、macOS 向けの`VOICEVOX.app`を利用している場合は`/path/to/VOICEVOX.app/Contents/MacOS/vv-engine/run`を指定してください。
macOS 向けの`VOICEVOX.app`を利用している場合は`/path/to/VOICEVOX.app/Contents/MacOS/vv-engine/run`を指定してください。

Linux の場合は、[Releases](https://github.com/VOICEVOX/voicevox/releases/)から入手できる tar.gz 版に含まれる`run`コマンドを指定してください。
Linux の場合は、[Releases](https://github.com/VOICEVOX/voicevox/releases/)から入手できる tar.gz 版に含まれる`vv-engine/run`コマンドを指定してください。
AppImage 版の場合は`$ /path/to/VOICEVOX.AppImage --appimage-mount`でファイルシステムをマウントできます。

VOICEVOX エディタの実行とは別にエンジン API のサーバを立てている場合は`executionFilePath`を指定する必要はありません。
VOICEVOX エディタの実行とは別にエンジン API のサーバを立てている場合は`executionFilePath`を指定する必要はありませんが、
代わりに`executionEnabled``false`にしてください。
これは製品版 VOICEVOX を起動している場合もあてはまります。

また、エンジン API の宛先エンドポイントを変更する場合は`VITE_DEFAULT_ENGINE_INFOS`内の`host`を変更してください。
エンジン API の宛先エンドポイントを変更する場合は`VITE_DEFAULT_ENGINE_INFOS`内の`host`を変更してください。

### Electron の実行

```bash
# 開発しやすい環境で実行
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"dependencies": {
"@gtm-support/vue-gtm": "1.2.3",
"@quasar/extras": "1.10.10",
"@sevenc-nanashi/utaformatix-ts": "npm:@jsr/sevenc-nanashi__utaformatix-ts@0.3.2",
"@sevenc-nanashi/utaformatix-ts": "npm:@jsr/sevenc-nanashi__utaformatix-ts@0.4.0",
"async-lock": "1.4.0",
"colorjs.io": "0.5.2",
"dayjs": "1.10.7",
Expand Down
10 changes: 8 additions & 2 deletions src/components/Dialog/DictionaryManageDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@
dense
round
icon="edit"
@click.stop="editWord"
@click.stop="
selectWord(key);
editWord();
"
>
<QTooltip :delay="500">編集</QTooltip>
</QBtn>
Expand All @@ -100,7 +103,10 @@
dense
round
icon="delete_outline"
@click.stop="deleteWord"
@click.stop="
selectWord(key);
deleteWord();
"
>
<QTooltip :delay="500">削除</QTooltip>
</QBtn>
Expand Down
5 changes: 4 additions & 1 deletion src/components/Sing/SideBar/TrackItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,16 @@ watchEffect(() => {
const updateTrackName = () => {
if (temporaryTrackName.value === track.value.name) return;
// 空のトラック名だと空欄のようになってしまうので許容しない
if (temporaryTrackName.value === "") {
temporaryTrackName.value = track.value.name;
return;
}
store.dispatch("COMMAND_SET_TRACK_NAME", {
trackId: props.trackId,
name: track.value.name,
name: temporaryTrackName.value,
});
};
Expand Down
1 change: 1 addition & 0 deletions src/components/Sing/SingEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ onetimeWatch(
await store.dispatch("SET_VOLUME", { volume: 0.6 });
await store.dispatch("SET_PLAYHEAD_POSITION", { position: 0 });
await store.dispatch("SYNC_TRACKS_AND_TRACK_CHANNEL_STRIPS");
isCompletedInitialStartup.value = true;
return "unwatch";
Expand Down
2 changes: 2 additions & 0 deletions src/store/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export const commandStore = createPartialStore<CommandStoreTypes>({
if (editor === "song") {
// TODO: 存在しないノートのみ選択解除、あるいはSELECTED_NOTE_IDS getterを作る
mutations.DESELECT_ALL_NOTES();
actions.SYNC_TRACKS_AND_TRACK_CHANNEL_STRIPS();
actions.RENDER();
}
},
Expand All @@ -129,6 +130,7 @@ export const commandStore = createPartialStore<CommandStoreTypes>({
if (editor === "song") {
// TODO: 存在しないノートのみ選択解除、あるいはSELECTED_NOTE_IDS getterを作る
mutations.DESELECT_ALL_NOTES();
actions.SYNC_TRACKS_AND_TRACK_CHANNEL_STRIPS();
actions.RENDER();
}
},
Expand Down
Loading

0 comments on commit e6854b4

Please sign in to comment.