-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
engine-infos alias poc #2254
base: main
Are you sure you want to change the base?
engine-infos alias poc #2254
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ちなみにenv全部まるまる移動することとかってできたりしますか・・・? |
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 |
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 |
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`に製品版をインストールしている場合は、下記のように書き換えて保存します。 | ||
|
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; |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. もし可能ならrootディレクトリに直接 |
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; |
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; |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あ、
.development
の方はcommitしないようにしてたりします! 🙇(個々の環境で変更するものをgit管理すると大変なので)