Skip to content

Commit

Permalink
mainブランチのコミットを取り込み
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkfx committed Aug 2, 2024
2 parents 330ab5a + b159696 commit 1fb4b65
Show file tree
Hide file tree
Showing 79 changed files with 4,913 additions and 2,027 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ on:

env:
VOICEVOX_ENGINE_REPO_URL: "https://github.com/VOICEVOX/voicevox_engine"
VOICEVOX_ENGINE_VERSION: 0.20-preview.1
VOICEVOX_RESOURCE_VERSION: 0.19.1
VOICEVOX_ENGINE_VERSION: 0.20.0
VOICEVOX_RESOURCE_VERSION: 0.20.0
VOICEVOX_EDITOR_VERSION:
|- # releaseタグ名か、workflow_dispatchでのバージョン名か、999.999.999-developが入る
${{ github.event.release.tag_name || github.event.inputs.version || '999.999.999-develop' }}
Expand Down
77 changes: 75 additions & 2 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
"multistream": "4.1.0",
"pixi.js": "7.4.0",
"quasar": "2.11.6",
"radix-vue": "1.2.3",
"rfdc": "1.4.1",
"semver": "7.5.4",
"shlex": "2.1.2",
"systeminformation": "5.21.15",
Expand Down
17 changes: 14 additions & 3 deletions public/howtouse.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
その際は Finder で `Ctrl` キーを押しながら VOICEVOX アプリケーションアイコンをクリックし、ショートカットメニューから「開く」を選択してから、「開く」をクリックしてください。

もしくは、アップルメニューから「システム設定」を選択して「プライバシーとセキュリティ」 をクリックし、ページの下にあるセキュリティの「このまま開く」を選んでください。

<img src="res/macos-system-settings-security.png" style="max-height: 16rem" alt="Macのシステム設定の「プライバシーとセキュリティ」を開いた画面"/>

macOS Ventura 以前をお使いの場合は、アップルメニューから「システム環境設定」を選択して「セキュリティとプライバシー」 をクリックし、「一般」パネルで「このまま開く」選んでください。
Expand Down Expand Up @@ -216,7 +217,7 @@ GPU をお持ちの方は、音声の生成がずっと速い GPU モードを

## ショートカットキー

「設定」の「キー割り当て」で変更することができます
「設定」の「キー割り当て」でショートカットキーを表示・変更することができます
(Mac 版をご利用の場合は Ctrl を Command に、Alt を Option に読み替えてください。)

- 上下キー
Expand Down Expand Up @@ -251,6 +252,8 @@ GPU をお持ちの方は、音声の生成がずっと速い GPU モードを
- 全体のイントネーションをリセット
- `R`
- 選択中のイントネーションをリセット
- `Ctrl` + 数字
- 数字番目のキャラクターを選択

## ツールバーのカスタマイズ

Expand Down Expand Up @@ -329,14 +332,22 @@ VOICEVOX では、歌声合成機能がプロトタイプ版として提供さ

### ピッチ編集

「設定」→「オプション」→「実験的機能」から「ソング:ピッチ編集機能」をONにすることで、歌の音程を細かく制御することができます。
ツールバーからピッチ編集モードに切り替えることで、歌の音程を細かく制御することができます。

### インポート

様々な形式のプロジェクトファイルをインポートすることができます。

### マルチトラック

「設定」→「オプション」→「実験的機能」から「ソング:マルチトラック機能」をONにすることで、複数のトラックを編集・再生できるようになります。

### ソング機能のよくある質問

Q. 赤くなって声が再生されない
A. なにかしらのエラー状態を示しています。現在のバージョンでは、1つのノート(音符)につき日本語1文字分のみ入力できます。またノートが重なっていてもエラーとなります。

Q. 思った高さの音が出ない
Q. 思った高さの音が出ない
A. 音域がずれている可能性があります。「音域調整」で調整してみてください。

## オプション
Expand Down
2 changes: 1 addition & 1 deletion public/qAndA.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Windows/Mac/Linux 搭載の PC に対応しています。

※Windows:Windows 10・Windows 11
※Mac:macOS 12(Monterey)以降
※Linux:Ubuntu 20.04
※Linux:Ubuntu 20.04・Ubuntu 22.04

#### GPU 版

Expand Down
41 changes: 39 additions & 2 deletions public/updateInfos.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,46 @@
[
{
"version": "0.19.2",
"version": "0.20.0",
"descriptions": [
"キャラクター「後鬼」のスタイルを追加"
"起動を高速化",
"Apple Silicon macOSに対応",
"ヘルプダイアログのデザインを刷新",
"トーク:デフォルトプリセットが再登録できないバグの修正",
"トーク:全選択ショートカットキーを追加",
"トーク:キャラクター選択ショートカットキーを追加",
"ソング:歌声に呼吸音が被る問題を修正",
"ソング:様々な形式のプロジェクトファイルのインポートに対応",
"ソング:実験的機能としてマルチトラック機能を追加",
"ソング:ピッチ編集機能を通常機能に",
"開発環境の向上",
"バグ修正"
],
"contributors": [
"cm-ayf",
"Hiroshiba",
"honey32",
"jdkfx",
"madosuki",
"nix6839",
"nmori",
"RikitoNoto",
"romot-co",
"sabonerune",
"Segu-g",
"sevenc-nanashi",
"ShimagayaSatoka",
"sigprogramming",
"takusea",
"tarepan",
"tsym77yoshi",
"weweweok",
"White-Green",
"X-20A"
]
},
{
"version": "0.19.2",
"descriptions": ["キャラクター「後鬼」のスタイルを追加"],
"contributors": []
},
{
Expand Down
3 changes: 2 additions & 1 deletion src/backend/browser/fileImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { openDB } from "./browserConfig";
import { SandboxKey } from "@/type/preload";
import { failure, success } from "@/type/result";
import { createLogger } from "@/domain/frontend/log";
import { uuid4 } from "@/helpers/random";

const log = createLogger("fileImpl");

Expand Down Expand Up @@ -200,7 +201,7 @@ export const showOpenFilePickerImpl = async (options: {
});
const paths = [];
for (const handle of handles) {
const fakePath = `<browser-dummy-${crypto.randomUUID()}>-${handle.name}`;
const fakePath = `<browser-dummy-${uuid4()}>-${handle.name}`;
fileHandleMap.set(fakePath, handle);
paths.push(fakePath);
}
Expand Down
15 changes: 12 additions & 3 deletions src/backend/common/ConfigManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,12 @@ const migrations: [string, (store: Record<string, unknown>) => unknown][] = [
(config) => {
// ピッチ表示機能の設定をピッチ編集機能に引き継ぐ
const experimentalSetting =
config.experimentalSetting as ExperimentalSettingType & {
showPitchInSongEditor?: boolean; // FIXME: TypeScript 5.4.5ならこの型の結合は不要
};
config.experimentalSetting as ExperimentalSettingType;
if (
"showPitchInSongEditor" in experimentalSetting &&
typeof experimentalSetting.showPitchInSongEditor === "boolean"
) {
// @ts-expect-error 削除されたパラメータ。
experimentalSetting.enablePitchEditInSongEditor =
experimentalSetting.showPitchInSongEditor;
delete experimentalSetting.showPitchInSongEditor;
Expand Down Expand Up @@ -222,6 +221,16 @@ const migrations: [string, (store: Record<string, unknown>) => unknown][] = [
presets.keys = newPresetKeys;
})();

// ピッチ編集機能を実験的機能から通常機能に
const experimentalSetting =
config.experimentalSetting as ExperimentalSettingType;
if (
"enablePitchEditInSongEditor" in experimentalSetting &&
typeof experimentalSetting.enablePitchEditInSongEditor === "boolean"
) {
delete experimentalSetting.enablePitchEditInSongEditor;
}

return config;
},
],
Expand Down
93 changes: 93 additions & 0 deletions src/components/Base/BaseButton.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<template>
<button
class="button"
:class="variant ? variant : 'default'"
@click="(payload) => $emit('click', payload)"
>
<!-- 暫定でq-iconを使用 -->
<QIcon v-if="icon" :name="icon" size="sm" />
{{ label }}
</button>
</template>

<script setup lang="ts">
defineProps<{
label: string;
icon?: string;
variant?: "default" | "primary" | "danger";
}>();
defineEmits<{
(e: "click", payload: MouseEvent): void;
}>();
</script>

<style scoped lang="scss">
@use "@/styles/v2/variables" as vars;
@use "@/styles/v2/mixin" as mixin;
@use "@/styles/v2/colors" as colors;
.button {
display: flex;
justify-content: space-between;
align-items: center;
height: vars.$size-control;
border-radius: vars.$radius-1;
padding: 0 vars.$padding-2;
gap: vars.$gap-1;
border: 1px solid;
transition: background-color vars.$transition-duration;
cursor: pointer;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
&:active:not(:disabled) {
box-shadow: 0 0 0 transparent;
}
&:focus-visible {
@include mixin.on-focus;
}
}
.default {
color: colors.$display;
border-color: colors.$border;
background-color: colors.$control;
&:hover:not(:disabled) {
background-color: colors.$control-hovered;
}
&:active:not(:disabled) {
background-color: colors.$control-pressed;
}
}
.primary {
color: colors.$display-oncolor;
border-color: colors.$border;
background-color: colors.$primary;
&:hover:not(:disabled) {
background-color: colors.$primary-hovered;
}
&:active:not(:disabled) {
background-color: colors.$primary-pressed;
}
}
.danger {
color: colors.$display-warning;
border-color: colors.$display-warning;
background-color: colors.$warning;
&:hover:not(:disabled) {
background-color: colors.$warning-hovered;
}
&:active:not(:disabled) {
background-color: colors.$warning-pressed;
}
}
</style>
Loading

0 comments on commit 1fb4b65

Please sign in to comment.