genshin-persona 4.7.0 → 4.9.0
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 +15 -16
- package/hooks/hooks.json +1 -9
- package/mod/VerbDescriptionMap.ts +1 -3
- package/package.json +3 -6
- package/scripts/voice.ts +5 -36
- package/src/localizations/chineseSimplified.ts +0 -10
- package/src/localizations/chineseTraditional.ts +0 -10
- package/src/localizations/english.ts +1 -12
- package/src/localizations/french.ts +0 -12
- package/src/localizations/german.ts +0 -12
- package/src/localizations/indonesian.ts +0 -11
- package/src/localizations/italian.ts +0 -12
- package/src/localizations/japanese.ts +0 -11
- package/src/localizations/korean.ts +0 -10
- package/src/localizations/portuguese.ts +0 -12
- package/src/localizations/russian.ts +0 -11
- package/src/localizations/spanish.ts +0 -12
- package/src/localizations/thai.ts +0 -10
- package/src/localizations/turkish.ts +0 -12
- package/src/localizations/vietnamese.ts +0 -11
- package/src/models/AudioPlayer.ts +2 -6
- package/src/models/GenshinVerb.ts +0 -1
- package/src/models/LocalizationStrings.ts +0 -10
- package/src/services/cli/commands/genshinCommand.ts +0 -2
- package/src/services/constants.ts +1 -32
- package/.mcp.json +0 -1
- package/scripts/channel.mjs +0 -1
- package/scripts/channel.ts +0 -112
- package/scripts/react.mjs +0 -1
- package/scripts/react.ts +0 -34
- package/src/models/ViewerCaption.ts +0 -7
- package/src/models/ViewerConfiguration.ts +0 -9
- package/src/models/ViewerEvent.ts +0 -4
- package/src/models/ViewerLink.ts +0 -11
- package/src/models/ViewerMessage.ts +0 -12
- package/src/models/ViewerMoment.ts +0 -7
- package/src/models/ViewerSoundForm.ts +0 -10
- package/src/services/checkIsChannelRequestAllowed.ts +0 -17
- package/src/services/checkIsModelId.ts +0 -2
- package/src/services/checkIsViewerAddress.ts +0 -5
- package/src/services/checkIsViewerMoment.ts +0 -9
- package/src/services/cli/commands/viewerCommand.ts +0 -75
- package/src/services/connectViewer.ts +0 -152
- package/src/services/createChannelPage.ts +0 -58
- package/src/services/createReadingPlayer.ts +0 -35
- package/src/services/createViewerOpener.ts +0 -39
- package/src/services/createViewerPlayer.ts +0 -80
- package/src/services/getViewerFrameColor.ts +0 -8
- package/src/services/getViewerReaction.ts +0 -16
- package/src/services/readChannelLine.ts +0 -19
- package/src/services/readMotions.ts +0 -16
- package/src/services/readViewerConfiguration.ts +0 -26
- package/src/services/setViewer.ts +0 -32
- package/src/services/writeViewerConfiguration.ts +0 -8
package/README.md
CHANGED
|
@@ -68,22 +68,21 @@ node "<plugin root>/scripts/genshin.mjs" <verb> [argument]
|
|
|
68
68
|
|
|
69
69
|
A `<name>` is a character's name. It is matched as a whole, ignoring case. It can be in English or as the interface language spells it. A `[language]` is a language that the `language` verb lists. A verb given a name that no character has, or an argument outside its set, prints the reason and exits 1.
|
|
70
70
|
|
|
71
|
-
| Verb | Argument | What it does
|
|
72
|
-
| :--------- | :----------------------- |
|
|
73
|
-
| `language` | `[language]` | Sets the interface language, which is the language of every word the plugin writes. It also sets the reply language. With no argument, reports what is set and lists the languages on offer.
|
|
74
|
-
| `mute` | — | Stops the spoken lines of replies from being read aloud. The pick and the card are not changed.
|
|
75
|
-
| `pin` | `<name>` | Fixes one character for every session until unpinned. For this session, it applies from that reply on.
|
|
76
|
-
| `reply` | `[language]` | Sets the language that replies are written in, on its own. With no argument, reports what is set, and whether it was set or cascaded from the interface language.
|
|
77
|
-
| `roster` | — | Lists every playable character, one line each: name, title, element, region, birthday and the patch that introduced them.
|
|
78
|
-
| `status` | — | Reports every setting, and where each value came from. Changes nothing.
|
|
79
|
-
| `teardown` | — | Removes what `voice` installed: the runtime, the weights, the cached clips
|
|
80
|
-
| `today` | — | Prints the card of this session's character. From a shell, it prints the card of the pinned character. Without a pin, it prints the card of a fresh pick.
|
|
81
|
-
| `unmute` | — | Lets the spoken lines of replies be read aloud again.
|
|
82
|
-
| `unpin` | — | Removes the pin. The pick decides again from the next session. For this session, it decides from that reply on.
|
|
83
|
-
| `use` | `<name>` | Speaks as one character for this session only, from that reply on. Other sessions and the next start do not change.
|
|
84
|
-
| `
|
|
85
|
-
| `
|
|
86
|
-
| `volume` | `<0–100>` | Sets how loud replies are spoken, as a whole number, from the next reply on. `0` is silence, and the engine is not woken for it. |
|
|
71
|
+
| Verb | Argument | What it does |
|
|
72
|
+
| :--------- | :----------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
73
|
+
| `language` | `[language]` | Sets the interface language, which is the language of every word the plugin writes. It also sets the reply language. With no argument, reports what is set and lists the languages on offer. |
|
|
74
|
+
| `mute` | — | Stops the spoken lines of replies from being read aloud. The pick and the card are not changed. |
|
|
75
|
+
| `pin` | `<name>` | Fixes one character for every session until unpinned. For this session, it applies from that reply on. |
|
|
76
|
+
| `reply` | `[language]` | Sets the language that replies are written in, on its own. With no argument, reports what is set, and whether it was set or cascaded from the interface language. |
|
|
77
|
+
| `roster` | — | Lists every playable character, one line each: name, title, element, region, birthday and the patch that introduced them. |
|
|
78
|
+
| `status` | — | Reports every setting, and where each value came from. Changes nothing. |
|
|
79
|
+
| `teardown` | — | Removes what `voice` installed: the runtime, the weights, the cached clips and the dub. The picks, the pin and the languages stay. `voice` brings spoken lines back. |
|
|
80
|
+
| `today` | — | Prints the card of this session's character. From a shell, it prints the card of the pinned character. Without a pin, it prints the card of a fresh pick. |
|
|
81
|
+
| `unmute` | — | Lets the spoken lines of replies be read aloud again. |
|
|
82
|
+
| `unpin` | — | Removes the pin. The pick decides again from the next session. For this session, it decides from that reply on. |
|
|
83
|
+
| `use` | `<name>` | Speaks as one character for this session only, from that reply on. Other sessions and the next start do not change. |
|
|
84
|
+
| `voice` | `[en \| ja \| ko \| zh]` | Sets up spoken lines in that dub. On the first run, it installs the engine's runtime and weights. It ends by speaking one sentence. With no dub, reports what is set up. |
|
|
85
|
+
| `volume` | `<0–100>` | Sets how loud replies are spoken, as a whole number, from the next reply on. `0` is silence, and the engine is not woken for it. |
|
|
87
86
|
|
|
88
87
|
Four more verbs are the authoring queues of one more skill, `genshin-author`. They are script-only, and they are on no menu:
|
|
89
88
|
|
package/hooks/hooks.json
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"hooks": {
|
|
3
|
-
"
|
|
4
|
-
{ "hooks": [{ "type": "command", "command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/react.mjs\" attention" }] }
|
|
5
|
-
],
|
|
6
|
-
"SessionStart": [
|
|
7
|
-
{ "hooks": [{ "type": "command", "command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/pick.mjs\"" }] }
|
|
8
|
-
],
|
|
9
|
-
"Stop": [
|
|
10
|
-
{ "hooks": [{ "type": "command", "command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/react.mjs\" turnEnd" }] }
|
|
11
|
-
]
|
|
3
|
+
"SessionStart": [{ "hooks": [{ "type": "command", "command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/pick.mjs\"" }] }]
|
|
12
4
|
},
|
|
13
5
|
"modules": ["../mod/register.ts"]
|
|
14
6
|
}
|
|
@@ -11,13 +11,11 @@ export const VerbDescriptionMap: Partial<Record<GenshinVerb, string>> = {
|
|
|
11
11
|
[GenshinVerb.Roster]: "Every playable character, one line each.",
|
|
12
12
|
[GenshinVerb.Status]: "Reports every setting the plugin holds and where each came from. Changes nothing.",
|
|
13
13
|
[GenshinVerb.Teardown]:
|
|
14
|
-
"Removes the voice's runtime, weights, references and dub
|
|
14
|
+
"Removes the voice's runtime, weights, references and dub; the picks, the pin and the languages stay.",
|
|
15
15
|
[GenshinVerb.Today]: "The card of this session's character.",
|
|
16
16
|
[GenshinVerb.Unmute]: "Lets replies' spoken lines be read aloud again.",
|
|
17
17
|
[GenshinVerb.Unpin]: "Removes the pin; the pick decides again, for this session from this reply on.",
|
|
18
18
|
[GenshinVerb.Use]: "Speaks as one character for this session alone, from this reply on.",
|
|
19
|
-
[GenshinVerb.Viewer]:
|
|
20
|
-
"Shows replies' spoken lines on a Live2DViewerEX model and maps its motions to the terminal's moments; given nothing, reports the viewer on file.",
|
|
21
19
|
[GenshinVerb.Voice]:
|
|
22
20
|
"Sets up spoken replies in the character's own cloned voice, or switches the dub (en, ja, ko or zh); given nothing, reports what is installed.",
|
|
23
21
|
[GenshinVerb.Volume]: "Sets how loud replies are spoken, as a whole number from 0 to 100.",
|
package/package.json
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "genshin-persona",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.9.0",
|
|
4
4
|
"description": "A Claude Code plugin that speaks as the Genshin Impact character whose birthday is nearest: an answer opens with one spoken line in the character's voice and the rest is plain, a joke or a hello is spoken whole, and every line is read aloud in the character's own cloned voice as the reply is written.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
|
7
7
|
"claude-code-plugin",
|
|
8
|
-
"genshin",
|
|
9
8
|
"genshin-impact",
|
|
10
9
|
"output-style",
|
|
11
10
|
"persona",
|
|
12
11
|
"text-to-speech",
|
|
13
12
|
"voice-cloning"
|
|
14
13
|
],
|
|
15
|
-
"homepage": "https://github.com/Esposter/Esposter/
|
|
14
|
+
"homepage": "https://github.com/Esposter/Esposter/blob/main/packages/genshin-persona#readme",
|
|
16
15
|
"bugs": {
|
|
17
16
|
"url": "https://github.com/Esposter/Esposter/issues"
|
|
18
17
|
},
|
|
@@ -24,7 +23,6 @@
|
|
|
24
23
|
},
|
|
25
24
|
"files": [
|
|
26
25
|
".claude-plugin",
|
|
27
|
-
".mcp.json",
|
|
28
26
|
"hooks",
|
|
29
27
|
"output-styles",
|
|
30
28
|
"runtime",
|
|
@@ -53,7 +51,6 @@
|
|
|
53
51
|
"typecheck": "tsrs --fast"
|
|
54
52
|
},
|
|
55
53
|
"dependencies": {
|
|
56
|
-
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
57
54
|
"@typesafe-ai/sdk": "^0.7.0",
|
|
58
55
|
"@wasm-audio-decoders/ogg-vorbis": "^0.1.20",
|
|
59
56
|
"citty": "^0.2.2",
|
|
@@ -62,5 +59,5 @@
|
|
|
62
59
|
"engines": {
|
|
63
60
|
"node": ">=26.13.0"
|
|
64
61
|
},
|
|
65
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "f9f824b8587c86a263eff0a809562ed7633d91a7"
|
|
66
63
|
}
|
package/scripts/voice.ts
CHANGED
|
@@ -2,53 +2,36 @@ import type { AudioPlayer } from "#src/models/AudioPlayer";
|
|
|
2
2
|
import type { PcmClip } from "#src/models/PcmClip";
|
|
3
3
|
import type { SpeakerTensors } from "#src/models/SpeakerTensors";
|
|
4
4
|
import type { SpeechRequest } from "#src/models/SpeechRequest";
|
|
5
|
-
import type { ViewerCaption } from "#src/models/ViewerCaption";
|
|
6
5
|
|
|
7
6
|
import { VoiceRequestType } from "#src/models/VoiceRequestType";
|
|
8
7
|
import { VoiceStatus } from "#src/models/VoiceStatus";
|
|
9
|
-
import { connectViewer } from "#src/services/connectViewer";
|
|
10
8
|
import {
|
|
11
9
|
MAX_VOLUME,
|
|
12
10
|
MESSAGE_DISPLAY_HOOK_TIMEOUT_MS,
|
|
13
11
|
MODELS_DIRECTORY,
|
|
14
12
|
RUNTIME_MANIFEST_PATH,
|
|
15
|
-
VIEWER_SOUND_FORM,
|
|
16
13
|
VOICE_IDLE_TIMEOUT_MS,
|
|
17
14
|
VOICE_STATUS_SEPARATOR,
|
|
18
15
|
} from "#src/services/constants";
|
|
19
16
|
import { createAudioPlayer } from "#src/services/createAudioPlayer";
|
|
20
17
|
import { createClipDecoder } from "#src/services/createClipDecoder";
|
|
21
|
-
import { createReadingPlayer } from "#src/services/createReadingPlayer";
|
|
22
18
|
import { createReplyQueue } from "#src/services/createReplyQueue";
|
|
23
19
|
import { createSpokenLineReader } from "#src/services/createSpokenLineReader";
|
|
24
|
-
import { createViewerOpener } from "#src/services/createViewerOpener";
|
|
25
|
-
import { createViewerPlayer } from "#src/services/createViewerPlayer";
|
|
26
20
|
import { createVoiceSynthesizer } from "#src/services/createVoiceSynthesizer";
|
|
27
|
-
import { getViewerFrameColor } from "#src/services/getViewerFrameColor";
|
|
28
21
|
import { getWavBytes } from "#src/services/getWavBytes";
|
|
29
22
|
import { listenVoiceSocket } from "#src/services/listenVoiceSocket";
|
|
30
23
|
import { parseVoiceRequest } from "#src/services/parseVoiceRequest";
|
|
31
24
|
import { readReferenceClip } from "#src/services/readReferenceClip";
|
|
32
|
-
import { readViewerConfiguration } from "#src/services/readViewerConfiguration";
|
|
33
25
|
import { readVoiceDevice } from "#src/services/readVoiceDevice";
|
|
34
26
|
import { readVoiceRuntime } from "#src/services/readVoiceRuntime";
|
|
35
27
|
import { writeVoiceDevice } from "#src/services/writeVoiceDevice";
|
|
36
28
|
import { writeVoiceLog } from "#src/services/writeVoiceLog";
|
|
37
29
|
import { createServer } from "node:net";
|
|
38
30
|
|
|
39
|
-
// The viewer a reading is shown on, when a `viewer` address is on file: connected at a reading's start and held until
|
|
40
|
-
// The synthesizer exits, since a tap on the model plays the last line again over the same connection
|
|
41
|
-
const viewerOpener = createViewerOpener({
|
|
42
|
-
connect: connectViewer,
|
|
43
|
-
createPlayer: createViewerPlayer,
|
|
44
|
-
readConfiguration: readViewerConfiguration,
|
|
45
|
-
});
|
|
46
31
|
// The address is bound before the engine loads, so a second hook finds it taken rather than loading a second engine;
|
|
47
|
-
// Every failure is logged, since the hooks stay silent on its behalf
|
|
48
|
-
// Does not outlive the process
|
|
32
|
+
// Every failure is logged, since the hooks stay silent on its behalf
|
|
49
33
|
const exit = (message: string) => {
|
|
50
34
|
writeVoiceLog(message);
|
|
51
|
-
viewerOpener.dispose();
|
|
52
35
|
process.exit(1);
|
|
53
36
|
};
|
|
54
37
|
process.on("uncaughtException", (error) => {
|
|
@@ -63,7 +46,6 @@ if (!(await listenVoiceSocket(server))) process.exit(0);
|
|
|
63
46
|
// Nothing between the bind and the connection handler below yields to the event loop: a hook connecting in such a gap
|
|
64
47
|
// Is accepted by nobody and waits for an answer that never comes, so every load is started here and awaited later
|
|
65
48
|
const idleTimer = setTimeout(() => {
|
|
66
|
-
viewerOpener.dispose();
|
|
67
49
|
process.exit(0);
|
|
68
50
|
}, VOICE_IDLE_TIMEOUT_MS);
|
|
69
51
|
const runtime = readVoiceRuntime(RUNTIME_MANIFEST_PATH);
|
|
@@ -111,16 +93,9 @@ const speak = async (
|
|
|
111
93
|
}
|
|
112
94
|
|
|
113
95
|
const gain = request.volume / MAX_VOLUME;
|
|
114
|
-
const
|
|
115
|
-
// The caption is the line and the clip's own length, which is what a viewer shows and paces the next clip by
|
|
116
|
-
const play = async ({ play: playAudio }: AudioPlayer, clip: PcmClip, line: string) => {
|
|
96
|
+
const play = async ({ play: playAudio }: AudioPlayer, clip: PcmClip) => {
|
|
117
97
|
const audio = getWavBytes({ ...clip, samples: clip.samples.map((sample) => sample * gain) });
|
|
118
|
-
const
|
|
119
|
-
color,
|
|
120
|
-
durationMs: Math.round((clip.samples.length / clip.sampleRate) * 1000),
|
|
121
|
-
text: line,
|
|
122
|
-
};
|
|
123
|
-
const playerFailure = await playAudio(audio, caption);
|
|
98
|
+
const playerFailure = await playAudio(audio);
|
|
124
99
|
if (playerFailure) writeVoiceLog(`the player did not play: ${playerFailure}`);
|
|
125
100
|
};
|
|
126
101
|
let playback: Promise<void> = Promise.resolve();
|
|
@@ -145,7 +120,7 @@ const speak = async (
|
|
|
145
120
|
await playback;
|
|
146
121
|
if (checkIsSuperseded()) return VoiceStatus.Superseded;
|
|
147
122
|
|
|
148
|
-
playback = play(player, clip
|
|
123
|
+
playback = play(player, clip);
|
|
149
124
|
}
|
|
150
125
|
|
|
151
126
|
await playback;
|
|
@@ -156,13 +131,8 @@ const speak = async (
|
|
|
156
131
|
const queue = createReplyQueue(async (request: SpeechRequest, checkIsSuperseded: () => boolean) => {
|
|
157
132
|
const lines = readSpokenLines(request);
|
|
158
133
|
const isSpoken = request.type === VoiceRequestType.Speak && lines.length > 0;
|
|
159
|
-
|
|
160
|
-
const viewer = isSpoken ? await viewerOpener.open() : undefined;
|
|
161
|
-
let player: AudioPlayer | undefined;
|
|
162
|
-
if (isSpoken)
|
|
163
|
-
player = viewer ? createReadingPlayer(viewer, createAudioPlayer, VIEWER_SOUND_FORM) : createAudioPlayer();
|
|
134
|
+
const player = isSpoken ? createAudioPlayer() : undefined;
|
|
164
135
|
const [outcome] = await Promise.allSettled([speak(request, lines, player, checkIsSuperseded)]);
|
|
165
|
-
if (outcome?.status === "fulfilled" && outcome.value === VoiceStatus.Superseded) player?.stop?.();
|
|
166
136
|
await player?.close();
|
|
167
137
|
if (outcome?.status === "fulfilled") return outcome.value;
|
|
168
138
|
|
|
@@ -176,7 +146,6 @@ const handleLine = (line: string): Promise<VoiceStatus> => {
|
|
|
176
146
|
idleTimer.refresh();
|
|
177
147
|
if (request.type === VoiceRequestType.Stop) {
|
|
178
148
|
setImmediate(() => {
|
|
179
|
-
viewerOpener.dispose();
|
|
180
149
|
process.exit(0);
|
|
181
150
|
});
|
|
182
151
|
return Promise.resolve(VoiceStatus.Ok);
|
|
@@ -195,16 +195,6 @@ const chineseSimplified: Localization = {
|
|
|
195
195
|
upcomingBirthdays: (list) => `本周生日:${list}。`,
|
|
196
196
|
usage: (verbs) => `用法:genshin.mjs <${verbs}> [名字]`,
|
|
197
197
|
usingInSession: "从这条回复起,仅在本会话中以该角色的身份说话。",
|
|
198
|
-
viewerAddressInvalid: (address) => `${address} 不是 WebSocket 地址,例如 ws://127.0.0.1:10086。`,
|
|
199
|
-
viewerModelInvalid: "模型必须是从 0 起的整数。",
|
|
200
|
-
viewerMomentInvalid: (moments) => `时刻必须是 ${moments} 之一。`,
|
|
201
|
-
viewerMotionCleared: (moment) => `${moment} 不再在观看器上播放动作。`,
|
|
202
|
-
viewerMotionSet: (moment, motion) => `${moment} 在观看器上播放 ${motion}。`,
|
|
203
|
-
viewerNone: "未设置观看器;回复由默认播放器朗读。",
|
|
204
|
-
viewerNotAnswering: (address) => `${address} 上没有观看器应答;未作任何设置。`,
|
|
205
|
-
viewerProof: "观看器已设置,从下一个会话起,回复的台词会显示在模型上。",
|
|
206
|
-
viewerSet: (address) => `${address} 上的观看器将显示回复的台词;模型上已出现一个气泡以作证明。`,
|
|
207
|
-
viewerStatus: (address, modelId) => `观看器位于 ${address},模型 ${modelId}。`,
|
|
208
198
|
voiceLanguageAvailable: (dub) => `存在${dub}配音;用 voice 命令安装即可听到用它朗读的回复。`,
|
|
209
199
|
voiceLanguageMustBeOneOf: (dubs) => `配音必须是以下之一:${dubs}。`,
|
|
210
200
|
voiceLanguageUnavailable: "这种语言没有配音,因此回复仍以已设置的声音朗读。",
|
|
@@ -195,16 +195,6 @@ const chineseTraditional: Localization = {
|
|
|
195
195
|
upcomingBirthdays: (list) => `本週生日:${list}。`,
|
|
196
196
|
usage: (verbs) => `用法:genshin.mjs <${verbs}> [名字]`,
|
|
197
197
|
usingInSession: "從這則回覆起,僅在本工作階段中以該角色的身分說話。",
|
|
198
|
-
viewerAddressInvalid: (address) => `${address} 不是 WebSocket 位址,例如 ws://127.0.0.1:10086。`,
|
|
199
|
-
viewerModelInvalid: "模型必須是從 0 起的整數。",
|
|
200
|
-
viewerMomentInvalid: (moments) => `時刻必須是 ${moments} 之一。`,
|
|
201
|
-
viewerMotionCleared: (moment) => `${moment} 不再在檢視器上播放動作。`,
|
|
202
|
-
viewerMotionSet: (moment, motion) => `${moment} 在檢視器上播放 ${motion}。`,
|
|
203
|
-
viewerNone: "未設定檢視器;回覆由預設播放器朗讀。",
|
|
204
|
-
viewerNotAnswering: (address) => `${address} 上沒有檢視器回應;未作任何設定。`,
|
|
205
|
-
viewerProof: "檢視器已設定,從下一個工作階段起,回覆的台詞會顯示在模型上。",
|
|
206
|
-
viewerSet: (address) => `${address} 上的檢視器會顯示回覆的台詞;模型上已出現一個氣泡以作證明。`,
|
|
207
|
-
viewerStatus: (address, modelId) => `檢視器位於 ${address},模型 ${modelId}。`,
|
|
208
198
|
voiceLanguageAvailable: (dub) => `存在${dub}配音;用 voice 指令安裝即可聽到以它朗讀的回覆。`,
|
|
209
199
|
voiceLanguageMustBeOneOf: (dubs) => `配音必須是以下之一:${dubs}。`,
|
|
210
200
|
voiceLanguageUnavailable: "這種語言沒有配音,因此回覆仍以已設定的聲音朗讀。",
|
|
@@ -56,22 +56,11 @@ const english: ResolvedLocalization = {
|
|
|
56
56
|
`Replies ${isMuted ? "muted" : `unmuted at volume ${volume}`}.`,
|
|
57
57
|
].join("\n"),
|
|
58
58
|
teardownDone:
|
|
59
|
-
"The voice's runtime, weights, references and dub
|
|
59
|
+
"The voice's runtime, weights, references and dub are removed; the pick records, the pin and the languages stay.",
|
|
60
60
|
unmuted: "Spoken replies unmuted.",
|
|
61
61
|
upcomingBirthdays: (list) => `Birthdays this week: ${list}.`,
|
|
62
62
|
usage: (verbs) => `Usage: genshin.mjs <${verbs}> [name]`,
|
|
63
63
|
usingInSession: "Speaking as this character from this reply, in this session alone.",
|
|
64
|
-
viewerAddressInvalid: (address) => `${address} is not a WebSocket address, such as ws://127.0.0.1:10086.`,
|
|
65
|
-
viewerModelInvalid: "The model must be a whole number from 0.",
|
|
66
|
-
viewerMomentInvalid: (moments) => `The moment must be one of ${moments}.`,
|
|
67
|
-
viewerMotionCleared: (moment) => `${moment} plays no motion on the viewer.`,
|
|
68
|
-
viewerMotionSet: (moment, motion) => `${moment} plays ${motion} on the viewer.`,
|
|
69
|
-
viewerNone: "No viewer is set; replies are read aloud on the stock player.",
|
|
70
|
-
viewerNotAnswering: (address) => `No viewer answered at ${address}; nothing was set.`,
|
|
71
|
-
viewerProof: "The viewer is set up, and a reply's spoken lines are shown on the model from the next session on.",
|
|
72
|
-
viewerSet: (address) =>
|
|
73
|
-
`The viewer at ${address} shows replies' spoken lines; a bubble has appeared on the model to prove it.`,
|
|
74
|
-
viewerStatus: (address, modelId) => `Viewer at ${address}, model ${modelId}.`,
|
|
75
64
|
voiceLanguageAvailable: (dub) => `A ${dub} dub exists; install it with the voice verb to hear replies read in it.`,
|
|
76
65
|
voiceLanguageMustBeOneOf: (dubs) => `The dub must be one of ${dubs}.`,
|
|
77
66
|
voiceLanguageUnavailable:
|
|
@@ -511,18 +511,6 @@ const french: Localization = {
|
|
|
511
511
|
upcomingBirthdays: (list) => `Anniversaires de la semaine : ${list}.`,
|
|
512
512
|
usage: (verbs) => `Utilisation : genshin.mjs <${verbs}> [nom]`,
|
|
513
513
|
usingInSession: "Parle en tant que ce personnage dès cette réponse, dans cette session seulement.",
|
|
514
|
-
viewerAddressInvalid: (address) => `${address} n'est pas une adresse WebSocket, comme ws://127.0.0.1:10086.`,
|
|
515
|
-
viewerModelInvalid: "Le modèle doit être un nombre entier à partir de 0.",
|
|
516
|
-
viewerMomentInvalid: (moments) => `Le moment doit être l'un de : ${moments}.`,
|
|
517
|
-
viewerMotionCleared: (moment) => `${moment} ne joue plus aucune animation sur le visualiseur.`,
|
|
518
|
-
viewerMotionSet: (moment, motion) => `${moment} joue ${motion} sur le visualiseur.`,
|
|
519
|
-
viewerNone: "Aucun visualiseur n'est défini ; les réponses sont lues par le lecteur par défaut.",
|
|
520
|
-
viewerNotAnswering: (address) => `Aucun visualiseur n'a répondu à ${address} ; rien n'a été défini.`,
|
|
521
|
-
viewerProof:
|
|
522
|
-
"Le visualiseur est prêt ; les répliques parlées d'une réponse s'affichent sur le modèle dès la prochaine session.",
|
|
523
|
-
viewerSet: (address) =>
|
|
524
|
-
`Le visualiseur à ${address} affiche les répliques parlées ; une bulle est apparue sur le modèle pour le prouver.`,
|
|
525
|
-
viewerStatus: (address, modelId) => `Visualiseur à ${address}, modèle ${modelId}.`,
|
|
526
514
|
voiceLanguageAvailable: (dub) =>
|
|
527
515
|
`Un doublage ${dub} existe ; installe-le avec la commande voice pour entendre les réponses lues dans cette langue.`,
|
|
528
516
|
voiceLanguageMustBeOneOf: (dubs) => `Le doublage doit être l'un de : ${dubs}.`,
|
|
@@ -509,18 +509,6 @@ const german: Localization = {
|
|
|
509
509
|
upcomingBirthdays: (list) => `Geburtstage diese Woche: ${list}.`,
|
|
510
510
|
usage: (verbs) => `Verwendung: genshin.mjs <${verbs}> [Name]`,
|
|
511
511
|
usingInSession: "Spricht ab dieser Antwort als dieser Charakter, nur in dieser Sitzung.",
|
|
512
|
-
viewerAddressInvalid: (address) => `${address} ist keine WebSocket-Adresse, etwa ws://127.0.0.1:10086.`,
|
|
513
|
-
viewerModelInvalid: "Das Modell muss eine ganze Zahl ab 0 sein.",
|
|
514
|
-
viewerMomentInvalid: (moments) => `Der Moment muss einer von ${moments} sein.`,
|
|
515
|
-
viewerMotionCleared: (moment) => `${moment} spielt auf dem Viewer keine Bewegung mehr.`,
|
|
516
|
-
viewerMotionSet: (moment, motion) => `${moment} spielt ${motion} auf dem Viewer.`,
|
|
517
|
-
viewerNone: "Kein Viewer eingerichtet; Antworten werden über den Standardplayer vorgelesen.",
|
|
518
|
-
viewerNotAnswering: (address) => `Unter ${address} hat kein Viewer geantwortet; nichts wurde eingerichtet.`,
|
|
519
|
-
viewerProof:
|
|
520
|
-
"Der Viewer ist eingerichtet; ab der nächsten Sitzung werden die gesprochenen Zeilen einer Antwort am Modell angezeigt.",
|
|
521
|
-
viewerSet: (address) =>
|
|
522
|
-
`Der Viewer unter ${address} zeigt die gesprochenen Zeilen der Antworten; zum Nachweis ist eine Sprechblase am Modell erschienen.`,
|
|
523
|
-
viewerStatus: (address, modelId) => `Viewer unter ${address}, Modell ${modelId}.`,
|
|
524
512
|
voiceLanguageAvailable: (dub) =>
|
|
525
513
|
`Eine ${dub}-Synchronisation gibt es; installiere sie mit dem voice-Befehl, um Antworten darin zu hören.`,
|
|
526
514
|
voiceLanguageMustBeOneOf: (dubs) => `Die Synchronisation muss eine von diesen sein: ${dubs}.`,
|
|
@@ -514,17 +514,6 @@ const indonesian: Localization = {
|
|
|
514
514
|
upcomingBirthdays: (list) => `Ulang tahun minggu ini: ${list}.`,
|
|
515
515
|
usage: (verbs) => `Penggunaan: genshin.mjs <${verbs}> [nama]`,
|
|
516
516
|
usingInSession: "Berbicara sebagai karakter ini mulai balasan ini, hanya di sesi ini.",
|
|
517
|
-
viewerAddressInvalid: (address) => `${address} bukan alamat WebSocket, misalnya ws://127.0.0.1:10086.`,
|
|
518
|
-
viewerModelInvalid: "Model harus berupa bilangan bulat mulai dari 0.",
|
|
519
|
-
viewerMomentInvalid: (moments) => `Momen harus salah satu dari ${moments}.`,
|
|
520
|
-
viewerMotionCleared: (moment) => `${moment} tidak lagi memutar gerakan di viewer.`,
|
|
521
|
-
viewerMotionSet: (moment, motion) => `${moment} memutar ${motion} di viewer.`,
|
|
522
|
-
viewerNone: "Belum ada viewer yang diatur; balasan dibacakan lewat pemutar bawaan.",
|
|
523
|
-
viewerNotAnswering: (address) => `Tidak ada viewer yang menjawab di ${address}; tidak ada yang diatur.`,
|
|
524
|
-
viewerProof: "Viewer sudah diatur, dan baris ucapan balasan ditampilkan di model mulai sesi berikutnya.",
|
|
525
|
-
viewerSet: (address) =>
|
|
526
|
-
`Viewer di ${address} menampilkan baris ucapan balasan; gelembung telah muncul di model sebagai bukti.`,
|
|
527
|
-
viewerStatus: (address, modelId) => `Viewer di ${address}, model ${modelId}.`,
|
|
528
517
|
voiceLanguageAvailable: (dub) =>
|
|
529
518
|
`Dub ${dub} tersedia; pasang lewat perintah voice untuk mendengar balasan dibacakan dengannya.`,
|
|
530
519
|
voiceLanguageMustBeOneOf: (dubs) => `Dub harus salah satu dari: ${dubs}.`,
|
|
@@ -546,18 +546,6 @@ const italian: Localization = {
|
|
|
546
546
|
upcomingBirthdays: (list) => `Compleanni di questa settimana: ${list}.`,
|
|
547
547
|
usage: (verbs) => `Uso: genshin.mjs <${verbs}> [nome]`,
|
|
548
548
|
usingInSession: "Parla come questo personaggio da questa risposta, solo in questa sessione.",
|
|
549
|
-
viewerAddressInvalid: (address) => `${address} non è un indirizzo WebSocket, ad esempio ws://127.0.0.1:10086.`,
|
|
550
|
-
viewerModelInvalid: "Il modello deve essere un numero intero a partire da 0.",
|
|
551
|
-
viewerMomentInvalid: (moments) => `Il momento deve essere uno tra ${moments}.`,
|
|
552
|
-
viewerMotionCleared: (moment) => `${moment} non riproduce più un movimento sul visualizzatore.`,
|
|
553
|
-
viewerMotionSet: (moment, motion) => `${moment} riproduce ${motion} sul visualizzatore.`,
|
|
554
|
-
viewerNone: "Nessun visualizzatore impostato; le risposte sono lette dal lettore predefinito.",
|
|
555
|
-
viewerNotAnswering: (address) => `Nessun visualizzatore ha risposto a ${address}; non è stato impostato nulla.`,
|
|
556
|
-
viewerProof:
|
|
557
|
-
"Il visualizzatore è pronto; le battute parlate di una risposta compaiono sul modello dalla prossima sessione.",
|
|
558
|
-
viewerSet: (address) =>
|
|
559
|
-
`Il visualizzatore a ${address} mostra le battute parlate delle risposte; sul modello è comparso un fumetto a prova.`,
|
|
560
|
-
viewerStatus: (address, modelId) => `Visualizzatore a ${address}, modello ${modelId}.`,
|
|
561
549
|
voiceLanguageAvailable: (dub) =>
|
|
562
550
|
`Esiste un doppiaggio ${dub}; installalo con il comando voice per sentire le risposte lette con esso.`,
|
|
563
551
|
voiceLanguageMustBeOneOf: (dubs) => `Il doppiaggio deve essere uno tra: ${dubs}.`,
|
|
@@ -335,17 +335,6 @@ const japanese: Localization = {
|
|
|
335
335
|
upcomingBirthdays: (list) => `今週の誕生日:${list}。`,
|
|
336
336
|
usage: (verbs) => `使い方:genshin.mjs <${verbs}> [名前]`,
|
|
337
337
|
usingInSession: "このセッションに限り、この返信からこのキャラクターとして話します。",
|
|
338
|
-
viewerAddressInvalid: (address) => `${address} は WebSocket のアドレスではありません(例: ws://127.0.0.1:10086)。`,
|
|
339
|
-
viewerModelInvalid: "モデルは 0 以上の整数である必要があります。",
|
|
340
|
-
viewerMomentInvalid: (moments) => `タイミングは ${moments} のいずれかである必要があります。`,
|
|
341
|
-
viewerMotionCleared: (moment) => `${moment} ではビューアーでモーションを再生しません。`,
|
|
342
|
-
viewerMotionSet: (moment, motion) => `${moment} でビューアーが ${motion} を再生します。`,
|
|
343
|
-
viewerNone: "ビューアーは設定されていません。返信は標準のプレーヤーで読み上げられます。",
|
|
344
|
-
viewerNotAnswering: (address) => `${address} でビューアーが応答しませんでした。何も設定されていません。`,
|
|
345
|
-
viewerProof: "ビューアーの設定が完了しました。次のセッションから、返信のセリフがモデルに表示されます。",
|
|
346
|
-
viewerSet: (address) =>
|
|
347
|
-
`${address} のビューアーで返信のセリフを表示します。確認のため、モデルに吹き出しが表示されました。`,
|
|
348
|
-
viewerStatus: (address, modelId) => `ビューアー: ${address}、モデル ${modelId}。`,
|
|
349
338
|
voiceLanguageAvailable: (dub) =>
|
|
350
339
|
`この言語の吹き替え(${dub})があります。voiceコマンドで導入すると返信がその声で読み上げられます。`,
|
|
351
340
|
voiceLanguageMustBeOneOf: (dubs) => `吹き替えは次のいずれかを指定してください:${dubs}。`,
|
|
@@ -342,16 +342,6 @@ const korean: Localization = {
|
|
|
342
342
|
upcomingBirthdays: (list) => `이번 주 생일: ${list}.`,
|
|
343
343
|
usage: (verbs) => `사용법: genshin.mjs <${verbs}> [이름]`,
|
|
344
344
|
usingInSession: "이 응답부터 이 세션에서만 이 캐릭터로 말합니다.",
|
|
345
|
-
viewerAddressInvalid: (address) => `${address}은(는) WebSocket 주소가 아닙니다. 예: ws://127.0.0.1:10086`,
|
|
346
|
-
viewerModelInvalid: "모델은 0 이상의 정수여야 합니다.",
|
|
347
|
-
viewerMomentInvalid: (moments) => `시점은 ${moments} 중 하나여야 합니다.`,
|
|
348
|
-
viewerMotionCleared: (moment) => `${moment}에는 뷰어에서 모션을 재생하지 않습니다.`,
|
|
349
|
-
viewerMotionSet: (moment, motion) => `${moment}에 뷰어에서 ${motion} 모션을 재생합니다.`,
|
|
350
|
-
viewerNone: "설정된 뷰어가 없습니다. 답변은 기본 플레이어로 읽힙니다.",
|
|
351
|
-
viewerNotAnswering: (address) => `${address}에서 응답한 뷰어가 없어 아무것도 설정하지 않았습니다.`,
|
|
352
|
-
viewerProof: "뷰어가 설정되었습니다. 다음 세션부터 답변의 대사가 모델에 표시됩니다.",
|
|
353
|
-
viewerSet: (address) => `${address}의 뷰어에 답변 대사가 표시됩니다. 확인용 말풍선이 모델에 나타났습니다.`,
|
|
354
|
-
viewerStatus: (address, modelId) => `뷰어 ${address}, 모델 ${modelId}.`,
|
|
355
345
|
voiceLanguageAvailable: (dub) =>
|
|
356
346
|
`${dub} 더빙이 있습니다. voice 명령으로 설치하면 응답을 그 목소리로 들을 수 있습니다.`,
|
|
357
347
|
voiceLanguageMustBeOneOf: (dubs) => `더빙은 다음 중 하나여야 합니다: ${dubs}.`,
|
|
@@ -534,18 +534,6 @@ const portuguese: Localization = {
|
|
|
534
534
|
upcomingBirthdays: (list) => `Aniversários desta semana: ${list}.`,
|
|
535
535
|
usage: (verbs) => `Uso: genshin.mjs <${verbs}> [nome]`,
|
|
536
536
|
usingInSession: "Falando como este personagem a partir desta resposta, só nesta sessão.",
|
|
537
|
-
viewerAddressInvalid: (address) => `${address} não é um endereço WebSocket, como ws://127.0.0.1:10086.`,
|
|
538
|
-
viewerModelInvalid: "O modelo deve ser um número inteiro a partir de 0.",
|
|
539
|
-
viewerMomentInvalid: (moments) => `O momento deve ser um de: ${moments}.`,
|
|
540
|
-
viewerMotionCleared: (moment) => `${moment} não toca mais movimento no visualizador.`,
|
|
541
|
-
viewerMotionSet: (moment, motion) => `${moment} toca ${motion} no visualizador.`,
|
|
542
|
-
viewerNone: "Nenhum visualizador definido; as respostas são lidas pelo player padrão.",
|
|
543
|
-
viewerNotAnswering: (address) => `Nenhum visualizador respondeu em ${address}; nada foi definido.`,
|
|
544
|
-
viewerProof:
|
|
545
|
-
"O visualizador está configurado; as falas de uma resposta aparecem no modelo a partir da próxima sessão.",
|
|
546
|
-
viewerSet: (address) =>
|
|
547
|
-
`O visualizador em ${address} mostra as falas das respostas; um balão apareceu no modelo como prova.`,
|
|
548
|
-
viewerStatus: (address, modelId) => `Visualizador em ${address}, modelo ${modelId}.`,
|
|
549
537
|
voiceLanguageAvailable: (dub) =>
|
|
550
538
|
`Existe uma dublagem ${dub}; instale-a com o comando voice para ouvir as respostas nela.`,
|
|
551
539
|
voiceLanguageMustBeOneOf: (dubs) => `A dublagem deve ser uma destas: ${dubs}.`,
|
|
@@ -475,17 +475,6 @@ const russian: Localization = {
|
|
|
475
475
|
upcomingBirthdays: (list) => `Дни рождения на этой неделе: ${list}.`,
|
|
476
476
|
usage: (verbs) => `Использование: genshin.mjs <${verbs}> [имя]`,
|
|
477
477
|
usingInSession: "Говорит этим персонажем с этого ответа, только в этой сессии.",
|
|
478
|
-
viewerAddressInvalid: (address) => `${address} — не адрес WebSocket, например ws://127.0.0.1:10086.`,
|
|
479
|
-
viewerModelInvalid: "Модель должна быть целым числом от 0.",
|
|
480
|
-
viewerMomentInvalid: (moments) => `Момент должен быть одним из: ${moments}.`,
|
|
481
|
-
viewerMotionCleared: (moment) => `${moment} больше не воспроизводит движение во вьюере.`,
|
|
482
|
-
viewerMotionSet: (moment, motion) => `${moment} воспроизводит ${motion} во вьюере.`,
|
|
483
|
-
viewerNone: "Вьюер не задан; реплики читаются стандартным плеером.",
|
|
484
|
-
viewerNotAnswering: (address) => `По адресу ${address} вьюер не ответил; ничего не задано.`,
|
|
485
|
-
viewerProof: "Вьюер настроен; реплики персонажа будут показываться на модели начиная со следующей сессии.",
|
|
486
|
-
viewerSet: (address) =>
|
|
487
|
-
`Вьюер по адресу ${address} показывает реплики; на модели появилось облачко в подтверждение.`,
|
|
488
|
-
viewerStatus: (address, modelId) => `Вьюер по адресу ${address}, модель ${modelId}.`,
|
|
489
478
|
voiceLanguageAvailable: (dub) => `Есть озвучка ${dub}; установите её командой voice, чтобы слышать ответы в ней.`,
|
|
490
479
|
voiceLanguageMustBeOneOf: (dubs) => `Озвучка должна быть одной из: ${dubs}.`,
|
|
491
480
|
voiceLanguageUnavailable: "Озвучки на этом языке нет, поэтому ответы по-прежнему читаются уже настроенным голосом.",
|
|
@@ -537,18 +537,6 @@ const spanish: Localization = {
|
|
|
537
537
|
upcomingBirthdays: (list) => `Cumpleaños de esta semana: ${list}.`,
|
|
538
538
|
usage: (verbs) => `Uso: genshin.mjs <${verbs}> [nombre]`,
|
|
539
539
|
usingInSession: "Hablando como este personaje desde esta respuesta, solo en esta sesión.",
|
|
540
|
-
viewerAddressInvalid: (address) => `${address} no es una dirección WebSocket, como ws://127.0.0.1:10086.`,
|
|
541
|
-
viewerModelInvalid: "El modelo debe ser un número entero desde 0.",
|
|
542
|
-
viewerMomentInvalid: (moments) => `El momento debe ser uno de: ${moments}.`,
|
|
543
|
-
viewerMotionCleared: (moment) => `${moment} ya no reproduce ningún movimiento en el visor.`,
|
|
544
|
-
viewerMotionSet: (moment, motion) => `${moment} reproduce ${motion} en el visor.`,
|
|
545
|
-
viewerNone: "No hay ningún visor configurado; las respuestas se leen en el reproductor del sistema.",
|
|
546
|
-
viewerNotAnswering: (address) => `Ningún visor respondió en ${address}; no se configuró nada.`,
|
|
547
|
-
viewerProof:
|
|
548
|
-
"El visor está listo; las líneas habladas de una respuesta se muestran en el modelo desde la próxima sesión.",
|
|
549
|
-
viewerSet: (address) =>
|
|
550
|
-
`El visor en ${address} muestra las líneas habladas; ha aparecido un globo en el modelo como prueba.`,
|
|
551
|
-
viewerStatus: (address, modelId) => `Visor en ${address}, modelo ${modelId}.`,
|
|
552
540
|
voiceLanguageAvailable: (dub) =>
|
|
553
541
|
`Existe un doblaje ${dub}; instálalo con el comando voice para oír las respuestas en él.`,
|
|
554
542
|
voiceLanguageMustBeOneOf: (dubs) => `El doblaje debe ser uno de: ${dubs}.`,
|
|
@@ -381,16 +381,6 @@ const thai: Localization = {
|
|
|
381
381
|
upcomingBirthdays: (list) => `วันเกิดในสัปดาห์นี้: ${list}`,
|
|
382
382
|
usage: (verbs) => `วิธีใช้: genshin.mjs <${verbs}> [ชื่อ]`,
|
|
383
383
|
usingInSession: "พูดในบทตัวละครนี้ตั้งแต่คำตอบนี้ เฉพาะในเซสชันนี้",
|
|
384
|
-
viewerAddressInvalid: (address) => `${address} ไม่ใช่ที่อยู่ WebSocket เช่น ws://127.0.0.1:10086`,
|
|
385
|
-
viewerModelInvalid: "โมเดลต้องเป็นจำนวนเต็มตั้งแต่ 0 ขึ้นไป",
|
|
386
|
-
viewerMomentInvalid: (moments) => `จังหวะต้องเป็นหนึ่งใน ${moments}`,
|
|
387
|
-
viewerMotionCleared: (moment) => `${moment} ไม่เล่นท่าทางบนวิวเวอร์อีกต่อไป`,
|
|
388
|
-
viewerMotionSet: (moment, motion) => `${moment} เล่น ${motion} บนวิวเวอร์`,
|
|
389
|
-
viewerNone: "ยังไม่ได้ตั้งค่าวิวเวอร์ คำตอบจะถูกอ่านออกเสียงผ่านตัวเล่นมาตรฐาน",
|
|
390
|
-
viewerNotAnswering: (address) => `ไม่มีวิวเวอร์ตอบรับที่ ${address} จึงไม่ได้ตั้งค่าใด ๆ`,
|
|
391
|
-
viewerProof: "ตั้งค่าวิวเวอร์แล้ว บทพูดของคำตอบจะแสดงบนโมเดลตั้งแต่เซสชันถัดไป",
|
|
392
|
-
viewerSet: (address) => `วิวเวอร์ที่ ${address} จะแสดงบทพูดของคำตอบ และมีบับเบิลขึ้นบนโมเดลเพื่อยืนยัน`,
|
|
393
|
-
viewerStatus: (address, modelId) => `วิวเวอร์ที่ ${address} โมเดล ${modelId}`,
|
|
394
384
|
voiceLanguageAvailable: (dub) => `มีเสียงพากย์ ${dub} ติดตั้งด้วยคำสั่ง voice เพื่อฟังคำตอบด้วยเสียงนั้น`,
|
|
395
385
|
voiceLanguageMustBeOneOf: (dubs) => `เสียงพากย์ต้องเป็นหนึ่งใน: ${dubs}`,
|
|
396
386
|
voiceLanguageUnavailable: "ภาษานี้ไม่มีเสียงพากย์ คำตอบจึงยังอ่านด้วยเสียงที่ตั้งไว้แล้ว",
|
|
@@ -535,18 +535,6 @@ const turkish: Localization = {
|
|
|
535
535
|
upcomingBirthdays: (list) => `Bu haftanın doğum günleri: ${list}.`,
|
|
536
536
|
usage: (verbs) => `Kullanım: genshin.mjs <${verbs}> [ad]`,
|
|
537
537
|
usingInSession: "Bu yanıttan itibaren yalnızca bu oturumda bu karakter olarak konuşuyor.",
|
|
538
|
-
viewerAddressInvalid: (address) => `${address} bir WebSocket adresi değil, örneğin ws://127.0.0.1:10086.`,
|
|
539
|
-
viewerModelInvalid: "Model 0'dan başlayan bir tam sayı olmalı.",
|
|
540
|
-
viewerMomentInvalid: (moments) => `An ${moments} değerlerinden biri olmalı.`,
|
|
541
|
-
viewerMotionCleared: (moment) => `${moment} artık görüntüleyicide hareket oynatmaz.`,
|
|
542
|
-
viewerMotionSet: (moment, motion) => `${moment} görüntüleyicide ${motion} oynatır.`,
|
|
543
|
-
viewerNone: "Görüntüleyici ayarlı değil; yanıtlar varsayılan oynatıcıda okunur.",
|
|
544
|
-
viewerNotAnswering: (address) => `${address} adresinde görüntüleyici yanıt vermedi; hiçbir şey ayarlanmadı.`,
|
|
545
|
-
viewerProof:
|
|
546
|
-
"Görüntüleyici ayarlandı; bir yanıtın konuşulan satırları bir sonraki oturumdan itibaren modelde gösterilir.",
|
|
547
|
-
viewerSet: (address) =>
|
|
548
|
-
`${address} adresindeki görüntüleyici yanıtların konuşma satırlarını gösterir; kanıt olarak modelde bir balon belirdi.`,
|
|
549
|
-
viewerStatus: (address, modelId) => `${address} adresindeki görüntüleyici, model ${modelId}.`,
|
|
550
538
|
voiceLanguageAvailable: (dub) => `Bir ${dub} dublajı var; yanıtları onunla duymak için voice komutuyla kur.`,
|
|
551
539
|
voiceLanguageMustBeOneOf: (dubs) => `Dublaj şunlardan biri olmalı: ${dubs}.`,
|
|
552
540
|
voiceLanguageUnavailable: "Bu dilde dublaj yok, bu yüzden yanıtlar zaten ayarlı olan sesle okunmaya devam eder.",
|
|
@@ -544,17 +544,6 @@ const vietnamese: Localization = {
|
|
|
544
544
|
upcomingBirthdays: (list) => `Sinh nhật tuần này: ${list}.`,
|
|
545
545
|
usage: (verbs) => `Cách dùng: genshin.mjs <${verbs}> [tên]`,
|
|
546
546
|
usingInSession: "Nói với vai nhân vật này từ phản hồi này, chỉ trong phiên này.",
|
|
547
|
-
viewerAddressInvalid: (address) => `${address} không phải địa chỉ WebSocket, ví dụ ws://127.0.0.1:10086.`,
|
|
548
|
-
viewerModelInvalid: "Mô hình phải là số nguyên từ 0 trở lên.",
|
|
549
|
-
viewerMomentInvalid: (moments) => `Thời điểm phải là một trong: ${moments}.`,
|
|
550
|
-
viewerMotionCleared: (moment) => `${moment} không còn phát chuyển động trên trình xem.`,
|
|
551
|
-
viewerMotionSet: (moment, motion) => `${moment} phát ${motion} trên trình xem.`,
|
|
552
|
-
viewerNone: "Chưa đặt trình xem; câu trả lời được đọc bằng trình phát mặc định.",
|
|
553
|
-
viewerNotAnswering: (address) => `Không có trình xem nào phản hồi tại ${address}; chưa đặt gì cả.`,
|
|
554
|
-
viewerProof: "Trình xem đã được thiết lập; lời thoại của câu trả lời sẽ hiện trên mô hình từ phiên sau.",
|
|
555
|
-
viewerSet: (address) =>
|
|
556
|
-
`Trình xem tại ${address} hiển thị lời thoại của câu trả lời; một bong bóng đã hiện trên mô hình để xác nhận.`,
|
|
557
|
-
viewerStatus: (address, modelId) => `Trình xem tại ${address}, mô hình ${modelId}.`,
|
|
558
547
|
voiceLanguageAvailable: (dub) =>
|
|
559
548
|
`Có bản lồng tiếng ${dub}; cài bằng lệnh voice để nghe phản hồi được đọc bằng giọng đó.`,
|
|
560
549
|
voiceLanguageMustBeOneOf: (dubs) => `Bản lồng tiếng phải là một trong: ${dubs}.`,
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import type { ViewerCaption } from "#src/models/ViewerCaption";
|
|
2
|
-
|
|
3
1
|
// One reading's playback: each clip in turn, answered with "" once it played or with why it did not, and the process
|
|
4
|
-
// Ended once the reading is
|
|
2
|
+
// Ended once the reading is
|
|
5
3
|
export interface AudioPlayer {
|
|
6
4
|
close: () => Promise<void>;
|
|
7
|
-
play: (audio: Uint8Array
|
|
8
|
-
// Ends what the viewer is playing and clears its caption, where a viewer carries the reading
|
|
9
|
-
stop?: () => void;
|
|
5
|
+
play: (audio: Uint8Array) => Promise<string>;
|
|
10
6
|
}
|
|
@@ -31,16 +31,6 @@ export interface LocalizationStrings {
|
|
|
31
31
|
upcomingBirthdays: (list: string) => string;
|
|
32
32
|
usage: (verbs: string) => string;
|
|
33
33
|
usingInSession: string;
|
|
34
|
-
viewerAddressInvalid: (address: string) => string;
|
|
35
|
-
viewerModelInvalid: string;
|
|
36
|
-
viewerMomentInvalid: (moments: string) => string;
|
|
37
|
-
viewerMotionCleared: (moment: string) => string;
|
|
38
|
-
viewerMotionSet: (moment: string, motion: string) => string;
|
|
39
|
-
viewerNone: string;
|
|
40
|
-
viewerNotAnswering: (address: string) => string;
|
|
41
|
-
viewerProof: string;
|
|
42
|
-
viewerSet: (address: string) => string;
|
|
43
|
-
viewerStatus: (address: string, modelId: number) => string;
|
|
44
34
|
voiceLanguageAvailable: (dub: string) => string;
|
|
45
35
|
voiceLanguageMustBeOneOf: (dubs: string) => string;
|
|
46
36
|
voiceLanguageUnavailable: string;
|
|
@@ -16,7 +16,6 @@ import { unpinCommand } from "#src/services/cli/commands/unpinCommand";
|
|
|
16
16
|
import { untranslatedCommand } from "#src/services/cli/commands/untranslatedCommand";
|
|
17
17
|
import { unverbedCommand } from "#src/services/cli/commands/unverbedCommand";
|
|
18
18
|
import { useCommand } from "#src/services/cli/commands/useCommand";
|
|
19
|
-
import { viewerCommand } from "#src/services/cli/commands/viewerCommand";
|
|
20
19
|
import { voiceCommand } from "#src/services/cli/commands/voiceCommand";
|
|
21
20
|
import { volumeCommand } from "#src/services/cli/commands/volumeCommand";
|
|
22
21
|
import { defineCommand } from "citty";
|
|
@@ -41,7 +40,6 @@ export const genshinCommand: CommandDef = defineCommand({
|
|
|
41
40
|
[GenshinVerb.Untranslated]: untranslatedCommand,
|
|
42
41
|
[GenshinVerb.Unverbed]: unverbedCommand,
|
|
43
42
|
[GenshinVerb.Use]: useCommand,
|
|
44
|
-
[GenshinVerb.Viewer]: viewerCommand,
|
|
45
43
|
[GenshinVerb.Voice]: voiceCommand,
|
|
46
44
|
[GenshinVerb.Volume]: volumeCommand,
|
|
47
45
|
},
|