-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommands.schema.json
More file actions
2365 lines (2365 loc) · 59.4 KB
/
commands.schema.json
File metadata and controls
2365 lines (2365 loc) · 59.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"oneOf": [
{
"type": "object",
"properties": {
"command": {
"type": "string",
"const": "text"
},
"content": {
"type": "string",
"description": "Text content to display",
"title": "Content",
"x-i18n": {
"zh-CN": "内容"
},
"x-i18n-desc": {
"zh-CN": "要显示的文本内容"
}
},
"name": {
"description": "Speaker name",
"title": "Speaker",
"format": "character",
"x-i18n": {
"zh-CN": "说话人"
},
"x-i18n-desc": {
"zh-CN": "说话人名称"
},
"type": "string"
},
"newline": {
"default": true,
"description": "Start a new line before printing the text",
"title": "New Line",
"x-i18n": {
"zh-CN": "换行"
},
"x-i18n-desc": {
"zh-CN": "在显示文本前换行"
},
"type": "boolean"
},
"clear": {
"default": true,
"description": "Clear existing text before printing",
"title": "Clear",
"x-i18n": {
"zh-CN": "清除"
},
"x-i18n-desc": {
"zh-CN": "在显示文本前清除已有文本"
},
"type": "boolean"
},
"autoAdvance": {
"default": false,
"description": "Whether to automatically advance after printing",
"title": "Auto Advance",
"x-i18n": {
"zh-CN": "自动前进"
},
"x-i18n-desc": {
"zh-CN": "文本显示完成后是否自动前进"
},
"type": "boolean"
},
"skippable": {
"default": true,
"description": "Whether it can be skipped",
"title": "Skippable",
"x-i18n": {
"zh-CN": "可跳过"
},
"x-i18n-desc": {
"zh-CN": "是否可跳过"
},
"type": "boolean"
}
},
"required": [
"command",
"content"
],
"description": "Display text in the text box",
"title": "Display Text",
"x-i18n": {
"zh-CN": "显示文本"
},
"x-i18n-desc": {
"zh-CN": "在文本框中显示文本"
}
},
{
"type": "object",
"properties": {
"command": {
"type": "string",
"const": "textClear"
}
},
"required": [
"command"
],
"description": "Clear the text box",
"title": "Clear Text",
"x-i18n": {
"zh-CN": "清除文本"
},
"x-i18n-desc": {
"zh-CN": "清除文本框内容"
}
},
{
"type": "object",
"properties": {
"command": {
"type": "string",
"const": "textBox"
},
"position": {
"description": "Text box position (x, y)",
"title": "Position",
"x-i18n": {
"zh-CN": "位置"
},
"x-i18n-desc": {
"zh-CN": "文本框位置坐标 (x, y)"
},
"minItems": 2,
"maxItems": 2,
"type": "array",
"items": {
"type": "number"
}
},
"printMode": {
"description": "Text printing mode",
"title": "Print Mode",
"x-i18n": {
"zh-CN": "打字模式"
},
"x-i18n-desc": {
"zh-CN": "文本打字模式"
},
"type": "string",
"enum": [
"instant",
"typewriter",
"printer"
]
},
"printSpeed": {
"description": "Print speed: chars/sec (typewriter) or lines/sec (printer)",
"title": "Print Speed",
"x-i18n": {
"zh-CN": "打字速度"
},
"x-i18n-desc": {
"zh-CN": "逐字模式为字/秒,打印机模式为行/秒"
},
"type": "number"
},
"fillColor": {
"description": "Text color",
"title": "Text Color",
"format": "color",
"x-i18n": {
"zh-CN": "文字颜色"
},
"x-i18n-desc": {
"zh-CN": "文字颜色"
},
"type": "string"
},
"lineHeight": {
"description": "Line height multiplier",
"title": "Line Height",
"x-i18n": {
"zh-CN": "行高"
},
"x-i18n-desc": {
"zh-CN": "行高倍数"
},
"type": "number"
},
"indent": {
"description": "First-line indentation in pixels",
"title": "Indent",
"x-i18n": {
"zh-CN": "缩进"
},
"x-i18n-desc": {
"zh-CN": "段落首行缩进(像素)"
},
"type": "number"
},
"stroke": {
"description": "Whether to apply text stroke",
"title": "Stroke",
"x-i18n": {
"zh-CN": "描边"
},
"x-i18n-desc": {
"zh-CN": "是否启用文字描边"
},
"type": "boolean"
},
"shadow": {
"description": "Whether to apply text shadow",
"title": "Shadow",
"x-i18n": {
"zh-CN": "阴影"
},
"x-i18n-desc": {
"zh-CN": "是否启用文字阴影"
},
"type": "boolean"
},
"strokeColor": {
"description": "Stroke color",
"title": "Stroke Color",
"format": "color",
"x-i18n": {
"zh-CN": "描边颜色"
},
"x-i18n-desc": {
"zh-CN": "描边颜色"
},
"type": "string"
},
"strokeWidth": {
"description": "Stroke width in pixels",
"title": "Stroke Width",
"x-i18n": {
"zh-CN": "描边宽度"
},
"x-i18n-desc": {
"zh-CN": "描边宽度(像素)"
},
"type": "number"
},
"shadowColor": {
"description": "Shadow color",
"title": "Shadow Color",
"format": "color",
"x-i18n": {
"zh-CN": "阴影颜色"
},
"x-i18n-desc": {
"zh-CN": "阴影颜色"
},
"type": "string"
},
"shadowOffsetX": {
"description": "Shadow X offset in pixels",
"title": "Shadow Offset X",
"x-i18n": {
"zh-CN": "阴影偏移 X"
},
"x-i18n-desc": {
"zh-CN": "阴影 X 轴偏移(像素)"
},
"type": "number"
},
"shadowOffsetY": {
"description": "Shadow Y offset in pixels",
"title": "Shadow Offset Y",
"x-i18n": {
"zh-CN": "阴影偏移 Y"
},
"x-i18n-desc": {
"zh-CN": "阴影 Y 轴偏移(像素)"
},
"type": "number"
},
"shadowBlur": {
"description": "Shadow blur radius in pixels",
"title": "Shadow Blur",
"x-i18n": {
"zh-CN": "阴影模糊"
},
"x-i18n-desc": {
"zh-CN": "阴影模糊半径(像素)"
},
"type": "number"
},
"shadowWidth": {
"description": "Shadow width in pixels, only effective when shadow is enabled",
"title": "Shadow Width",
"x-i18n": {
"zh-CN": "阴影宽度"
},
"x-i18n-desc": {
"zh-CN": "阴影宽度(像素),仅在启用阴影时生效"
},
"type": "number"
}
},
"required": [
"command"
],
"description": "Configure text box appearance and behavior",
"title": "Text Box Settings",
"x-i18n": {
"zh-CN": "文本框设置"
},
"x-i18n-desc": {
"zh-CN": "配置文本框外观与行为"
}
},
{
"type": "object",
"properties": {
"command": {
"type": "string",
"const": "textBoxShow"
}
},
"required": [
"command"
],
"description": "Show the text box",
"title": "Show Text Box",
"x-i18n": {
"zh-CN": "显示文本框"
},
"x-i18n-desc": {
"zh-CN": "显示文本框"
}
},
{
"type": "object",
"properties": {
"command": {
"type": "string",
"const": "textBoxHide"
}
},
"required": [
"command"
],
"description": "Hide the text box",
"title": "Hide Text Box",
"x-i18n": {
"zh-CN": "隐藏文本框"
},
"x-i18n-desc": {
"zh-CN": "隐藏文本框"
}
},
{
"type": "object",
"properties": {
"command": {
"type": "string",
"const": "avatar"
},
"src": {
"type": "string",
"description": "Image asset path",
"title": "Image",
"format": "asset",
"x-asset-kind": "image",
"x-i18n": {
"zh-CN": "图片"
},
"x-i18n-desc": {
"zh-CN": "图片资源路径"
}
},
"enable": {
"description": "Whether to show the avatar; defaults to true when setting a source",
"title": "Enable",
"x-i18n": {
"zh-CN": "启用"
},
"x-i18n-desc": {
"zh-CN": "是否显示头像;设置 src 时默认启用"
},
"type": "boolean"
},
"offsetX": {
"description": "Horizontal offset relative to the default avatar placement",
"title": "Offset X",
"x-i18n": {
"zh-CN": "偏移 X"
},
"x-i18n-desc": {
"zh-CN": "相对于默认头像摆放位置的水平偏移"
},
"type": "number"
},
"offsetY": {
"description": "Vertical offset relative to the default avatar placement",
"title": "Offset Y",
"x-i18n": {
"zh-CN": "偏移 Y"
},
"x-i18n-desc": {
"zh-CN": "相对于默认头像摆放位置的垂直偏移"
},
"type": "number"
},
"spacing": {
"description": "Horizontal retreat applied to the text and name area when the avatar is visible",
"title": "Spacing",
"x-i18n": {
"zh-CN": "退让尺寸"
},
"x-i18n-desc": {
"zh-CN": "头像可见时,文本区和姓名框在水平方向上的退让尺寸"
},
"type": "number",
"minimum": 0
}
},
"required": [
"command"
],
"description": "Configure the textbox avatar",
"title": "Textbox Avatar",
"x-i18n": {
"zh-CN": "文本框头像"
},
"x-i18n-desc": {
"zh-CN": "配置文本框头像及其布局参数"
}
},
{
"type": "object",
"properties": {
"command": {
"type": "string",
"const": "avatarFor"
},
"character": {
"type": "string",
"description": "Character identifier",
"title": "Name",
"format": "character",
"x-i18n": {
"zh-CN": "角色名"
},
"x-i18n-desc": {
"zh-CN": "角色标识符"
}
},
"name": {
"description": "Optional avatar variant name matched by the third text leading slot",
"title": "Variant Name",
"x-i18n": {
"zh-CN": "头像名"
},
"x-i18n-desc": {
"zh-CN": "可选的头像名,对应文本前导的第三个槽位"
},
"type": "string"
},
"src": {
"type": "string",
"description": "Image asset path",
"title": "Image",
"format": "asset",
"x-asset-kind": "image",
"x-i18n": {
"zh-CN": "图片"
},
"x-i18n-desc": {
"zh-CN": "图片资源路径"
}
},
"enable": {
"description": "Whether to show the avatar; defaults to true when setting a source",
"title": "Enable",
"x-i18n": {
"zh-CN": "启用"
},
"x-i18n-desc": {
"zh-CN": "是否显示头像;设置 src 时默认启用"
},
"type": "boolean"
},
"offsetX": {
"description": "Horizontal offset relative to the default avatar placement",
"title": "Offset X",
"x-i18n": {
"zh-CN": "偏移 X"
},
"x-i18n-desc": {
"zh-CN": "相对于默认头像摆放位置的水平偏移"
},
"type": "number"
},
"offsetY": {
"description": "Vertical offset relative to the default avatar placement",
"title": "Offset Y",
"x-i18n": {
"zh-CN": "偏移 Y"
},
"x-i18n-desc": {
"zh-CN": "相对于默认头像摆放位置的垂直偏移"
},
"type": "number"
},
"spacing": {
"description": "Horizontal retreat applied to the text and name area when the avatar is visible",
"title": "Spacing",
"x-i18n": {
"zh-CN": "退让尺寸"
},
"x-i18n-desc": {
"zh-CN": "头像可见时,文本区和姓名框在水平方向上的退让尺寸"
},
"type": "number",
"minimum": 0
}
},
"required": [
"command",
"character"
],
"description": "Configure a textbox avatar for a specific character and optional avatar name",
"title": "Textbox Avatar For Character",
"x-i18n": {
"zh-CN": "角色文本框头像"
},
"x-i18n-desc": {
"zh-CN": "为特定角色和可选头像名配置文本框头像"
}
},
{
"type": "object",
"properties": {
"command": {
"type": "string",
"const": "bgm"
},
"src": {
"type": "string",
"description": "Audio asset path",
"title": "Audio",
"format": "asset",
"x-asset-kind": "audio",
"x-i18n": {
"zh-CN": "音频"
},
"x-i18n-desc": {
"zh-CN": "音频资源路径"
}
},
"loop": {
"default": true,
"description": "Whether to loop",
"title": "Loop",
"x-i18n": {
"zh-CN": "循环播放"
},
"x-i18n-desc": {
"zh-CN": "是否循环播放"
},
"type": "boolean"
},
"volume": {
"default": 1,
"description": "Volume, ranges from 0 to 1",
"title": "Volume",
"x-i18n": {
"zh-CN": "音量"
},
"x-i18n-desc": {
"zh-CN": "音量,范围 0 到 1"
},
"type": "number",
"minimum": 0,
"maximum": 1
},
"waitForEnd": {
"default": false,
"description": "Whether to block the scenario until the audio finishes playing naturally",
"title": "Wait For End",
"x-i18n": {
"zh-CN": "等待播放完成"
},
"x-i18n-desc": {
"zh-CN": "是否等待音频播放完毕后再继续剧情"
},
"type": "boolean"
},
"fadeTime": {
"default": 1000,
"description": "Fade time in milliseconds",
"title": "Fade Time",
"x-i18n": {
"zh-CN": "渐变时间"
},
"x-i18n-desc": {
"zh-CN": "渐变时间(毫秒)"
},
"type": "number"
},
"skippable": {
"default": false,
"description": "Whether it can be skipped",
"title": "Skippable",
"x-i18n": {
"zh-CN": "可跳过"
},
"x-i18n-desc": {
"zh-CN": "是否可跳过"
},
"type": "boolean"
},
"noWait": {
"default": true,
"description": "Whether to skip waiting for the transition to complete",
"title": "No Wait",
"x-i18n": {
"zh-CN": "不等待"
},
"x-i18n-desc": {
"zh-CN": "是否跳过等待过渡完成"
},
"type": "boolean"
}
},
"required": [
"command",
"src"
],
"description": "Play background music",
"title": "Play BGM",
"x-i18n": {
"zh-CN": "播放背景音乐"
},
"x-i18n-desc": {
"zh-CN": "播放背景音乐"
}
},
{
"type": "object",
"properties": {
"command": {
"type": "string",
"const": "bgmStop"
},
"fadeTime": {
"default": 1000,
"description": "Fade time in milliseconds",
"title": "Fade Time",
"x-i18n": {
"zh-CN": "渐变时间"
},
"x-i18n-desc": {
"zh-CN": "渐变时间(毫秒)"
},
"type": "number"
},
"skippable": {
"default": false,
"description": "Whether it can be skipped",
"title": "Skippable",
"x-i18n": {
"zh-CN": "可跳过"
},
"x-i18n-desc": {
"zh-CN": "是否可跳过"
},
"type": "boolean"
},
"noWait": {
"default": true,
"description": "Whether to skip waiting for the transition to complete",
"title": "No Wait",
"x-i18n": {
"zh-CN": "不等待"
},
"x-i18n-desc": {
"zh-CN": "是否跳过等待过渡完成"
},
"type": "boolean"
}
},
"required": [
"command"
],
"description": "Stop background music",
"title": "Stop BGM",
"x-i18n": {
"zh-CN": "停止背景音乐"
},
"x-i18n-desc": {
"zh-CN": "停止播放背景音乐"
}
},
{
"type": "object",
"properties": {
"command": {
"type": "string",
"const": "sfx"
},
"src": {
"type": "string",
"description": "Audio asset path",
"title": "Audio",
"format": "asset",
"x-asset-kind": "audio",
"x-i18n": {
"zh-CN": "音频"
},
"x-i18n-desc": {
"zh-CN": "音频资源路径"
}
},
"loop": {
"default": false,
"description": "Whether to loop",
"title": "Loop",
"x-i18n": {
"zh-CN": "循环播放"
},
"x-i18n-desc": {
"zh-CN": "是否循环播放"
},
"type": "boolean"
},
"volume": {
"default": 1,
"description": "Volume, ranges from 0 to 1",
"title": "Volume",
"x-i18n": {
"zh-CN": "音量"
},
"x-i18n-desc": {
"zh-CN": "音量,范围 0 到 1"
},
"type": "number",
"minimum": 0,
"maximum": 1
},
"waitForEnd": {
"default": false,
"description": "Whether to block the scenario until the audio finishes playing naturally",
"title": "Wait For End",
"x-i18n": {
"zh-CN": "等待播放完成"
},
"x-i18n-desc": {
"zh-CN": "是否等待音频播放完毕后再继续剧情"
},
"type": "boolean"
},
"fadeTime": {
"default": 0,
"description": "Fade time in milliseconds",
"title": "Fade Time",
"x-i18n": {
"zh-CN": "渐变时间"
},
"x-i18n-desc": {
"zh-CN": "渐变时间(毫秒)"
},
"type": "number"
},
"skippable": {
"default": false,
"description": "Whether it can be skipped",
"title": "Skippable",
"x-i18n": {
"zh-CN": "可跳过"
},
"x-i18n-desc": {
"zh-CN": "是否可跳过"
},
"type": "boolean"
},
"noWait": {
"default": true,
"description": "Whether to skip waiting for the transition to complete",
"title": "No Wait",
"x-i18n": {
"zh-CN": "不等待"
},
"x-i18n-desc": {
"zh-CN": "是否跳过等待过渡完成"
},
"type": "boolean"
}
},
"required": [
"command",
"src"
],
"description": "Play a sound effect",
"title": "Play SFX",
"x-i18n": {
"zh-CN": "播放音效"
},
"x-i18n-desc": {
"zh-CN": "播放一个音效"
}
},
{
"type": "object",
"properties": {
"command": {
"type": "string",
"const": "sfxStop"
},
"fadeTime": {
"default": 0,
"description": "Fade time in milliseconds",
"title": "Fade Time",
"x-i18n": {
"zh-CN": "渐变时间"
},
"x-i18n-desc": {
"zh-CN": "渐变时间(毫秒)"
},
"type": "number"
},
"skippable": {
"default": false,
"description": "Whether it can be skipped",
"title": "Skippable",
"x-i18n": {
"zh-CN": "可跳过"
},
"x-i18n-desc": {
"zh-CN": "是否可跳过"
},
"type": "boolean"
},
"noWait": {
"default": true,
"description": "Whether to skip waiting for the transition to complete",
"title": "No Wait",
"x-i18n": {
"zh-CN": "不等待"
},
"x-i18n-desc": {
"zh-CN": "是否跳过等待过渡完成"
},
"type": "boolean"
}
},
"required": [
"command"
],
"description": "Stop sound effects",
"title": "Stop SFX",
"x-i18n": {
"zh-CN": "停止音效"
},
"x-i18n-desc": {
"zh-CN": "停止播放音效"
}
},
{
"type": "object",
"properties": {
"command": {
"type": "string",
"const": "voice"
},
"src": {
"type": "string",
"description": "Audio asset path",
"title": "Audio",
"format": "asset",
"x-asset-kind": "audio",
"x-i18n": {
"zh-CN": "音频"
},
"x-i18n-desc": {
"zh-CN": "音频资源路径"
}
},
"name": {
"description": "Voice channel name",
"title": "Channel",
"x-i18n": {
"zh-CN": "通道"
},
"x-i18n-desc": {
"zh-CN": "语音通道名称"
},
"type": "string"
},
"volume": {
"default": 1,
"description": "Volume, ranges from 0 to 1",
"title": "Volume",
"x-i18n": {
"zh-CN": "音量"
},
"x-i18n-desc": {
"zh-CN": "音量,范围 0 到 1"
},
"type": "number",
"minimum": 0,
"maximum": 1
},
"waitForEnd": {
"default": false,
"description": "Whether to block the scenario until the audio finishes playing naturally",
"title": "Wait For End",
"x-i18n": {
"zh-CN": "等待播放完成"
},
"x-i18n-desc": {
"zh-CN": "是否等待音频播放完毕后再继续剧情"
},
"type": "boolean"
}
},
"required": [
"command",
"src"
],
"description": "Play voice audio",
"title": "Play Voice",
"x-i18n": {
"zh-CN": "播放语音"
},
"x-i18n-desc": {
"zh-CN": "播放语音音频"
}
},
{
"type": "object",
"properties": {
"command": {
"type": "string",
"const": "voiceStop"
},
"name": {
"description": "Voice channel name to stop",
"title": "Channel",
"x-i18n": {
"zh-CN": "通道"
},
"x-i18n-desc": {
"zh-CN": "要停止的语音通道名称"
},
"type": "string"
}
},
"required": [
"command"
],
"description": "Stop voice playback",
"title": "Stop Voice",
"x-i18n": {
"zh-CN": "停止语音"
},
"x-i18n-desc": {
"zh-CN": "停止语音播放"
}
},
{
"type": "object",
"properties": {
"command": {
"type": "string",
"const": "sound"
},
"channel": {
"type": "string",
"description": "Audio channel name",
"title": "Channel",
"x-i18n": {
"zh-CN": "通道"
},
"x-i18n-desc": {
"zh-CN": "音频通道名称"
}
},
"src": {
"type": "string",
"description": "Audio asset path",
"title": "Audio",
"format": "asset",
"x-asset-kind": "audio",
"x-i18n": {
"zh-CN": "音频"
},
"x-i18n-desc": {
"zh-CN": "音频资源路径"
}
},
"loop": {
"default": false,
"description": "Whether to loop",
"title": "Loop",
"x-i18n": {
"zh-CN": "循环播放"