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

voicevox_engine:nvidia-ubuntu20.04-0.14.5で動作しない #66

Open
Hericken opened this issue Jun 22, 2023 · 1 comment
Open

voicevox_engine:nvidia-ubuntu20.04-0.14.5で動作しない #66

Hericken opened this issue Jun 22, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Hericken
Copy link
Contributor

発生した問題

voicevox/voicevox_engine:nvidia-ubuntu20.04-0.14.5で /voice コマンドを実行するとInternal errorを返す.
image

server log (ZUNDACORD_LOG_LEVEL=debug)

[10:22:09.532] ERROR (32990): unhandled error
    module: 
    guild: 
    guildId: 
    user: 
    userId: 
    commandName: "voice"
    err: {
      "type": "ExpectedConstraintError",
      "message": "Invalid number value",
      "stack":
          Error: Invalid number value
              at Object.run (/workspaces/zundacord/node_modules/@sapphire/shapeshift/dist/index.js:768:72)
              at /workspaces/zundacord/node_modules/@sapphire/shapeshift/dist/index.js:207:66
              at Array.reduce (<anonymous>)
              at NumberValidator.parse (/workspaces/zundacord/node_modules/@sapphire/shapeshift/dist/index.js:207:29)
              at SelectMenuBuilder.addOptions (/workspaces/zundacord/node_modules/@discordjs/builders/dist/index.js:934:28)
              at SelectMenuBuilder.addOptions (/workspaces/zundacord/node_modules/discord.js/src/structures/StringSelectMenuBuilder.js:49:18)
              at Zundacord.<anonymous> (/workspaces/zundacord/lib/zundacord/app.js:533:18)
              at Generator.next (<anonymous>)
              at fulfilled (/workspaces/zundacord/lib/zundacord/app.js:5:58)
              at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      "constraint": "s.number.lessThanOrEqual",
      "given": 26,
      "expected": "expected <= 25"

対策

voicevox_engineのバージョンを nvidia-ubuntu20.04-latest から nvidia-ubuntu20.04-0.14.4に落とせば /voice コマンドが正しく動作する.
docker-compose.gpu.yml

version: '3.9'

services:
  voicevox:
    image: voicevox/voicevox_engine:nvidia-ubuntu20.04-0.14.4
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              capabilities: [gpu]
@Hericken Hericken added the bug Something isn't working label Jun 22, 2023
@sarisia
Copy link
Member

sarisia commented Jun 22, 2023

voicevox の対応スピーカー数が26以上になったので Discord のドロップダウンリストの上限数25を超えてエラーになってる. ページング対応が必要.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants