forked from VOICEVOX/voicevox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
111 additions
and
97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
VITE_APP_NAME=voicevox | ||
VITE_OFFICIAL_WEBSITE_URL=https://voicevox.hiroshiba.jp/ | ||
VITE_LATEST_UPDATE_INFOS_URL=https://raw.githubusercontent.com/VOICEVOX/voicevox_blog/master/src/data/updateInfos.json | ||
VITE_GTM_CONTAINER_ID=GTM-DUMMY |
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 |
---|---|---|
@@ -1,14 +1,4 @@ | ||
VITE_APP_NAME=voicevox | ||
VITE_DEFAULT_ENGINE_INFOS=`[ | ||
{ | ||
"uuid": "074fc39e-678b-4c13-8916-ffca8d505d1d", | ||
"name": "VOICEVOX Engine", | ||
"executionEnabled": true, | ||
"executionFilePath": "vv-engine/run.exe", | ||
"executionArgs": [], | ||
"host": "http://127.0.0.1:50021" | ||
} | ||
]` | ||
VITE_OFFICIAL_WEBSITE_URL=https://voicevox.hiroshiba.jp/ | ||
VITE_LATEST_UPDATE_INFOS_URL=https://raw.githubusercontent.com/VOICEVOX/voicevox_blog/master/src/data/updateInfos.json | ||
VITE_GTM_CONTAINER_ID=GTM-DUMMY |
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 |
---|---|---|
@@ -1,14 +1,4 @@ | ||
VITE_APP_NAME=voicevox | ||
VITE_DEFAULT_ENGINE_INFOS=`[ | ||
{ | ||
"uuid": "074fc39e-678b-4c13-8916-ffca8d505d1d", | ||
"name": "VOICEVOX Engine", | ||
"executionEnabled": true, | ||
"executionFilePath": "../voicevox_engine/run.exe", | ||
"executionArgs": [], | ||
"host": "http://127.0.0.1:50021" | ||
} | ||
]` | ||
VITE_OFFICIAL_WEBSITE_URL=https://voicevox.hiroshiba.jp/ | ||
VITE_LATEST_UPDATE_INFOS_URL=https://raw.githubusercontent.com/VOICEVOX/voicevox_blog/master/src/data/updateInfos.json | ||
VITE_GTM_CONTAINER_ID=GTM-DUMMY |
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 |
---|---|---|
|
@@ -125,21 +125,24 @@ git clone [email protected]:(個人のGitHubアカウント名)/voicevox.git | |
|
||
### 6. エンジンを指定する | ||
|
||
- `.env.production`というファイルがありますので、コピーして、名前を`.env`にします。 | ||
- ファイルをエディタでひらいて、`VITE_DEFAULT_ENGINE_INFOS`内の`executionFilePath`に手順1のフォルダ名をいれます。たとえば製品版をインストーラで導入し、インストール先を変更していない場合は、下記のように書き換えて保存します。 | ||
|
||
```ini | ||
VITE_APP_NAME=voicevox | ||
VITE_DEFAULT_ENGINE_INFOS=`[ | ||
{ | ||
"uuid": "074fc39e-678b-4c13-8916-ffca8d505d1d", | ||
"name": "VOICEVOX Engine", | ||
"executionEnabled": true, | ||
"executionFilePath": "C:/Users/(ユーザー名)/AppData/Local/Programs/VOICEVOX/vv-engine/run.exe", | ||
"executionArgs": [], | ||
"host": "http://127.0.0.1:50021" | ||
} | ||
]` | ||
- `engine-infos/production.ts`というファイルがありますので、コピーして、名前を`engine-infos/development.ts`にします。 | ||
- ファイルをエディタでひらいて、`executionFilePath`に手順1のフォルダ名をいれます。たとえば製品版をインストーラで導入し、インストール先を変更していない場合は、下記のように書き換えて保存します。 | ||
|
||
```ts | ||
import type { DefaultEngineInfos } from "./types"; | ||
|
||
export default [ | ||
{ | ||
uuid: "074fc39e-678b-4c13-8916-ffca8d505d1d", | ||
name: "VOICEVOX Engine", | ||
executionEnabled: true, | ||
executionFilePath: | ||
"/Applications/VOICEVOX.app/Contents/Resources/vv-engine/run", | ||
executionArgs: [], | ||
host: "http://127.0.0.1:50021", | ||
}, | ||
] satisfies DefaultEngineInfos; | ||
|
||
``` | ||
|
||
- あなたがVOICEVOX製品版のインストール先を変更している場合は個別で指定します。たとえば、`D:\VOICEVOX0.14.1`に製品版をインストールしている場合は、下記のように書き換えて保存します。 | ||
|
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,13 @@ | ||
import type { DefaultEngineInfos, EngineId } from "./types"; | ||
|
||
export default [ | ||
{ | ||
uuid: "074fc39e-678b-4c13-8916-ffca8d505d1d" as EngineId, | ||
name: "VOICEVOX Engine", | ||
executionEnabled: true, | ||
executionFilePath: | ||
"/Applications/VOICEVOX.app/Contents/Resources/vv-engine/run", | ||
executionArgs: [], | ||
host: "http://127.0.0.1:50021", | ||
}, | ||
] satisfies DefaultEngineInfos; |
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,12 @@ | ||
import type { DefaultEngineInfos, EngineId } from "./types"; | ||
|
||
export default [ | ||
{ | ||
uuid: "074fc39e-678b-4c13-8916-ffca8d505d1d" as EngineId, | ||
name: "VOICEVOX Engine", | ||
executionEnabled: true, | ||
executionFilePath: "vv-engine/run", | ||
executionArgs: [], | ||
host: "http://127.0.0.1:50021", | ||
}, | ||
] satisfies DefaultEngineInfos; |
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,12 @@ | ||
import type { DefaultEngineInfos, EngineId } from "./types"; | ||
|
||
export default [ | ||
{ | ||
uuid: "074fc39e-678b-4c13-8916-ffca8d505d1d" as EngineId, | ||
name: "VOICEVOX Engine", | ||
executionEnabled: true, | ||
executionFilePath: "../voicevox_engine/run.exe", | ||
executionArgs: [], | ||
host: "http://127.0.0.1:50021", | ||
}, | ||
] satisfies DefaultEngineInfos; |
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,18 @@ | ||
import { BRAND } from "zod"; | ||
|
||
export type EngineId = string & BRAND<"EngineId">; | ||
|
||
export interface DefaultEngineInfo { | ||
uuid: EngineId; | ||
name: string; | ||
path?: string; | ||
executionEnabled: boolean; | ||
executionFilePath: string; | ||
executionArgs: string[]; | ||
host: string; | ||
} | ||
|
||
export type DefaultEngineInfos = DefaultEngineInfo[]; | ||
|
||
declare const engineInfos: DefaultEngineInfos; | ||
export default engineInfos; |
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