ruiyun-human 1.0.8 → 1.0.10
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 +4 -5
- package/dist/ruiyun-human.es.js +4 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/ruiyun-human.cjs.js
CHANGED
|
@@ -385,8 +385,6 @@ var recorder = { exports: {} };
|
|
|
385
385
|
var recorderExports = recorder.exports;
|
|
386
386
|
var jsAudioRecorder = recorderExports;
|
|
387
387
|
const Recorder = /* @__PURE__ */ getDefaultExportFromCjs(jsAudioRecorder);
|
|
388
|
-
const baseTTSUrl = "http://localhost:8002";
|
|
389
|
-
const ASR_URL = "http://localhost:9988/transcribe";
|
|
390
388
|
const _sfc_main = {
|
|
391
389
|
__name: "index",
|
|
392
390
|
props: {
|
|
@@ -674,7 +672,8 @@ const _sfc_main = {
|
|
|
674
672
|
try {
|
|
675
673
|
const cleanText = text.replace(/```[\s\S]*?```/g, "").replace(/`[^`]+`/g, "").replace(/[#*_~]/g, "").replace(/\n+/g, ",").replace(/\s+/g, " ").replace(/[,。!?]{2,}/g, ",").trim();
|
|
676
674
|
if (!cleanText) return;
|
|
677
|
-
const baseUrl =
|
|
675
|
+
const baseUrl = "/baseUrl11";
|
|
676
|
+
const baseurl22 = "/baseUrl22";
|
|
678
677
|
const sessionHash = "session_" + Date.now();
|
|
679
678
|
let speed = ((_c = (_b = currentHuman.value) == null ? void 0 : _b.speakSet) == null ? void 0 : _c.speed) || 1;
|
|
680
679
|
let age = ((_e = (_d = currentHuman.value) == null ? void 0 : _d.speakSet) == null ? void 0 : _e.age) || "Young Adult / 青年";
|
|
@@ -836,7 +835,7 @@ const _sfc_main = {
|
|
|
836
835
|
const formData = new FormData();
|
|
837
836
|
formData.append("file", blob, "recorded_audio.wav");
|
|
838
837
|
try {
|
|
839
|
-
const res = await fetch(
|
|
838
|
+
const res = await fetch(baseurl2 + "/transcribe", {
|
|
840
839
|
method: "POST",
|
|
841
840
|
body: formData
|
|
842
841
|
});
|
|
@@ -936,7 +935,7 @@ const _sfc_main = {
|
|
|
936
935
|
};
|
|
937
936
|
}
|
|
938
937
|
};
|
|
939
|
-
const DigitalHuman = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
938
|
+
const DigitalHuman = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f9bef1a6"]]);
|
|
940
939
|
DigitalHuman.install = (app) => app.component("DigitalHuman", DigitalHuman);
|
|
941
940
|
const components = [DemoButton, DemoInput, DigitalHuman];
|
|
942
941
|
const install = (app) => {
|
package/dist/ruiyun-human.es.js
CHANGED
|
@@ -383,8 +383,6 @@ var recorder = { exports: {} };
|
|
|
383
383
|
var recorderExports = recorder.exports;
|
|
384
384
|
var jsAudioRecorder = recorderExports;
|
|
385
385
|
const Recorder = /* @__PURE__ */ getDefaultExportFromCjs(jsAudioRecorder);
|
|
386
|
-
const baseTTSUrl = "http://localhost:8002";
|
|
387
|
-
const ASR_URL = "http://localhost:9988/transcribe";
|
|
388
386
|
const _sfc_main = {
|
|
389
387
|
__name: "index",
|
|
390
388
|
props: {
|
|
@@ -672,7 +670,8 @@ const _sfc_main = {
|
|
|
672
670
|
try {
|
|
673
671
|
const cleanText = text.replace(/```[\s\S]*?```/g, "").replace(/`[^`]+`/g, "").replace(/[#*_~]/g, "").replace(/\n+/g, ",").replace(/\s+/g, " ").replace(/[,。!?]{2,}/g, ",").trim();
|
|
674
672
|
if (!cleanText) return;
|
|
675
|
-
const baseUrl =
|
|
673
|
+
const baseUrl = "/baseUrl11";
|
|
674
|
+
const baseurl22 = "/baseUrl22";
|
|
676
675
|
const sessionHash = "session_" + Date.now();
|
|
677
676
|
let speed = ((_c = (_b = currentHuman.value) == null ? void 0 : _b.speakSet) == null ? void 0 : _c.speed) || 1;
|
|
678
677
|
let age = ((_e = (_d = currentHuman.value) == null ? void 0 : _d.speakSet) == null ? void 0 : _e.age) || "Young Adult / 青年";
|
|
@@ -834,7 +833,7 @@ const _sfc_main = {
|
|
|
834
833
|
const formData = new FormData();
|
|
835
834
|
formData.append("file", blob, "recorded_audio.wav");
|
|
836
835
|
try {
|
|
837
|
-
const res = await fetch(
|
|
836
|
+
const res = await fetch(baseurl2 + "/transcribe", {
|
|
838
837
|
method: "POST",
|
|
839
838
|
body: formData
|
|
840
839
|
});
|
|
@@ -934,7 +933,7 @@ const _sfc_main = {
|
|
|
934
933
|
};
|
|
935
934
|
}
|
|
936
935
|
};
|
|
937
|
-
const DigitalHuman = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
936
|
+
const DigitalHuman = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f9bef1a6"]]);
|
|
938
937
|
DigitalHuman.install = (app) => app.component("DigitalHuman", DigitalHuman);
|
|
939
938
|
const components = [DemoButton, DemoInput, DigitalHuman];
|
|
940
939
|
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-f9bef1a6]{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.digital-human canvas[data-v-f9bef1a6]{max-width:100%;max-height:100%}
|