Skip to content
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

npm run electron:serveでvoicevoxが動作しない #1368

Closed
1 of 3 tasks
weweweok opened this issue Jul 3, 2023 · 1 comment · Fixed by #1379
Closed
1 of 3 tasks

npm run electron:serveでvoicevoxが動作しない #1368

weweweok opened this issue Jul 3, 2023 · 1 comment · Fixed by #1379

Comments

@weweweok
Copy link
Contributor

weweweok commented Jul 3, 2023

不具合の内容

npm run electron:serve

でvoicevox ver.999.999.999が起動できません。

現象・ログ

image
image

再現手順

  • voicevoxリポジトリをfork -> clone
  • voicevoxディレクトリでnpm ci
  • touch .env
  • 同じディレクトリにて.env.productionの内容を.envにコピー
  • voicevoxをインストール(製品版よりインストーラでインストール)
  • .envのDEFAULT_ENGINE_INFOS.executionFilePathに~/.voicevox/VOICEVOX.AppImage --appimage-mount(このディレクトリにファイルがあることは確認済み)を追加
  • npm run electron:serve

期待動作

voicevoxを起動してissue#1355で書いたコードを実験できるようにしたい

VOICEVOXのバージョン

999.999.999

OSの種類/ディストリ/バージョン

  • Windows
  • macOS
  • Linux ( Ubuntu 22.04.2 LTS )

その他

reactのアプリにおけるnpm startでアプリが起動するような認識で期待してしまっている可能性もあるため認識が誤りであればご指摘ください。

製品版のアプリ自体は動きます。
image

@weweweok weweweok added the バグ label Jul 3, 2023
@weweweok weweweok changed the title npm run electron:serveで実行不可 npm run electron:serveでvoicevoxが動作しない Jul 3, 2023
@Hiroshiba
Copy link
Member

ちょうどこちらのエラーと同じ症状が出ていると思われます。

おそらくですが、こちらの箇所を

const stdout = execFileSync(exec.cmd, exec.args, {
shell: true,
}).toString();

//  const stdout = execFileSync(exec.cmd, exec.args, {
//    shell: true,
//  }).toString();
  const stdout = undefined; // FIXME: ワークアラウンド https://github.com/VOICEVOX/voicevox/issues/1360

などとすると一旦回避できると思います。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants