verbalcoding 0.2.7 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -27
- package/app-node/cli_install.test.mjs +32 -0
- package/app-node/install_config.mjs +10 -0
- package/docs/FRESH_INSTALL.md +8 -2
- package/docs/assets/figures/verbalcoding-flow.svg +45 -30
- package/docs/i18n/CONFIGURATION.es.md +138 -49
- package/docs/i18n/CONFIGURATION.fr.md +138 -49
- package/docs/i18n/CONFIGURATION.ja.md +137 -48
- package/docs/i18n/CONFIGURATION.ko.md +137 -48
- package/docs/i18n/CONFIGURATION.ru.md +138 -49
- package/docs/i18n/CONFIGURATION.zh.md +137 -48
- package/docs/i18n/FRESH_INSTALL.es.md +115 -32
- package/docs/i18n/FRESH_INSTALL.fr.md +115 -32
- package/docs/i18n/FRESH_INSTALL.ja.md +119 -36
- package/docs/i18n/FRESH_INSTALL.ko.md +120 -37
- package/docs/i18n/FRESH_INSTALL.ru.md +115 -32
- package/docs/i18n/FRESH_INSTALL.zh.md +119 -36
- package/docs/i18n/MULTI_INSTANCE.es.md +85 -26
- package/docs/i18n/MULTI_INSTANCE.fr.md +85 -26
- package/docs/i18n/MULTI_INSTANCE.ja.md +87 -29
- package/docs/i18n/MULTI_INSTANCE.ko.md +87 -29
- package/docs/i18n/MULTI_INSTANCE.ru.md +84 -26
- package/docs/i18n/MULTI_INSTANCE.zh.md +87 -29
- package/docs/i18n/README.es.md +109 -45
- package/docs/i18n/README.fr.md +109 -45
- package/docs/i18n/README.ja.md +109 -45
- package/docs/i18n/README.ko.md +108 -45
- package/docs/i18n/README.ru.md +109 -45
- package/docs/i18n/README.zh.md +108 -45
- package/docs/i18n/RELEASE.es.md +53 -37
- package/docs/i18n/RELEASE.fr.md +53 -37
- package/docs/i18n/RELEASE.ja.md +52 -36
- package/docs/i18n/RELEASE.ko.md +52 -36
- package/docs/i18n/RELEASE.ru.md +53 -37
- package/docs/i18n/RELEASE.zh.md +53 -37
- package/docs/i18n/USAGE.es.md +91 -64
- package/docs/i18n/USAGE.fr.md +91 -64
- package/docs/i18n/USAGE.ja.md +90 -63
- package/docs/i18n/USAGE.ko.md +90 -63
- package/docs/i18n/USAGE.ru.md +91 -64
- package/docs/i18n/USAGE.zh.md +90 -63
- package/package.json +1 -1
- package/scripts/bootstrap_prereqs.sh +15 -3
- package/scripts/cli.mjs +1 -1
- package/scripts/doctor.mjs +173 -8
- package/scripts/install.mjs +2 -0
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
# Installation propre
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Ce guide couvre une installation publique propre. Il évite les hypothèses propres à une machine locale et utilise l'installateur pour amorcer autant d'éléments que possible.
|
|
4
4
|
|
|
5
|
-
## 1.
|
|
5
|
+
## 1. Installer la CLI
|
|
6
|
+
|
|
7
|
+
Chemin npm recommandé :
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
10
|
npm install -g verbalcoding
|
|
9
|
-
vc setup --yes
|
|
10
11
|
```
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
Ou exécutez directement le paquet publié :
|
|
13
14
|
|
|
14
15
|
```bash
|
|
15
16
|
npx verbalcoding setup --yes
|
|
16
17
|
```
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
Si vous avez utilisé `npm install -g`, continuez avec :
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
vc setup --yes
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Chemin de clonage GitHub pour les contributeurs :
|
|
19
26
|
|
|
20
27
|
```bash
|
|
21
28
|
git clone https://github.com/ca1773130n/VerbalCoding.git
|
|
@@ -23,47 +30,105 @@ cd VerbalCoding
|
|
|
23
30
|
./scripts/install.sh --yes
|
|
24
31
|
```
|
|
25
32
|
|
|
26
|
-
## 2.
|
|
33
|
+
## 2. Amorcer les dépendances et lancer l'assistant de configuration
|
|
27
34
|
|
|
28
|
-
|
|
35
|
+
Pour une installation npm, n'exécutez pas `./scripts/install.sh` directement : il n'y a pas de checkout du dépôt dans votre répertoire courant. Utilisez plutôt l'enveloppe CLI empaquetée :
|
|
29
36
|
|
|
30
|
-
|
|
37
|
+
```bash
|
|
38
|
+
vc setup --yes
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
`vc setup` exécute le `scripts/install.sh` inclus dans le paquet npm installé. N'utilisez `./scripts/install.sh --yes` que lorsque vous êtes dans un clone GitHub :
|
|
31
42
|
|
|
32
43
|
```bash
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
44
|
+
./scripts/install.sh --yes
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Ce que cela fait :
|
|
48
|
+
|
|
49
|
+
- installe les dépendances npm quand `node_modules/` est absent,
|
|
50
|
+
- installe la commande shell courte `vc` avec `npm link`,
|
|
51
|
+
- installe `ffmpeg`, Node/npm et `whisper-cli` quand le gestionnaire de paquets de l'OS le permet,
|
|
52
|
+
- télécharge `models/ggml-small-q5_1.bin`,
|
|
53
|
+
- crée `.venv-tts` et installe `edge-tts` quand `edge-tts` n'est pas déjà dans `PATH`,
|
|
54
|
+
- lance l'assistant interactif `.env`.
|
|
55
|
+
|
|
56
|
+
Chemins d'amorçage système pris en charge :
|
|
57
|
+
|
|
58
|
+
| OS | Chemin pour les dépendances système |
|
|
59
|
+
|---|---|
|
|
60
|
+
| macOS | Homebrew : `brew install node ffmpeg whisper-cpp` selon les besoins |
|
|
61
|
+
| Debian/Ubuntu | `apt-get` pour Node/npm, ffmpeg, Python, outils de build ; fallback de build whisper.cpp local |
|
|
62
|
+
| Fedora/RHEL | `dnf` pour Node/npm, ffmpeg, Python, outils de build ; fallback de build whisper.cpp local |
|
|
63
|
+
| Arch | `pacman` pour Node/npm, ffmpeg, Python, outils de build ; fallback de build whisper.cpp local |
|
|
64
|
+
|
|
65
|
+
Variantes utiles de l'installateur :
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
vc setup --yes --no-wizard # dépendances/amorcage seulement depuis l'installation npm
|
|
69
|
+
./scripts/install.sh --yes --no-wizard # dépendances/amorcage seulement depuis un clone
|
|
70
|
+
./scripts/install.sh --skip-system # ne pas installer de paquets OS
|
|
71
|
+
./scripts/install.sh --skip-model # ne pas télécharger le modèle STT par défaut
|
|
72
|
+
./scripts/install.sh --skip-edge-tts # ne pas créer .venv-tts
|
|
38
73
|
VERBALCODING_SKIP_CLI_LINK=1 ./scripts/install.sh --yes
|
|
39
74
|
```
|
|
40
75
|
|
|
41
|
-
|
|
76
|
+
Si votre OS n'est pas pris en charge, installez manuellement ces éléments avant de relancer :
|
|
77
|
+
|
|
78
|
+
- Node.js 20+ et npm
|
|
79
|
+
- ffmpeg
|
|
80
|
+
- Python 3 avec venv/pip
|
|
81
|
+
- `whisper-cli` de whisper.cpp
|
|
82
|
+
- un backend d'agent CLI authentifié, Hermes Agent par défaut
|
|
42
83
|
|
|
43
|
-
## 3.
|
|
84
|
+
## 3. Configuration de l'application Discord
|
|
44
85
|
|
|
45
|
-
|
|
86
|
+
Lisez d'abord les guides amont de configuration d'un bot Discord si c'est votre premier bot :
|
|
46
87
|
|
|
47
|
-
- Hermes Agent
|
|
48
|
-
-
|
|
49
|
-
-
|
|
88
|
+
- Guide de messagerie Discord de Hermes Agent : <https://hermes-agent.nousresearch.com/docs/user-guide/messaging/discord>
|
|
89
|
+
- Vue d'ensemble officielle des bots Discord : <https://docs.discord.com/developers/bots/overview>
|
|
90
|
+
- Guide officiel de démarrage Discord : <https://docs.discord.com/developers/quick-start/getting-started>
|
|
50
91
|
|
|
51
|
-
|
|
92
|
+
Ces pages montrent comment créer une application Discord, ajouter un utilisateur bot, activer les intents privilégiés et l'inviter sur un serveur. VerbalCoding utilise la même configuration de bot Discord, puis ajoute par-dessus la réception vocale, le STT, l'exécution d'agent CLI et la lecture TTS.
|
|
93
|
+
|
|
94
|
+
1. Créez une application Discord et un bot dans le portail développeur Discord.
|
|
95
|
+
2. Activez l'intent privilégié Message Content.
|
|
96
|
+
3. Copiez le jeton du bot dans l'invite de l'installateur ou dans `.env` en tant que `DISCORD_BOT_TOKEN`.
|
|
97
|
+
4. Générez une URL d'invitation :
|
|
52
98
|
|
|
53
99
|
```bash
|
|
54
100
|
vc bot invite <discord-client-id>
|
|
101
|
+
# or pin it to one server:
|
|
55
102
|
vc bot invite <discord-client-id> --guild <guild-id>
|
|
56
103
|
```
|
|
57
104
|
|
|
58
|
-
|
|
105
|
+
L'invitation inclut les scopes bot et commandes slash ainsi que les permissions texte/voix utilisées par VerbalCoding.
|
|
106
|
+
|
|
107
|
+
## 4. Vérifier
|
|
59
108
|
|
|
60
109
|
```bash
|
|
61
110
|
vc doctor
|
|
62
111
|
```
|
|
63
112
|
|
|
64
|
-
`vc doctor`
|
|
113
|
+
`vc doctor` est expurgé : il signale les jetons/commandes/modèles manquants sans imprimer de valeurs secrètes. Quand des prérequis locaux réparables manquent (`ffmpeg`, `whisper-cli`, le modèle par défaut ou l'assistant Edge TTS), il relance d'abord automatiquement le bootstrap empaqueté. Corrigez les éléments `✗` restants, puis relancez-le.
|
|
114
|
+
|
|
115
|
+
Un succès attendu ressemble à :
|
|
116
|
+
|
|
117
|
+
```text
|
|
118
|
+
✓ Node.js
|
|
119
|
+
✓ npm
|
|
120
|
+
✓ ffmpeg
|
|
121
|
+
✓ whisper-cli
|
|
122
|
+
✓ whisper.cpp model
|
|
123
|
+
✓ Discord bot token configured — [REDACTED]
|
|
124
|
+
✓ edge-tts
|
|
125
|
+
✓ hermes CLI
|
|
126
|
+
Doctor passed. Run vc start to start VerbalCoding.
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Si l'installateur a créé un assistant Edge TTS local, `.env` doit contenir un chemin `EDGE_TTS_COMMAND` pointant vers `.venv-tts/bin/edge-tts`.
|
|
65
130
|
|
|
66
|
-
## 5.
|
|
131
|
+
## 5. Lancer le bot par défaut unique
|
|
67
132
|
|
|
68
133
|
```bash
|
|
69
134
|
vc start
|
|
@@ -71,14 +136,14 @@ vc start
|
|
|
71
136
|
./run.sh
|
|
72
137
|
```
|
|
73
138
|
|
|
74
|
-
|
|
139
|
+
Les journaux d'un démarrage réussi incluent :
|
|
75
140
|
|
|
76
141
|
```text
|
|
77
142
|
Logged in as <bot-name>
|
|
78
143
|
Listening in voice channel <server> / <channel>
|
|
79
144
|
```
|
|
80
145
|
|
|
81
|
-
|
|
146
|
+
Dans Discord :
|
|
82
147
|
|
|
83
148
|
```text
|
|
84
149
|
!ping
|
|
@@ -87,11 +152,11 @@ In Discord:
|
|
|
87
152
|
!verbose on
|
|
88
153
|
```
|
|
89
154
|
|
|
90
|
-
|
|
155
|
+
Parlez ensuite dans le salon vocal configuré. Vous devriez voir le texte STT, le texte de progression quand le mode détaillé est activé, une réponse texte finale et entendre la lecture TTS.
|
|
91
156
|
|
|
92
|
-
## 6.
|
|
157
|
+
## 6. Configuration un projet par salon
|
|
93
158
|
|
|
94
|
-
|
|
159
|
+
Pour un bot permanent par salon vocal de projet, créez une application Discord par projet, puis :
|
|
95
160
|
|
|
96
161
|
```bash
|
|
97
162
|
vc instance setup my-project
|
|
@@ -100,9 +165,11 @@ vc instance start my-project
|
|
|
100
165
|
vc instance status my-project
|
|
101
166
|
```
|
|
102
167
|
|
|
103
|
-
|
|
168
|
+
Chaque instance écrit un fichier ignoré `instances/<name>.env` avec son propre jeton, salon vocal, cible de transcription, chemin de journal, fichier de session Hermes et profil Hermes facultatif.
|
|
169
|
+
|
|
170
|
+
## 7. Configuration OpenVoice facultative
|
|
104
171
|
|
|
105
|
-
|
|
172
|
+
Le clonage vocal OpenVoice est facultatif. Gardez `TTS_BACKEND=edge` pour une nouvelle installation publique. Pour activer OpenVoice plus tard :
|
|
106
173
|
|
|
107
174
|
```bash
|
|
108
175
|
./scripts/setup_openvoice.sh
|
|
@@ -112,13 +179,29 @@ Keep `TTS_BACKEND=edge` for a fresh install. To enable OpenVoice later:
|
|
|
112
179
|
python3 integrations/openvoice/synth.py --openvoice-dir vendor/OpenVoice --ref-audio voice-samples/user-reference.wav --text '안녕하세요. 버벌코딩 목소리 복제 테스트입니다.' --output /tmp/verbalcoding-openvoice-smoke.wav
|
|
113
180
|
```
|
|
114
181
|
|
|
115
|
-
|
|
182
|
+
Définissez ensuite `TTS_BACKEND=openvoice`, exécutez `vc doctor` et testez `!voice-test <text>` dans Discord.
|
|
183
|
+
|
|
184
|
+
## 8. Smoke test de clone propre pour les mainteneurs
|
|
116
185
|
|
|
117
|
-
|
|
186
|
+
Smoke test rapide sur l'hôte uniquement :
|
|
118
187
|
|
|
119
188
|
```bash
|
|
189
|
+
TMPDIR=$(mktemp -d)
|
|
190
|
+
git clone https://github.com/ca1773130n/VerbalCoding.git "$TMPDIR/VerbalCoding"
|
|
191
|
+
cd "$TMPDIR/VerbalCoding"
|
|
120
192
|
./scripts/install.sh --yes --no-wizard
|
|
121
193
|
npm pack --dry-run
|
|
194
|
+
cp .env.example .env
|
|
195
|
+
chmod 600 .env
|
|
122
196
|
vc doctor || true
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
L'échec attendu à ce stade est l'absence de secrets locaux ou d'authentification de la CLI d'agent, et non une fuite de jetons ou des scripts d'installation manquants.
|
|
200
|
+
|
|
201
|
+
Smoke test d'installation propre Ubuntu basé sur Docker :
|
|
202
|
+
|
|
203
|
+
```bash
|
|
123
204
|
./scripts/docker_ubuntu_smoke.sh
|
|
124
205
|
```
|
|
206
|
+
|
|
207
|
+
Cela lance `ubuntu:24.04`, copie l'arborescence suivie du dépôt dans un conteneur propre, exécute `./scripts/install.sh --yes --no-wizard`, écrit un `.env` de smoke test sans secret, vérifie `vc`, lance les tests Node et vérifie `vc doctor`. Il ne se connecte pas à la voix Discord ; utilisez une vraie VM Ubuntu ou WSL2 après cela si vous avez besoin d'un test de bout en bout dans un salon vocal.
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
# 新規インストール
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
このガイドは、クリーンな公開インストール向けです。ローカル環境だけに依存する前提を避け、インストーラーで可能な限りブートストラップします。
|
|
4
4
|
|
|
5
|
-
## 1.
|
|
5
|
+
## 1. CLI をインストールする
|
|
6
|
+
|
|
7
|
+
推奨 npm 手順:
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
10
|
npm install -g verbalcoding
|
|
9
|
-
vc setup --yes
|
|
10
11
|
```
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
または公開パッケージを直接実行します:
|
|
13
14
|
|
|
14
15
|
```bash
|
|
15
16
|
npx verbalcoding setup --yes
|
|
16
17
|
```
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
`npm install -g` を使った場合は、続けて次を実行します:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
vc setup --yes
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
コントリビューター向けの GitHub クローン手順:
|
|
19
26
|
|
|
20
27
|
```bash
|
|
21
28
|
git clone https://github.com/ca1773130n/VerbalCoding.git
|
|
@@ -23,62 +30,120 @@ cd VerbalCoding
|
|
|
23
30
|
./scripts/install.sh --yes
|
|
24
31
|
```
|
|
25
32
|
|
|
26
|
-
## 2.
|
|
33
|
+
## 2. 依存関係をブートストラップし、セットアップウィザードを実行する
|
|
27
34
|
|
|
28
|
-
|
|
35
|
+
npm インストールでは、現在のディレクトリにリポジトリのチェックアウトがないため、`./scripts/install.sh` を直接実行しないでください。代わりにパッケージ済み CLI ラッパーを使います:
|
|
29
36
|
|
|
30
|
-
|
|
37
|
+
```bash
|
|
38
|
+
vc setup --yes
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
`vc setup` は、インストール済み npm パッケージ内の `scripts/install.sh` を実行します。`./scripts/install.sh --yes` は GitHub クローン内にいる場合だけ使ってください:
|
|
31
42
|
|
|
32
43
|
```bash
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
44
|
+
./scripts/install.sh --yes
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
実行される内容:
|
|
48
|
+
|
|
49
|
+
- `node_modules/` がない場合に npm 依存関係をインストールします。
|
|
50
|
+
- `npm link` で短い `vc` シェルコマンドをインストールします。
|
|
51
|
+
- OS パッケージマネージャーが対応している場合、`ffmpeg`、Node/npm、`whisper-cli` をインストールします。
|
|
52
|
+
- `models/ggml-small-q5_1.bin` をダウンロードします。
|
|
53
|
+
- `edge-tts` がまだ `PATH` にない場合、`.venv-tts` を作成して `edge-tts` をインストールします。
|
|
54
|
+
- 対話式 `.env` ウィザードを実行します。
|
|
55
|
+
|
|
56
|
+
対応するシステムブートストラップ手順:
|
|
57
|
+
|
|
58
|
+
| OS | システム依存関係の導入方法 |
|
|
59
|
+
|---|---|
|
|
60
|
+
| macOS | Homebrew: 必要に応じて `brew install node ffmpeg whisper-cpp` |
|
|
61
|
+
| Debian/Ubuntu | Node/npm、ffmpeg、Python、ビルドツールは `apt-get`。ローカル whisper.cpp ビルドにフォールバック |
|
|
62
|
+
| Fedora/RHEL | Node/npm、ffmpeg、Python、ビルドツールは `dnf`。ローカル whisper.cpp ビルドにフォールバック |
|
|
63
|
+
| Arch | Node/npm、ffmpeg、Python、ビルドツールは `pacman`。ローカル whisper.cpp ビルドにフォールバック |
|
|
64
|
+
|
|
65
|
+
便利なインストーラーのバリエーション:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
vc setup --yes --no-wizard # npm インストールから依存関係/ブートストラップのみ
|
|
69
|
+
./scripts/install.sh --yes --no-wizard # クローンから依存関係/ブートストラップのみ
|
|
70
|
+
./scripts/install.sh --skip-system # OS パッケージをインストールしない
|
|
71
|
+
./scripts/install.sh --skip-model # デフォルト STT モデルをダウンロードしない
|
|
72
|
+
./scripts/install.sh --skip-edge-tts # .venv-tts を作成しない
|
|
38
73
|
VERBALCODING_SKIP_CLI_LINK=1 ./scripts/install.sh --yes
|
|
39
74
|
```
|
|
40
75
|
|
|
41
|
-
|
|
76
|
+
OS が未対応の場合は、再実行する前に次を手動でインストールしてください:
|
|
77
|
+
|
|
78
|
+
- Node.js 20+ と npm
|
|
79
|
+
- ffmpeg
|
|
80
|
+
- venv/pip 付き Python 3
|
|
81
|
+
- whisper.cpp の `whisper-cli`
|
|
82
|
+
- 認証済み CLI エージェントバックエンドを少なくとも 1 つ(デフォルトは Hermes Agent)
|
|
42
83
|
|
|
43
|
-
## 3. Discord
|
|
84
|
+
## 3. Discord アプリケーションをセットアップする
|
|
44
85
|
|
|
45
|
-
|
|
86
|
+
初めてボットを作る場合は、まず上流の Discord ボットセットアップガイドを読んでください:
|
|
46
87
|
|
|
47
|
-
- Hermes Agent Discord
|
|
48
|
-
- Discord
|
|
49
|
-
- Discord
|
|
88
|
+
- Hermes Agent の Discord メッセージングガイド: <https://hermes-agent.nousresearch.com/docs/user-guide/messaging/discord>
|
|
89
|
+
- Discord 公式ボット概要: <https://docs.discord.com/developers/bots/overview>
|
|
90
|
+
- Discord 公式はじめにガイド: <https://docs.discord.com/developers/quick-start/getting-started>
|
|
50
91
|
|
|
51
|
-
|
|
92
|
+
これらのページでは、Discord アプリケーションの作成、ボットユーザーの追加、特権インテントの有効化、サーバーへの招待方法を説明しています。VerbalCoding は同じ Discord ボット設定を使い、その上に音声受信、STT、CLI エージェント実行、TTS 再生を追加します。
|
|
93
|
+
|
|
94
|
+
1. Discord Developer Portal で Discord アプリケーションとボットを作成します。
|
|
95
|
+
2. Message Content 特権インテントを有効にします。
|
|
96
|
+
3. ボットトークンをインストーラーのプロンプト、または `.env` の `DISCORD_BOT_TOKEN` にコピーします。
|
|
97
|
+
4. 招待 URL を生成します:
|
|
52
98
|
|
|
53
99
|
```bash
|
|
54
100
|
vc bot invite <discord-client-id>
|
|
101
|
+
# または 1 つのサーバーに固定します:
|
|
55
102
|
vc bot invite <discord-client-id> --guild <guild-id>
|
|
56
103
|
```
|
|
57
104
|
|
|
58
|
-
|
|
105
|
+
この招待には、VerbalCoding が使うボットおよびスラッシュコマンドのスコープと、テキスト/音声権限が含まれます。
|
|
106
|
+
|
|
107
|
+
## 4. 検証する
|
|
59
108
|
|
|
60
109
|
```bash
|
|
61
110
|
vc doctor
|
|
62
111
|
```
|
|
63
112
|
|
|
64
|
-
`vc doctor`
|
|
113
|
+
`vc doctor` は秘密情報を伏せます。トークン/コマンド/モデルの欠落を、秘密値を出力せずに報告します。修復可能なローカル前提条件(`ffmpeg`、`whisper-cli`、デフォルトモデル、Edge TTS ヘルパー)が欠けている場合は、まずパッケージ済みブートストラップを自動的に再実行します。残った `✗` 項目を修正してから再実行してください。
|
|
114
|
+
|
|
115
|
+
期待される成功例:
|
|
116
|
+
|
|
117
|
+
```text
|
|
118
|
+
✓ Node.js
|
|
119
|
+
✓ npm
|
|
120
|
+
✓ ffmpeg
|
|
121
|
+
✓ whisper-cli
|
|
122
|
+
✓ whisper.cpp model
|
|
123
|
+
✓ Discord bot token configured — [REDACTED]
|
|
124
|
+
✓ edge-tts
|
|
125
|
+
✓ hermes CLI
|
|
126
|
+
Doctor passed. Run vc start to start VerbalCoding.
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
インストーラーがローカル Edge TTS ヘルパーを作成した場合、`.env` には `.venv-tts/bin/edge-tts` を指す `EDGE_TTS_COMMAND` パスが含まれているはずです。
|
|
65
130
|
|
|
66
|
-
## 5.
|
|
131
|
+
## 5. 単一のデフォルトボットを実行する
|
|
67
132
|
|
|
68
133
|
```bash
|
|
69
134
|
vc start
|
|
70
|
-
#
|
|
135
|
+
# または GitHub クローンから:
|
|
71
136
|
./run.sh
|
|
72
137
|
```
|
|
73
138
|
|
|
74
|
-
|
|
139
|
+
起動に成功すると、ログには次のような行が含まれます:
|
|
75
140
|
|
|
76
141
|
```text
|
|
77
142
|
Logged in as <bot-name>
|
|
78
143
|
Listening in voice channel <server> / <channel>
|
|
79
144
|
```
|
|
80
145
|
|
|
81
|
-
|
|
146
|
+
Discord 内:
|
|
82
147
|
|
|
83
148
|
```text
|
|
84
149
|
!ping
|
|
@@ -87,11 +152,11 @@ In Discord:
|
|
|
87
152
|
!verbose on
|
|
88
153
|
```
|
|
89
154
|
|
|
90
|
-
|
|
155
|
+
その後、設定済みの音声チャンネルで話してください。STT テキスト、詳細モードがオンの場合の進捗テキスト、最終テキスト回答が表示され、TTS 再生が聞こえるはずです。
|
|
91
156
|
|
|
92
|
-
## 6.
|
|
157
|
+
## 6. プロジェクトごとのルーム設定
|
|
93
158
|
|
|
94
|
-
|
|
159
|
+
プロジェクト音声ルームごとに 1 つの永続ボットを使うには、プロジェクトごとに Discord アプリケーションを 1 つ作成してから、次を実行します:
|
|
95
160
|
|
|
96
161
|
```bash
|
|
97
162
|
vc instance setup my-project
|
|
@@ -100,25 +165,43 @@ vc instance start my-project
|
|
|
100
165
|
vc instance status my-project
|
|
101
166
|
```
|
|
102
167
|
|
|
103
|
-
|
|
168
|
+
各インスタンスは、独自のトークン、音声チャンネル、文字起こし先、ログパス、Hermes セッションファイル、任意の Hermes プロファイルを含む、git で無視される `instances/<name>.env` を書き込みます。
|
|
169
|
+
|
|
170
|
+
## 7. 任意の OpenVoice セットアップ
|
|
104
171
|
|
|
105
|
-
|
|
172
|
+
OpenVoice の音声クローンは任意です。新規の公開インストールでは `TTS_BACKEND=edge` のままにしてください。後で OpenVoice を有効にするには:
|
|
106
173
|
|
|
107
174
|
```bash
|
|
108
175
|
./scripts/setup_openvoice.sh
|
|
109
|
-
#
|
|
110
|
-
#
|
|
111
|
-
#
|
|
176
|
+
# OpenVoice V2 checkpoints を vendor/OpenVoice/checkpoints_v2/ にダウンロードします
|
|
177
|
+
# 許可済みのローカルサンプルを voice-samples/user-reference.wav に追加するか、
|
|
178
|
+
# ボットを実行して「목소리 샘플 녹음 시작해」と言い、その後 10〜30 秒話します。
|
|
112
179
|
python3 integrations/openvoice/synth.py --openvoice-dir vendor/OpenVoice --ref-audio voice-samples/user-reference.wav --text '안녕하세요. 버벌코딩 목소리 복제 테스트입니다.' --output /tmp/verbalcoding-openvoice-smoke.wav
|
|
113
180
|
```
|
|
114
181
|
|
|
115
|
-
|
|
182
|
+
次に `TTS_BACKEND=openvoice` を設定し、`vc doctor` を実行して、Discord で `!voice-test <text>` をテストします。
|
|
183
|
+
|
|
184
|
+
## 8. メンテナー向けクリーンクローンのスモークテスト
|
|
116
185
|
|
|
117
|
-
|
|
186
|
+
ホストのみでの高速スモークテスト:
|
|
118
187
|
|
|
119
188
|
```bash
|
|
189
|
+
TMPDIR=$(mktemp -d)
|
|
190
|
+
git clone https://github.com/ca1773130n/VerbalCoding.git "$TMPDIR/VerbalCoding"
|
|
191
|
+
cd "$TMPDIR/VerbalCoding"
|
|
120
192
|
./scripts/install.sh --yes --no-wizard
|
|
121
193
|
npm pack --dry-run
|
|
194
|
+
cp .env.example .env
|
|
195
|
+
chmod 600 .env
|
|
122
196
|
vc doctor || true
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
この時点で期待される失敗は、ローカル秘密情報の欠落またはエージェント CLI が未認証であることです。トークン漏えいやインストールスクリプトの欠落ではありません。
|
|
200
|
+
|
|
201
|
+
Docker ベースの Ubuntu クリーンインストールスモークテスト:
|
|
202
|
+
|
|
203
|
+
```bash
|
|
123
204
|
./scripts/docker_ubuntu_smoke.sh
|
|
124
205
|
```
|
|
206
|
+
|
|
207
|
+
これは `ubuntu:24.04` を実行し、追跡対象のリポジトリツリーをクリーンなコンテナへコピーし、`./scripts/install.sh --yes --no-wizard` を実行し、秘密情報を含まないスモーク用 `.env` を書き、`vc` を確認し、Node テストを実行して、`vc doctor` を検証します。Discord 音声には接続しません。エンドツーエンドの音声チャンネルテストが必要な場合は、この後で実際の Ubuntu VM または WSL2 を使ってください。
|