ruiyun-human 1.0.16 → 1.0.18
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/dist/ruiyun-human.cjs.js +11 -7
- package/dist/ruiyun-human.es.js +11 -7
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/ruiyun-human.cjs.js
CHANGED
|
@@ -388,6 +388,7 @@ const Recorder = /* @__PURE__ */ getDefaultExportFromCjs(jsAudioRecorder);
|
|
|
388
388
|
const VOICE_CLIENT_ID = "e5cd2b";
|
|
389
389
|
const VOICE_TENANT_ID = "000000";
|
|
390
390
|
const TTS_USER = "web-test-user";
|
|
391
|
+
const szrUrl = `https://sqsyky.xzspj.suqian.gov.cn:8443/szrimage/`;
|
|
391
392
|
const TTS_PCM_SAMPLE_RATE = 16e3;
|
|
392
393
|
const TTS_MAX_RETRIES = 5;
|
|
393
394
|
const _sfc_main = {
|
|
@@ -396,13 +397,17 @@ const _sfc_main = {
|
|
|
396
397
|
human: {
|
|
397
398
|
type: Object,
|
|
398
399
|
default: null
|
|
400
|
+
},
|
|
401
|
+
szraddress: {
|
|
402
|
+
type: String,
|
|
403
|
+
default: "https://sqsyky.xzspj.suqian.gov.cn:8443"
|
|
399
404
|
}
|
|
400
405
|
},
|
|
401
406
|
emits: ["loaded", "changed", "paused", "resumed", "audio-ready"],
|
|
402
407
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
403
|
-
const
|
|
404
|
-
const
|
|
405
|
-
const
|
|
408
|
+
const props = __props;
|
|
409
|
+
const TTS_URL = `${props.szraddress}`;
|
|
410
|
+
const ASR_URL = `${props.szraddress}`;
|
|
406
411
|
const HUMAN_PRESETS = {
|
|
407
412
|
1: {
|
|
408
413
|
humanId: 1,
|
|
@@ -411,7 +416,7 @@ const _sfc_main = {
|
|
|
411
416
|
folder: `${szrUrl}/xiangyu-green-suit`,
|
|
412
417
|
folder_mobile: `${szrUrl}/xiangyu-green-suit-header`,
|
|
413
418
|
standby: { interval: 100, standbyNum: 11 },
|
|
414
|
-
speak: { interval: 30, speakNum:
|
|
419
|
+
speak: { interval: 30, speakNum: 274 },
|
|
415
420
|
humanType: 1,
|
|
416
421
|
timbre: 47
|
|
417
422
|
},
|
|
@@ -450,7 +455,7 @@ const _sfc_main = {
|
|
|
450
455
|
title: "Q版形象",
|
|
451
456
|
folder: `${szrUrl}/xiangyu-q`,
|
|
452
457
|
folder_mobile: `${szrUrl}/xiangyu-q-header`,
|
|
453
|
-
standby: { interval: 100, standbyNum:
|
|
458
|
+
standby: { interval: 100, standbyNum: 23 },
|
|
454
459
|
speak: { interval: 30, speakNum: 118 },
|
|
455
460
|
humanType: 1,
|
|
456
461
|
timbre: 47
|
|
@@ -477,7 +482,6 @@ const _sfc_main = {
|
|
|
477
482
|
merged.folder = resolveFolder(merged);
|
|
478
483
|
return merged;
|
|
479
484
|
};
|
|
480
|
-
const props = __props;
|
|
481
485
|
const emit = __emit;
|
|
482
486
|
const containerRef = vue.ref(null);
|
|
483
487
|
const canvasRef = vue.ref(null);
|
|
@@ -1034,7 +1038,7 @@ const _sfc_main = {
|
|
|
1034
1038
|
};
|
|
1035
1039
|
}
|
|
1036
1040
|
};
|
|
1037
|
-
const DigitalHuman = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
1041
|
+
const DigitalHuman = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-60e083ad"]]);
|
|
1038
1042
|
DigitalHuman.install = (app) => app.component("DigitalHuman", DigitalHuman);
|
|
1039
1043
|
const components = [DemoButton, DemoInput, DigitalHuman];
|
|
1040
1044
|
const install = (app) => {
|
package/dist/ruiyun-human.es.js
CHANGED
|
@@ -386,6 +386,7 @@ const Recorder = /* @__PURE__ */ getDefaultExportFromCjs(jsAudioRecorder);
|
|
|
386
386
|
const VOICE_CLIENT_ID = "e5cd2b";
|
|
387
387
|
const VOICE_TENANT_ID = "000000";
|
|
388
388
|
const TTS_USER = "web-test-user";
|
|
389
|
+
const szrUrl = `https://sqsyky.xzspj.suqian.gov.cn:8443/szrimage/`;
|
|
389
390
|
const TTS_PCM_SAMPLE_RATE = 16e3;
|
|
390
391
|
const TTS_MAX_RETRIES = 5;
|
|
391
392
|
const _sfc_main = {
|
|
@@ -394,13 +395,17 @@ const _sfc_main = {
|
|
|
394
395
|
human: {
|
|
395
396
|
type: Object,
|
|
396
397
|
default: null
|
|
398
|
+
},
|
|
399
|
+
szraddress: {
|
|
400
|
+
type: String,
|
|
401
|
+
default: "https://sqsyky.xzspj.suqian.gov.cn:8443"
|
|
397
402
|
}
|
|
398
403
|
},
|
|
399
404
|
emits: ["loaded", "changed", "paused", "resumed", "audio-ready"],
|
|
400
405
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
401
|
-
const
|
|
402
|
-
const
|
|
403
|
-
const
|
|
406
|
+
const props = __props;
|
|
407
|
+
const TTS_URL = `${props.szraddress}`;
|
|
408
|
+
const ASR_URL = `${props.szraddress}`;
|
|
404
409
|
const HUMAN_PRESETS = {
|
|
405
410
|
1: {
|
|
406
411
|
humanId: 1,
|
|
@@ -409,7 +414,7 @@ const _sfc_main = {
|
|
|
409
414
|
folder: `${szrUrl}/xiangyu-green-suit`,
|
|
410
415
|
folder_mobile: `${szrUrl}/xiangyu-green-suit-header`,
|
|
411
416
|
standby: { interval: 100, standbyNum: 11 },
|
|
412
|
-
speak: { interval: 30, speakNum:
|
|
417
|
+
speak: { interval: 30, speakNum: 274 },
|
|
413
418
|
humanType: 1,
|
|
414
419
|
timbre: 47
|
|
415
420
|
},
|
|
@@ -448,7 +453,7 @@ const _sfc_main = {
|
|
|
448
453
|
title: "Q版形象",
|
|
449
454
|
folder: `${szrUrl}/xiangyu-q`,
|
|
450
455
|
folder_mobile: `${szrUrl}/xiangyu-q-header`,
|
|
451
|
-
standby: { interval: 100, standbyNum:
|
|
456
|
+
standby: { interval: 100, standbyNum: 23 },
|
|
452
457
|
speak: { interval: 30, speakNum: 118 },
|
|
453
458
|
humanType: 1,
|
|
454
459
|
timbre: 47
|
|
@@ -475,7 +480,6 @@ const _sfc_main = {
|
|
|
475
480
|
merged.folder = resolveFolder(merged);
|
|
476
481
|
return merged;
|
|
477
482
|
};
|
|
478
|
-
const props = __props;
|
|
479
483
|
const emit = __emit;
|
|
480
484
|
const containerRef = ref(null);
|
|
481
485
|
const canvasRef = ref(null);
|
|
@@ -1032,7 +1036,7 @@ const _sfc_main = {
|
|
|
1032
1036
|
};
|
|
1033
1037
|
}
|
|
1034
1038
|
};
|
|
1035
|
-
const DigitalHuman = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
1039
|
+
const DigitalHuman = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-60e083ad"]]);
|
|
1036
1040
|
DigitalHuman.install = (app) => app.component("DigitalHuman", DigitalHuman);
|
|
1037
1041
|
const components = [DemoButton, DemoInput, DigitalHuman];
|
|
1038
1042
|
const install = (app) => {
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.demo-btn[data-v-9a48516a]{padding:6px 14px;border-radius:4px;border:none;cursor:pointer;font-size:14px}.primary[data-v-9a48516a]{background:#409eff;color:#fff}.success[data-v-9a48516a]{background:#67c23a;color:#fff}.warning[data-v-9a48516a]{background:#e6a23c;color:#fff}.demo-input-wrap[data-v-28a3493c]{display:inline-flex;align-items:center;border:1px solid #dcdcdc;border-radius:4px;padding:0 10px}.demo-input-wrap[data-v-28a3493c]:focus-within{border-color:#409eff}.demo-input[data-v-28a3493c]{border:none;outline:none;padding:8px 6px;flex:1}.prefix[data-v-28a3493c],.suffix[data-v-28a3493c]{color:#909399}.digital-human[data-v-
|
|
1
|
+
.demo-btn[data-v-9a48516a]{padding:6px 14px;border-radius:4px;border:none;cursor:pointer;font-size:14px}.primary[data-v-9a48516a]{background:#409eff;color:#fff}.success[data-v-9a48516a]{background:#67c23a;color:#fff}.warning[data-v-9a48516a]{background:#e6a23c;color:#fff}.demo-input-wrap[data-v-28a3493c]{display:inline-flex;align-items:center;border:1px solid #dcdcdc;border-radius:4px;padding:0 10px}.demo-input-wrap[data-v-28a3493c]:focus-within{border-color:#409eff}.demo-input[data-v-28a3493c]{border:none;outline:none;padding:8px 6px;flex:1}.prefix[data-v-28a3493c],.suffix[data-v-28a3493c]{color:#909399}.digital-human[data-v-60e083ad]{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.digital-human canvas[data-v-60e083ad]{max-width:100%;max-height:100%}
|