@easyv/biz-components 0.0.13 → 0.0.15
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/hooks/index.d.ts +1 -0
- package/dist/hooks/useXunFeiSteamVoiceManager.d.ts +8 -0
- package/dist/hooks/useXunFeiSteamVoiceManager.es.js +15 -0
- package/dist/hooks/useXunFeiSteamVoiceManager.es.js.map +1 -0
- package/dist/index.es.js +10 -6
- package/dist/index.es.js.map +1 -1
- package/dist/utils/xunFeiVoice/RecorderManager/RecorderManager-draft.d.ts +38 -0
- package/dist/utils/xunFeiVoice/RecorderManager/RecorderManager.d.ts +47 -0
- package/dist/utils/xunFeiVoice/RecorderManager/RecorderManager.es.js +121 -0
- package/dist/utils/xunFeiVoice/RecorderManager/RecorderManager.es.js.map +1 -0
- package/dist/utils/xunFeiVoice/RecorderManager/index.d.ts +1 -0
- package/dist/utils/xunFeiVoice/RecorderManager/processor.worklet.d.ts +0 -0
- package/dist/utils/xunFeiVoice/RecorderManager/processor.worklet.es.js +379 -0
- package/dist/utils/xunFeiVoice/RecorderManager/processor.worklet.es.js.map +1 -0
- package/dist/utils/xunFeiVoice/{xunFeiStreamVoiceManager.d.ts → XunFeiStreamVoiceManager.d.ts} +15 -5
- package/dist/utils/xunFeiVoice/XunFeiStreamVoiceManager.es.js +165 -0
- package/dist/utils/xunFeiVoice/XunFeiStreamVoiceManager.es.js.map +1 -0
- package/dist/utils/xunFeiVoice/index.d.ts +2 -1
- package/dist/utils/xunFeiVoice/test/RecorderManager.cy.d.ts +1 -0
- package/dist/utils/xunFeiVoice/test/XunFeiVoiceManager.cy.d.ts +1 -0
- package/dist/utils/xunFeiVoice/types.d.ts +2 -2
- package/dist/utils/xunFeiVoice/utils.d.ts +0 -1
- package/dist/utils/xunFeiVoice/utils.es.js.map +1 -1
- package/package.json +4 -2
- package/dist/utils/xunFeiVoice/recordManager.es.js +0 -175
- package/dist/utils/xunFeiVoice/recordManager.es.js.map +0 -1
- package/dist/utils/xunFeiVoice/xunFeiStreamVoiceManager.es.js +0 -140
- package/dist/utils/xunFeiVoice/xunFeiStreamVoiceManager.es.js.map +0 -1
- /package/dist/utils/xunFeiVoice/{recordManager.d.ts → RecorderManager/RecordManager-origin.d.ts} +0 -0
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
var f = Object.defineProperty;
|
|
2
|
-
var S = (o, t, e) => t in o ? f(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
3
|
-
var r = (o, t, e) => S(o, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import d from "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/index.es.js";
|
|
5
|
-
import { RecorderManager as w } from "./recordManager.es.js";
|
|
6
|
-
import { toBase64 as m } from "./utils.es.js";
|
|
7
|
-
const p = "93b73e33", T = "ZGJhMzQ5ZTJlMDgyYmE1ZTFlZDlmYjg0", I = "fe43de7a071e3a32ec03c6f09fe7bedf";
|
|
8
|
-
function y() {
|
|
9
|
-
const o = "wss://iat-api.xfyun.cn/v2/iat", t = "iat-api.xfyun.cn", e = I, s = T, n = (/* @__PURE__ */ new Date()).toUTCString(), a = "hmac-sha256", i = "host date request-line", h = `host: ${t}
|
|
10
|
-
date: ${n}
|
|
11
|
-
GET /v2/iat HTTP/1.1`, c = d.HmacSHA256(h, s), g = d.enc.Base64.stringify(c), u = `api_key="${e}", algorithm="${a}", headers="${i}", signature="${g}"`, l = window.btoa(u);
|
|
12
|
-
return `${o}?authorization=${l}&date=${n}&host=${t}`;
|
|
13
|
-
}
|
|
14
|
-
class b {
|
|
15
|
-
constructor(t) {
|
|
16
|
-
r(this, "wsInstance", null);
|
|
17
|
-
r(this, "status", "UNDEFINED");
|
|
18
|
-
r(this, "recorder", null);
|
|
19
|
-
r(this, "isDestroy", !1);
|
|
20
|
-
r(this, "resultText", "");
|
|
21
|
-
r(this, "resultTextTemp", "");
|
|
22
|
-
this.config = t, this.initializeRecorder();
|
|
23
|
-
}
|
|
24
|
-
renderResult(t) {
|
|
25
|
-
var s, n;
|
|
26
|
-
const e = JSON.parse(t);
|
|
27
|
-
if (e.data && e.data.result) {
|
|
28
|
-
const a = e.data.result;
|
|
29
|
-
let i = "";
|
|
30
|
-
const h = a.ws;
|
|
31
|
-
for (let c = 0; c < h.length; c++)
|
|
32
|
-
i = i + h[c].cw[0].w;
|
|
33
|
-
a.pgs ? (a.pgs === "apd" && (this.resultText = this.resultTextTemp), this.resultTextTemp = this.resultText + i) : this.resultText = this.resultText + i;
|
|
34
|
-
}
|
|
35
|
-
if (e.code === 0 && e.data.status === 2) {
|
|
36
|
-
this.config.onMessage({ message: this.resultText, isLatest: !0 }), (s = this.wsInstance) == null || s.close();
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
e.code === 0 && e.data.status === 1 && this.config.onMessage({ message: this.resultText, isLatest: !1 }), e.code !== 0 && ((n = this.wsInstance) == null || n.close(), this.config.onError({ type: "message", message: t }));
|
|
40
|
-
}
|
|
41
|
-
setConfig(t) {
|
|
42
|
-
this.config = {
|
|
43
|
-
...this.config,
|
|
44
|
-
...t
|
|
45
|
-
}, this.initializeRecorder();
|
|
46
|
-
}
|
|
47
|
-
recordConfigSend() {
|
|
48
|
-
var e, s;
|
|
49
|
-
if (this.isDestroy)
|
|
50
|
-
return;
|
|
51
|
-
(e = this.recorder) == null || e.start({
|
|
52
|
-
sampleRate: 16e3,
|
|
53
|
-
frameSize: 1280
|
|
54
|
-
});
|
|
55
|
-
const t = {
|
|
56
|
-
common: {
|
|
57
|
-
app_id: p
|
|
58
|
-
},
|
|
59
|
-
business: {
|
|
60
|
-
language: "zh_cn",
|
|
61
|
-
domain: "iat",
|
|
62
|
-
accent: "mandarin",
|
|
63
|
-
vad_eos: 5e3,
|
|
64
|
-
dwa: "wpgs"
|
|
65
|
-
},
|
|
66
|
-
data: {
|
|
67
|
-
status: 0,
|
|
68
|
-
format: "audio/L16;rate=16000",
|
|
69
|
-
encoding: "raw"
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
(s = this.wsInstance) == null || s.send(JSON.stringify(t));
|
|
73
|
-
}
|
|
74
|
-
startNewSocket() {
|
|
75
|
-
const t = this.config.getWebSocketUrl ? this.config.getWebSocketUrl() : y();
|
|
76
|
-
if ("WebSocket" in window)
|
|
77
|
-
this.wsInstance = new WebSocket(t);
|
|
78
|
-
else {
|
|
79
|
-
this.config.onError({ type: "socketConnect", message: "浏览器不支持 WebSocket" });
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
console.log("%c 🐶 dog ==== startNewSocket:", "color: green; font-size: 16px;", this), this.wsInstance.onmessage = (e) => {
|
|
83
|
-
this.renderResult(e.data);
|
|
84
|
-
}, this.wsInstance.onerror = (e) => {
|
|
85
|
-
console.error("socket error:", e), this.changeBtnStatus("CLOSED");
|
|
86
|
-
}, this.wsInstance.onclose = () => {
|
|
87
|
-
this.changeBtnStatus("CLOSED"), this.config.onWsClose();
|
|
88
|
-
}, this.wsInstance.onopen = () => {
|
|
89
|
-
this.changeBtnStatus("OPEN"), this.recordConfigSend();
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
recordProcess({ isLastFrame: t, frameBuffer: e }) {
|
|
93
|
-
this.isDestroy || this.wsInstance && this.wsInstance.readyState === this.wsInstance.OPEN && (this.wsInstance.send(
|
|
94
|
-
JSON.stringify({
|
|
95
|
-
data: {
|
|
96
|
-
status: t ? 2 : 1,
|
|
97
|
-
format: "audio/L16;rate=16000",
|
|
98
|
-
encoding: "raw",
|
|
99
|
-
audio: m(e)
|
|
100
|
-
}
|
|
101
|
-
})
|
|
102
|
-
), t && this.changeBtnStatus("CLOSING"));
|
|
103
|
-
}
|
|
104
|
-
initializeRecorder() {
|
|
105
|
-
this.recorder = new w(
|
|
106
|
-
this.config.processWorkJsPath
|
|
107
|
-
), this.recorder && (this.recorder.onFrameRecorded = (t) => {
|
|
108
|
-
this.recordProcess(t);
|
|
109
|
-
}, this.recorder.onStop = () => {
|
|
110
|
-
console.log("%c 🐶 dog ==== record stop:", "color: green; font-size: 16px;");
|
|
111
|
-
}, this.recorder.onStart = () => {
|
|
112
|
-
this.changeBtnStatus("OPEN");
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
changeBtnStatus(t) {
|
|
116
|
-
this.status = t;
|
|
117
|
-
}
|
|
118
|
-
startRecord() {
|
|
119
|
-
this.isDestroy || (this.resultText = "", this.resultTextTemp = "", this.startNewSocket());
|
|
120
|
-
}
|
|
121
|
-
async stopRecord() {
|
|
122
|
-
setTimeout(() => {
|
|
123
|
-
var t;
|
|
124
|
-
(t = this.recorder) == null || t.stop();
|
|
125
|
-
}, 100), setTimeout(() => {
|
|
126
|
-
var t, e;
|
|
127
|
-
((t = this.wsInstance) == null ? void 0 : t.readyState) === WebSocket.OPEN && ((e = this.wsInstance) == null || e.close());
|
|
128
|
-
}, 5e3);
|
|
129
|
-
}
|
|
130
|
-
destroy() {
|
|
131
|
-
this.isDestroy = !0, setTimeout(() => {
|
|
132
|
-
var t, e, s;
|
|
133
|
-
((t = this.wsInstance) == null ? void 0 : t.readyState) === WebSocket.OPEN && ((e = this.wsInstance) == null || e.close()), (s = this.recorder) == null || s.stop();
|
|
134
|
-
}, 1e3);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
export {
|
|
138
|
-
b as XunFeiStreamVoiceManager
|
|
139
|
-
};
|
|
140
|
-
//# sourceMappingURL=xunFeiStreamVoiceManager.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xunFeiStreamVoiceManager.es.js","sources":["../../../src/utils/xunFeiVoice/xunFeiStreamVoiceManager.ts"],"sourcesContent":["import CryptoJS from 'crypto-js';\nimport { RecorderManager } from './recordManager';\nimport type { OnRecordProcessParams, RecorderManagerClass } from './types';\nimport { toBase64 } from './utils';\n\nexport interface XunFeiStreamVoiceManagerConfig {\n onError: (errInfo: { type: 'socketConnect' | 'message'; message: string }) => void;\n /** ws 收到消息的回调\n * @param info.message 消息内容\n * @param info.isLatest 是否是最后一条消息。 isLatest 为 true 时, message 为完整的语音识别结果。\n */\n onMessage: (info: { message: string; isLatest?: boolean }) => void;\n /** webSocket 关闭的回调。\n * 每次录音都会新建一个 webSocket 连接。录音结束后关闭 webSocket\n */\n onWsClose: () => void;\n /** 获取讯飞提供的 processor.worker.js 和 processor.worklet.js 的路径。\n * 填写这两个文件的父路径就好。 如 a/b/processor.worker.js 则填写 a/b。\n * 可以是oss地址,也可以是项目中的文件路径,智能通过url请求,能得到上面两个js文件即可。\n * 目前已上传到 oss://{assetsBaseUrl}/announcement/easyvadmin/xun-fei-voice/ 目录下。\n */\n processWorkJsPath: string;\n // 获取 websocket url 的方法\n /**\n * 获取链接讯飞语音识别地址的 url\n * @returns websocket url。详情查看讯飞文档里的鉴权方法:https://www.xfyun.cn/doc/asr/voicedictation/API.html#%E6%8E%A5%E5%8F%A3%E8%B0%83%E7%94%A8%E6%B5%81%E7%A8%8B\n */\n getWebSocketUrl?: () => string;\n}\ntype SocketStatus = 'UNDEFINED' | 'CONNECTING' | 'OPEN' | 'CLOSING' | 'CLOSED';\n\n/** 现在前端mock,后续移到接口下发 */\nconst APPID = '93b73e33';\nconst API_SECRET = 'ZGJhMzQ5ZTJlMDgyYmE1ZTFlZDlmYjg0';\nconst API_KEY = 'fe43de7a071e3a32ec03c6f09fe7bedf';\n/**\n * 获取websocket url\n * 该接口需要后端提供,这里为了方便前端处理\n */\nfunction getWebSocketUrl() {\n // 请求地址根据语种不同变化\n const url = 'wss://iat-api.xfyun.cn/v2/iat';\n const host = 'iat-api.xfyun.cn';\n const apiKey = API_KEY;\n const apiSecret = API_SECRET;\n const date = new Date().toUTCString();\n const algorithm = 'hmac-sha256';\n const headers = 'host date request-line';\n const signatureOrigin = `host: ${host}\\ndate: ${date}\\nGET /v2/iat HTTP/1.1`;\n const signatureSha = CryptoJS.HmacSHA256(signatureOrigin, apiSecret);\n const signature = CryptoJS.enc.Base64.stringify(signatureSha);\n const authorizationOrigin = `api_key=\"${apiKey}\", algorithm=\"${algorithm}\", headers=\"${headers}\", signature=\"${signature}\"`;\n const authorization = window.btoa(authorizationOrigin);\n return `${url}?authorization=${authorization}&date=${date}&host=${host}`;\n}\n\n/**\n * 讯飞流式语音识别\n */\nexport class XunFeiStreamVoiceManager {\n wsInstance: WebSocket | null = null;\n status: SocketStatus = 'UNDEFINED';\n recorder: RecorderManagerClass | null = null;\n isDestroy = false;\n resultText = '';\n resultTextTemp = '';\n\n constructor(public config: XunFeiStreamVoiceManagerConfig) {\n this.initializeRecorder();\n }\n renderResult(resultData: string) {\n // 识别结束\n const jsonData = JSON.parse(resultData);\n if (jsonData.data && jsonData.data.result) {\n const data = jsonData.data.result;\n let str = '';\n const ws = data.ws;\n for (let i = 0; i < ws.length; i++) {\n str = str + ws[i].cw[0].w;\n }\n // 开启 wpgs 会有此字段(前提:在控制台开通动态修正功能)\n // 取值为 \"apd\"时表示该片结果是追加到前面的最终结果;取值为\"rpl\" 时表示替换前面的部分结果,替换范围为rg字段\n if (data.pgs) {\n if (data.pgs === 'apd') {\n // 将resultTextTemp同步给resultText\n this.resultText = this.resultTextTemp;\n }\n // 将结果存储在resultTextTemp中\n this.resultTextTemp = this.resultText + str;\n } else {\n this.resultText = this.resultText + str;\n }\n }\n /**\n * 识别结果是否结束标识:\n * 0:识别的第一块结果。\n * 1:识别中间结果。\n * 2:识别最后一块结果\n */\n if (jsonData.code === 0 && jsonData.data.status === 2) {\n this.config.onMessage({ message: this.resultText, isLatest: true });\n this.wsInstance?.close();\n return;\n }\n if (jsonData.code === 0 && jsonData.data.status === 1) {\n this.config.onMessage({ message: this.resultText, isLatest: false });\n }\n // code 不为0时表示出错\n if (jsonData.code !== 0) {\n this.wsInstance?.close();\n this.config.onError({ type: 'message', message: resultData });\n }\n }\n\n setConfig(newConfig: XunFeiStreamVoiceManagerConfig) {\n this.config = {\n ...this.config,\n ...newConfig,\n };\n this.initializeRecorder();\n }\n\n recordConfigSend() {\n if (this.isDestroy) {\n return;\n }\n // 开始录音\n this.recorder?.start({\n sampleRate: 16000,\n frameSize: 1280,\n });\n const params = {\n common: {\n app_id: APPID,\n },\n business: {\n language: 'zh_cn',\n domain: 'iat',\n accent: 'mandarin',\n vad_eos: 5000,\n dwa: 'wpgs',\n },\n data: {\n status: 0,\n format: 'audio/L16;rate=16000',\n encoding: 'raw',\n },\n };\n this.wsInstance?.send(JSON.stringify(params));\n }\n\n startNewSocket() {\n const websocketUrl = this.config.getWebSocketUrl\n ? this.config.getWebSocketUrl()\n : getWebSocketUrl();\n if ('WebSocket' in window) {\n this.wsInstance = new WebSocket(websocketUrl);\n } else {\n this.config.onError({ type: 'socketConnect', message: '浏览器不支持 WebSocket' });\n return;\n }\n console.log('%c 🐶 dog ==== startNewSocket:', 'color: green; font-size: 16px;', this);\n this.wsInstance.onmessage = (e) => {\n // 处理返回数据\n this.renderResult(e.data);\n };\n this.wsInstance.onerror = (e) => {\n console.error('socket error:', e);\n this.changeBtnStatus('CLOSED');\n };\n this.wsInstance.onclose = () => {\n this.changeBtnStatus('CLOSED');\n this.config.onWsClose();\n };\n this.wsInstance.onopen = () => {\n this.changeBtnStatus('OPEN');\n this.recordConfigSend();\n };\n }\n\n recordProcess({ isLastFrame, frameBuffer }: OnRecordProcessParams) {\n if (this.isDestroy) {\n return;\n }\n if (!this.wsInstance) {\n return;\n }\n if (this.wsInstance.readyState === this.wsInstance.OPEN) {\n this.wsInstance.send(\n JSON.stringify({\n data: {\n status: isLastFrame ? 2 : 1,\n format: 'audio/L16;rate=16000',\n encoding: 'raw',\n audio: toBase64(frameBuffer),\n },\n }),\n );\n if (isLastFrame) {\n this.changeBtnStatus('CLOSING');\n }\n }\n }\n\n initializeRecorder() {\n this.recorder = new RecorderManager(\n this.config.processWorkJsPath,\n ) as unknown as RecorderManagerClass;\n if (!this.recorder) {\n return;\n }\n this.recorder.onFrameRecorded = (data: OnRecordProcessParams) => {\n this.recordProcess(data);\n };\n this.recorder.onStop = () => {\n // do nothing\n console.log('%c 🐶 dog ==== record stop:', 'color: green; font-size: 16px;');\n };\n this.recorder.onStart = () => {\n this.changeBtnStatus('OPEN');\n };\n }\n\n changeBtnStatus(status: SocketStatus) {\n this.status = status;\n }\n\n startRecord() {\n if (this.isDestroy) {\n return;\n }\n this.resultText = '';\n this.resultTextTemp = '';\n this.startNewSocket();\n }\n\n async stopRecord() {\n // 结束录音,为了防止刚开始就关闭,所以加个定时器\n setTimeout(() => {\n this.recorder?.stop();\n }, 100);\n // 这里为了防止ws没有返回结束的数据,导致 ws 一直没关,所以加个定时器,5s 后手动关闭\n setTimeout(() => {\n if (this.wsInstance?.readyState === WebSocket.OPEN) {\n this.wsInstance?.close();\n }\n }, 5000);\n }\n destroy() {\n this.isDestroy = true;\n setTimeout(() => {\n if (this.wsInstance?.readyState === WebSocket.OPEN) {\n this.wsInstance?.close();\n }\n this.recorder?.stop();\n }, 1000);\n }\n}\n"],"names":["APPID","API_SECRET","API_KEY","getWebSocketUrl","url","host","apiKey","apiSecret","date","algorithm","headers","signatureOrigin","signatureSha","CryptoJS","signature","authorizationOrigin","authorization","XunFeiStreamVoiceManager","config","__publicField","resultData","jsonData","data","str","ws","i","_a","_b","newConfig","params","websocketUrl","isLastFrame","frameBuffer","toBase64","RecorderManager","status","_c"],"mappings":";;;;;;AAgCA,MAAMA,IAAQ,YACRC,IAAa,oCACbC,IAAU;AAKhB,SAASC,IAAkB;AAEzB,QAAMC,IAAM,iCACNC,IAAO,oBACPC,IAASJ,GACTK,IAAYN,GACZO,KAAO,oBAAI,KAAK,GAAE,YAAY,GAC9BC,IAAY,eACZC,IAAU,0BACVC,IAAkB,SAASN,CAAI;AAAA,QAAWG,CAAI;AAAA,uBAC9CI,IAAeC,EAAS,WAAWF,GAAiBJ,CAAS,GAC7DO,IAAYD,EAAS,IAAI,OAAO,UAAUD,CAAY,GACtDG,IAAsB,YAAYT,CAAM,iBAAiBG,CAAS,eAAeC,CA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