fmode-ng 0.0.83 → 0.0.85

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.
Files changed (176) hide show
  1. package/esm2022/lib/aigc/avatar/comp-avatar-talk/comp-avatar-talk.component.mjs +1 -1
  2. package/esm2022/lib/aigc/avatar/modal-chat-voice-input/modal-chat-voice-input.component.mjs +1 -1
  3. package/esm2022/lib/aigc/chat/chat-header-area/comp-header-area.component.mjs +1 -1
  4. package/esm2022/lib/aigc/chat/chat-message-card/comp-message-card.component.mjs +1 -1
  5. package/esm2022/lib/aigc/chat/chat-modal-input/modal-audio-message/modal-audio-message.component.mjs +1 -1
  6. package/esm2022/lib/aigc/chat/chat-modal-input/modal-input.component.mjs +1 -1
  7. package/esm2022/lib/aigc/chat/chat-panel/chat-panel.component.mjs +1 -1
  8. package/esm2022/lib/aigc/index.mjs +1 -1
  9. package/esm2022/lib/aigc/story/fm-office-viewer/fm-office-viewer.component.mjs +10 -0
  10. package/esm2022/lib/aigc/story/fm-story-card/fm-story-card.component.mjs +10 -0
  11. package/esm2022/lib/aigc/story/fm-story-list/fm-story-list.component.mjs +10 -0
  12. package/esm2022/lib/aigc/story/fm-story-list/story-preview.mjs +10 -0
  13. package/esm2022/lib/aigc/story/fm-story-loader/fm-story-loader.component.mjs +10 -0
  14. package/esm2022/lib/aigc/story/fm-story-splitter/fm-story-splitter.component.mjs +10 -0
  15. package/esm2022/lib/aigc/story/index.mjs +10 -0
  16. package/esm2022/lib/aigc/story/modal-chat-story/comp-chat-story-json/comp-chat-story-json.component.mjs +10 -0
  17. package/esm2022/lib/aigc/story/modal-chat-story/comp-diary-story/comp-diary-story.component.mjs +10 -0
  18. package/esm2022/lib/aigc/story/modal-chat-story/modal-chat-story.component.mjs +10 -0
  19. package/esm2022/lib/aigc/story/story.service.mjs +10 -0
  20. package/esm2022/lib/aigc/voice/fmode-voice.service.mjs +1 -1
  21. package/esm2022/lib/aigc/voice/index.mjs +1 -1
  22. package/esm2022/lib/aigc/voice/{audio.player.mjs → lib/audio/audio.player.mjs} +2 -2
  23. package/esm2022/lib/aigc/voice/lib/audio/audio.streamer.mjs +10 -0
  24. package/esm2022/lib/aigc/voice/lib/audio/streamer.microsoft.mjs +10 -0
  25. package/esm2022/lib/aigc/voice/lib/audio/streamer.pcm.mjs +10 -0
  26. package/esm2022/lib/aigc/voice/tts/fmode-tts-class.mjs +1 -1
  27. package/esm2022/lib/aigc/voice/tts/index.mjs +1 -1
  28. package/esm2022/lib/aigc/voice/tts/int-tts-provider.mjs +10 -0
  29. package/esm2022/lib/aigc/voice/tts/provider-doubao.mjs +10 -0
  30. package/esm2022/lib/aigc/voice/tts/provider-microsoft.mjs +10 -0
  31. package/esm2022/lib/core/agent/chat/completion/fmode-completion.mjs +1 -1
  32. package/esm2022/lib/core/agent/chat/completion/int-gpt-chat-options.mjs +10 -0
  33. package/esm2022/lib/core/agent/chat/fmode-chat.mjs +1 -1
  34. package/esm2022/lib/core/agent/chat/index.mjs +1 -1
  35. package/esm2022/lib/core/agent/prompt/agent.prompt.mjs +1 -1
  36. package/esm2022/lib/core/index.mjs +10 -0
  37. package/esm2022/lib/core/voice/index.mjs +10 -0
  38. package/esm2022/lib/icon/filetype/audio.svg.mjs +10 -0
  39. package/esm2022/lib/icon/filetype/avatar.svg.mjs +10 -0
  40. package/esm2022/lib/icon/filetype/chat.svg.mjs +10 -0
  41. package/esm2022/lib/icon/filetype/docx.svg.mjs +10 -0
  42. package/esm2022/lib/icon/filetype/file.svg.mjs +10 -0
  43. package/esm2022/lib/icon/filetype/filetype.pipe.mjs +10 -0
  44. package/esm2022/lib/icon/filetype/index.mjs +10 -0
  45. package/esm2022/lib/icon/filetype/md.svg.mjs +10 -0
  46. package/esm2022/lib/icon/filetype/pdf.svg.mjs +10 -0
  47. package/esm2022/lib/icon/filetype/pptx.svg.mjs +10 -0
  48. package/esm2022/lib/icon/filetype/svgtoblob.mjs +10 -0
  49. package/esm2022/lib/icon/filetype/video.svg.mjs +10 -0
  50. package/esm2022/lib/icon/filetype/xlsx.svg.mjs +10 -0
  51. package/esm2022/lib/icon/index.mjs +10 -0
  52. package/esm2022/lib/person/comp-person-gender-icon/comp-person-gender-icon.component.mjs +10 -0
  53. package/esm2022/lib/person/comp-person-item/comp-person-item.component.mjs +10 -0
  54. package/esm2022/lib/person/comp-person-story/comp-person-story.component.mjs +10 -0
  55. package/esm2022/lib/person/edit-upload/edit-upload.component.mjs +10 -0
  56. package/esm2022/lib/person/edit-upload/edit-upload.module.mjs +10 -0
  57. package/esm2022/lib/person/index.mjs +10 -0
  58. package/esm2022/lib/person/modal-person-select/modal-person-select.component.mjs +10 -0
  59. package/esm2022/lib/person/modal-user-verify/secret-text.pipe.mjs +10 -0
  60. package/esm2022/lib/person/modal-user-verify/user-verify.component.mjs +10 -0
  61. package/esm2022/lib/person/person-detail/person-detail.component.mjs +10 -0
  62. package/esm2022/lib/person/person.service.mjs +10 -0
  63. package/esm2022/lib/text/fm-article-editor/article-editor-topbar/article-editor-topbar.component.mjs +10 -0
  64. package/esm2022/lib/text/fm-article-editor/article.service.mjs +10 -0
  65. package/esm2022/lib/text/fm-article-editor/comp-upload-book-banners/comp-upload-book-banners.component.mjs +10 -0
  66. package/esm2022/lib/text/fm-article-editor/draft.service.mjs +10 -0
  67. package/esm2022/lib/text/fm-article-editor/fm-article-aitool/fm-article-aitool.component.mjs +10 -0
  68. package/esm2022/lib/text/fm-article-editor/fm-article-draft/fm-article-draft.component.mjs +10 -0
  69. package/esm2022/lib/text/fm-article-editor/fm-article-editor.component.mjs +10 -0
  70. package/esm2022/lib/text/fm-article-editor/fm-article-outline/fm-article-outline.component.mjs +10 -0
  71. package/esm2022/lib/text/fm-article-editor/fm-article-outline-leftitem/fm-article-outline-leftitem.component.mjs +10 -0
  72. package/esm2022/lib/text/fm-article-editor/fm-article-preview/fm-article-preview.component.mjs +10 -0
  73. package/esm2022/lib/text/fm-article-editor/fm-article-write-options/fm-article-write-options.component.mjs +10 -0
  74. package/esm2022/lib/text/fm-article-editor/outline-count.pipe.mjs +10 -0
  75. package/esm2022/lib/text/fm-article-editor/prompt/prompt-insertion-article.mjs +10 -0
  76. package/esm2022/lib/text/fm-article-editor/task-article-generation.mjs +10 -0
  77. package/esm2022/lib/text/fm-article-editor/tasks/task-article-draft-create.mjs +10 -0
  78. package/esm2022/lib/text/fm-article-editor/tasks/task-article-outline-edit.mjs +10 -0
  79. package/esm2022/lib/text/fm-article-editor/tasks/task-article-outline.mjs +10 -0
  80. package/esm2022/lib/text/fm-article-editor/tasks/task-article-preview.mjs +10 -0
  81. package/esm2022/lib/text/fm-article-editor/tasks/task-article-writing-options.mjs +10 -0
  82. package/esm2022/lib/text/fm-article-editor/tasks/task-document-select.mjs +10 -0
  83. package/esm2022/lib/text/fm-text-quill/fm-text-quill.component.mjs +10 -0
  84. package/esm2022/lib/text/index.mjs +10 -0
  85. package/esm2022/public-api.mjs +1 -1
  86. package/fesm2022/fmode-ng.mjs +1 -1
  87. package/fesm2022/fmode-ng.mjs.map +1 -1
  88. package/lib/aigc/avatar/comp-avatar-talk/comp-avatar-talk.component.d.ts +5 -3
  89. package/lib/aigc/avatar/modal-chat-voice-input/modal-chat-voice-input.component.d.ts +4 -2
  90. package/lib/aigc/chat/chat-message-card/comp-message-card.component.d.ts +6 -1
  91. package/lib/aigc/chat/chat-modal-input/modal-audio-message/modal-audio-message.component.d.ts +6 -3
  92. package/lib/aigc/chat/chat-modal-input/modal-input.component.d.ts +5 -1
  93. package/lib/aigc/index.d.ts +1 -0
  94. package/lib/aigc/story/fm-office-viewer/fm-office-viewer.component.d.ts +23 -0
  95. package/lib/aigc/story/fm-story-card/fm-story-card.component.d.ts +26 -0
  96. package/lib/aigc/story/fm-story-list/fm-story-list.component.d.ts +71 -0
  97. package/lib/aigc/story/fm-story-list/story-preview.d.ts +20 -0
  98. package/lib/aigc/story/fm-story-loader/fm-story-loader.component.d.ts +38 -0
  99. package/lib/aigc/story/fm-story-splitter/fm-story-splitter.component.d.ts +13 -0
  100. package/lib/aigc/story/index.d.ts +5 -0
  101. package/lib/aigc/story/modal-chat-story/comp-chat-story-json/comp-chat-story-json.component.d.ts +14 -0
  102. package/lib/aigc/story/modal-chat-story/comp-diary-story/comp-diary-story.component.d.ts +29 -0
  103. package/lib/aigc/story/modal-chat-story/modal-chat-story.component.d.ts +44 -0
  104. package/lib/aigc/story/story.service.d.ts +12 -0
  105. package/lib/aigc/voice/fmode-voice.service.d.ts +3 -6
  106. package/lib/aigc/voice/index.d.ts +3 -2
  107. package/lib/aigc/voice/lib/audio/audio.streamer.d.ts +33 -0
  108. package/lib/aigc/voice/{stream.player.d.ts → lib/audio/streamer.microsoft.d.ts} +2 -2
  109. package/lib/aigc/voice/lib/audio/streamer.pcm.d.ts +45 -0
  110. package/lib/aigc/voice/tts/fmode-tts-class.d.ts +17 -37
  111. package/lib/aigc/voice/tts/index.d.ts +3 -0
  112. package/lib/aigc/voice/tts/int-tts-provider.d.ts +35 -0
  113. package/lib/aigc/voice/tts/provider-doubao.d.ts +43 -0
  114. package/lib/aigc/voice/tts/provider-microsoft.d.ts +21 -0
  115. package/lib/core/agent/chat/completion/fmode-completion.d.ts +2 -1
  116. package/lib/core/agent/chat/completion/int-gpt-chat-options.d.ts +72 -0
  117. package/lib/core/agent/chat/index.d.ts +1 -1
  118. package/lib/core/agent/chat/interface.d.ts +3 -0
  119. package/lib/core/agent/prompt/agent.prompt.d.ts +2 -1
  120. package/lib/core/index.d.ts +2 -0
  121. package/lib/core/voice/index.d.ts +1 -0
  122. package/lib/icon/filetype/audio.svg.d.ts +1 -0
  123. package/lib/icon/filetype/avatar.svg.d.ts +1 -0
  124. package/lib/icon/filetype/chat.svg.d.ts +1 -0
  125. package/lib/icon/filetype/docx.svg.d.ts +1 -0
  126. package/lib/icon/filetype/file.svg.d.ts +1 -0
  127. package/lib/icon/filetype/filetype.pipe.d.ts +8 -0
  128. package/lib/icon/filetype/index.d.ts +11 -0
  129. package/lib/icon/filetype/md.svg.d.ts +1 -0
  130. package/lib/icon/filetype/pdf.svg.d.ts +1 -0
  131. package/lib/icon/filetype/pptx.svg.d.ts +1 -0
  132. package/lib/icon/filetype/svgtoblob.d.ts +1 -0
  133. package/lib/icon/filetype/video.svg.d.ts +1 -0
  134. package/lib/icon/filetype/xlsx.svg.d.ts +1 -0
  135. package/lib/icon/index.d.ts +1 -0
  136. package/lib/person/comp-person-gender-icon/comp-person-gender-icon.component.d.ts +20 -0
  137. package/lib/person/comp-person-item/comp-person-item.component.d.ts +10 -0
  138. package/lib/person/comp-person-story/comp-person-story.component.d.ts +67 -0
  139. package/lib/person/edit-upload/edit-upload.component.d.ts +81 -0
  140. package/lib/person/edit-upload/edit-upload.module.d.ts +11 -0
  141. package/lib/person/index.d.ts +4 -0
  142. package/lib/person/modal-person-select/modal-person-select.component.d.ts +25 -0
  143. package/lib/person/modal-user-verify/secret-text.pipe.d.ts +7 -0
  144. package/lib/person/modal-user-verify/user-verify.component.d.ts +88 -0
  145. package/lib/person/person-detail/person-detail.component.d.ts +41 -0
  146. package/lib/person/person.service.d.ts +33 -0
  147. package/lib/text/fm-article-editor/article-editor-topbar/article-editor-topbar.component.d.ts +23 -0
  148. package/lib/text/fm-article-editor/article.service.d.ts +41 -0
  149. package/lib/text/fm-article-editor/comp-upload-book-banners/comp-upload-book-banners.component.d.ts +19 -0
  150. package/lib/text/fm-article-editor/draft.service.d.ts +33 -0
  151. package/lib/text/fm-article-editor/fm-article-aitool/fm-article-aitool.component.d.ts +73 -0
  152. package/lib/text/fm-article-editor/fm-article-draft/fm-article-draft.component.d.ts +81 -0
  153. package/lib/text/fm-article-editor/fm-article-editor.component.d.ts +90 -0
  154. package/lib/text/fm-article-editor/fm-article-outline/fm-article-outline.component.d.ts +36 -0
  155. package/lib/text/fm-article-editor/fm-article-outline-leftitem/fm-article-outline-leftitem.component.d.ts +12 -0
  156. package/lib/text/fm-article-editor/fm-article-preview/fm-article-preview.component.d.ts +55 -0
  157. package/lib/text/fm-article-editor/fm-article-write-options/fm-article-write-options.component.d.ts +31 -0
  158. package/lib/text/fm-article-editor/outline-count.pipe.d.ts +7 -0
  159. package/lib/text/fm-article-editor/prompt/prompt-insertion-article.d.ts +6 -0
  160. package/lib/text/fm-article-editor/task-article-generation.d.ts +23 -0
  161. package/lib/text/fm-article-editor/tasks/task-article-draft-create.d.ts +18 -0
  162. package/lib/text/fm-article-editor/tasks/task-article-outline-edit.d.ts +14 -0
  163. package/lib/text/fm-article-editor/tasks/task-article-outline.d.ts +19 -0
  164. package/lib/text/fm-article-editor/tasks/task-article-preview.d.ts +7 -0
  165. package/lib/text/fm-article-editor/tasks/task-article-writing-options.d.ts +14 -0
  166. package/lib/text/fm-article-editor/tasks/task-document-select.d.ts +14 -0
  167. package/lib/text/fm-text-quill/fm-text-quill.component.d.ts +39 -0
  168. package/lib/text/index.d.ts +3 -0
  169. package/package.json +6 -2
  170. package/public-api.d.ts +4 -0
  171. package/esm2022/lib/aigc/voice/lib/recorder/engine-pcm.mjs +0 -10
  172. package/esm2022/lib/aigc/voice/lib/recorder/engine-wav.mjs +0 -10
  173. package/esm2022/lib/aigc/voice/stream.player.mjs +0 -10
  174. package/lib/aigc/voice/lib/recorder/engine-pcm.d.ts +0 -1
  175. package/lib/aigc/voice/lib/recorder/engine-wav.d.ts +0 -1
  176. /package/lib/aigc/voice/{audio.player.d.ts → lib/audio/audio.player.d.ts} +0 -0
@@ -0,0 +1,14 @@
1
+ import { AgentTaskStep } from "../../../core";
2
+ import Parse from "parse";
3
+ import { MatDialog } from "@angular/material/dialog";
4
+ /**
5
+ * 任务:选择相关知识文档
6
+ * @param sharedData.storyList 选定的故事列表
7
+ * @param sharedData.documentList 选定故事文件的分割文档
8
+ */
9
+ export declare function TaskDocumentSelect(options: {
10
+ person?: Parse.Object;
11
+ book?: Parse.Object;
12
+ shareData: any;
13
+ dialog: MatDialog;
14
+ }): AgentTaskStep;
@@ -0,0 +1,39 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { EventEmitter, ElementRef, ChangeDetectorRef } from '@angular/core';
3
+ import Quill, { Range } from 'quill';
4
+ import { Subscription } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ interface QuillChange {
7
+ quill: Quill | undefined;
8
+ name: string | undefined;
9
+ range: Range | undefined;
10
+ text: string | undefined;
11
+ }
12
+ export declare class FmTextQuillComponent implements OnInit {
13
+ private cdRef;
14
+ editorComp: ElementRef | undefined;
15
+ quill: Quill | undefined;
16
+ readOnly: boolean;
17
+ content: string | undefined;
18
+ theme: string;
19
+ toolbar: Array<any>;
20
+ constructor(cdRef: ChangeDetectorRef);
21
+ ngOnInit(): void;
22
+ /**工具条:补充AI按钮事件 */
23
+ onAIClick: EventEmitter<QuillChange>;
24
+ /**文章内容:判定是否更改 */
25
+ oldContent: string | undefined;
26
+ contentChanged: boolean;
27
+ onContentChange: EventEmitter<string>;
28
+ /**段落内容:选中及润色 */
29
+ selectText: string;
30
+ selectRange: Range | undefined;
31
+ optimizeText: string;
32
+ isOptimizing: boolean;
33
+ optimize$: Subscription | undefined;
34
+ onSelectChange: EventEmitter<QuillChange>;
35
+ initQuillEditor(): void;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<FmTextQuillComponent, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<FmTextQuillComponent, "fm-text-quill", never, { "readOnly": { "alias": "readOnly"; "required": false; }; "content": { "alias": "content"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "toolbar": { "alias": "toolbar"; "required": false; }; }, { "onAIClick": "onAIClick"; "onContentChange": "onContentChange"; "onSelectChange": "onSelectChange"; }, never, never, true, never>;
38
+ }
39
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from "./fm-text-quill/fm-text-quill.component";
2
+ export * from "./fm-article-editor/fm-article-editor.component";
3
+ export * from "./fm-article-editor/article.service";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmode-ng",
3
- "version": "0.0.83",
3
+ "version": "0.0.85",
4
4
  "author": "未来全栈",
5
5
  "license": "COPYRIGHT © 未来飞马 未来全栈 www.fmode.cn All RIGHTS RESERVED",
6
6
  "peerDependencies": {
@@ -44,7 +44,11 @@
44
44
  "@capacitor/filesystem": "^5.0.0 || ^6.0.0 || ^7.0.0",
45
45
  "@capacitor/camera": "^5.0.0 || ^6.0.0 || ^7.0.0",
46
46
  "@awesome-cordova-plugins/media-capture": "^5.0.0 || ^6.0.0 || ^7.0.0",
47
- "@wecom/jssdk": "^2.2.4"
47
+ "@wecom/jssdk": "^2.2.4",
48
+ "quill": "^2.0.0",
49
+ "swiper": "^10.0.0 || ^11.0.0",
50
+ "pako": "^2.0.0",
51
+ "uuid": "^11.0.0"
48
52
  },
49
53
  "dependencies": {
50
54
  "tslib": "^2.3.0"
package/public-api.d.ts CHANGED
@@ -1,8 +1,12 @@
1
+ export * from './lib/core';
1
2
  export * from './lib/aigc';
2
3
  export * from './lib/map';
3
4
  export * from './lib/storage';
4
5
  export * from './lib/platform';
5
6
  export * from './lib/social';
6
7
  export * from './lib/video';
8
+ export * from './lib/person';
9
+ export * from './lib/text';
10
+ export * from './lib/icon';
7
11
  export * from "./lib/nova-cloud";
8
12
  export * from './lib/user';
@@ -1,10 +0,0 @@
1
-
2
- /**
3
- * @copyright © 未来飞马 © 未来全栈 www.fmode.cn
4
- * 版权所有 © 未来飞马 © 江西脑控科技有限公司 Copyright © Fmode Technology Co., Ltd.
5
- * 保留所有权利 All Rights Reserved.
6
- * /home/ryan/workspace/nova/nova-admin/dist/fmode-ng/esm2022/lib/aigc/voice/lib/recorder/engine-pcm.mjs
7
- */
8
- import Recorder from"recorder-core";!function(){"use strict";Recorder.prototype.enc_pcm={stable:!0,fast:!0,testmsg:"pcm为未封装的原始音频数据,pcm音频文件无法直接播放,可用Recorder.pcm2wav()转码成wav播放;支持位数8位、16位(填在比特率里面),采样率取值无限制"},Recorder.prototype.pcm=function(e,r,t){var a=this.set,o=e.length,n=8==a.bitRate?8:16,c=new ArrayBuffer(o*(n/8)),p=new DataView(c),s=0;if(8==n)for(var l=0;l<o;l++,s++){var i=128+(e[l]>>8);p.setInt8(s,i)}else for(l=0;l<o;l++,s+=2)p.setInt16(s,e[l],!0);r(new Blob([p.buffer],{type:"audio/pcm"}))},Recorder.pcm2wav=function(e,r,t){e.slice&&null!=e.type&&(e={blob:e});var a=e.sampleRate||16e3,o=e.bitRate||16;if(e.sampleRate&&e.bitRate||console.warn("pcm2wav必须提供sampleRate和bitRate"),Recorder.prototype.wav){var n=new FileReader;n.onloadend=function(){var e;let c=n.result;if(8==o){var p=new Uint8Array(c);e=new Int16Array(p.length);for(var s=0;s<p.length;s++)e[s]=p[s]-128<<8}else e=new Int16Array(c);Recorder({type:"wav",sampleRate:a,bitRate:o}).mock(e,a).stop((function(e,t){r(e,t)}),t)},n.readAsArrayBuffer(e.blob)}else t("pcm2wav必须先加载wav编码器wav.js")}}();
9
- var MODULE_PATH_NEED = `6K+l5paH5Lu25piv5pys6aG555uu55qE5LiA6YOo5YiGIFRoaXMgZmlsZSBpcyBwYXJ0IG9mIHRoZSBDb21wb25lbnRzIGluIEZtb2RlIEluYy4KICAgIOeJiOadg+aJgOaciSDCqSDmnKrmnaXpo57pqawgwqkg5rGf6KW/6ISR5o6n56eR5oqA5pyJ6ZmQ5YWs5Y+4IENvcHlyaWdodCDCqSBGbW9kZSBUZWNobm9sb2d5IENvLiwgTHRkLgogICAg5L+d55WZ5omA5pyJ5p2D5YipIEFsbCBSaWdodHMgUmVzZXJ2ZWQuCiAgICDkuKXnpoHlnKjmnKrnu4/mjojmnYPnmoTmg4XlhrXkuIvvvIzpgJrov4fku7vkvZXlqpLku4vlpI3liLbmraTmlofku7YgVW5hdXRob3JpemVkIGNvcHlpbmcgb2YgdGhpcyBmaWxlLCB2aWEgYW55IG1lZGl1bSBpcyBzdHJpY3RseSBwcm9oaWJpdGVkCiAgICDor6Xmlofku7bmmK/kuJPmnInnmoTmnLrlr4bmlofku7YgUHJvcHJpZXRhcnkgYW5kIGNvbmZpZGVudGlhbAogICAKICAgIENvcHlyaWdodCAyMDIxLW5vdyBGbW9kZSBJbmMuIHN1cHBvcnRAZm1vZGUuY24uIDE4NjA3MDA3MDczLgogICAg5L+d55WZ5omA5pyJ5p2D5YipIEFsbCByaWdodHMgcmVzZXJ2ZWQuCgogICAgUEFUSDovaG9tZS9yeWFuL3dvcmtzcGFjZS9ub3ZhL25vdmEtYWRtaW4vZGlzdC9mbW9kZS1uZy9lc20yMDIyL2xpYi9haWdjL3ZvaWNlL2xpYi9yZWNvcmRlci9lbmdpbmUtcGNtLm1qcw==`
10
-
@@ -1,10 +0,0 @@
1
-
2
- /**
3
- * @copyright © 未来飞马 © 未来全栈 www.fmode.cn
4
- * 版权所有 © 未来飞马 © 江西脑控科技有限公司 Copyright © Fmode Technology Co., Ltd.
5
- * 保留所有权利 All Rights Reserved.
6
- * /home/ryan/workspace/nova/nova-admin/dist/fmode-ng/esm2022/lib/aigc/voice/lib/recorder/engine-wav.mjs
7
- */
8
- import Recorder from"recorder-core";!function(){"use strict";Recorder.prototype.enc_wav={stable:!0,fast:!0,testmsg:"支持位数8位、16位(填在比特率里面),采样率取值无限制;此编码器仅在pcm数据前加了一个44字节的wav头,编码出来的16位wav文件去掉开头的44字节即可得到pcm(注:其他wav编码器可能不是44字节)"},Recorder.prototype.wav=function(t,e,r){var a=this.set,o=t.length,n=a.sampleRate,f=8==a.bitRate?8:16,c=o*(f/8),i=new ArrayBuffer(44+c),s=new DataView(i),v=0,writeString=function(t){for(var e=0;e<t.length;e++,v++)s.setUint8(v,t.charCodeAt(e))},write16=function(t){s.setUint16(v,t,!0),v+=2},write32=function(t){s.setUint32(v,t,!0),v+=4};if(writeString("RIFF"),write32(36+c),writeString("WAVE"),writeString("fmt "),write32(16),write16(1),write16(1),write32(n),write32(n*(f/8)),write16(f/8),write16(f),writeString("data"),write32(c),8==f)for(var w=0;w<o;w++,v++){var p=128+(t[w]>>8);s.setInt8(v,p)}else for(w=0;w<o;w++,v+=2)s.setInt16(v,t[w],!0);e(new Blob([s.buffer],{type:"audio/wav"}))}}();
9
- var MODULE_PATH_NEED = `6K+l5paH5Lu25piv5pys6aG555uu55qE5LiA6YOo5YiGIFRoaXMgZmlsZSBpcyBwYXJ0IG9mIHRoZSBDb21wb25lbnRzIGluIEZtb2RlIEluYy4KICAgIOeJiOadg+aJgOaciSDCqSDmnKrmnaXpo57pqawgwqkg5rGf6KW/6ISR5o6n56eR5oqA5pyJ6ZmQ5YWs5Y+4IENvcHlyaWdodCDCqSBGbW9kZSBUZWNobm9sb2d5IENvLiwgTHRkLgogICAg5L+d55WZ5omA5pyJ5p2D5YipIEFsbCBSaWdodHMgUmVzZXJ2ZWQuCiAgICDkuKXnpoHlnKjmnKrnu4/mjojmnYPnmoTmg4XlhrXkuIvvvIzpgJrov4fku7vkvZXlqpLku4vlpI3liLbmraTmlofku7YgVW5hdXRob3JpemVkIGNvcHlpbmcgb2YgdGhpcyBmaWxlLCB2aWEgYW55IG1lZGl1bSBpcyBzdHJpY3RseSBwcm9oaWJpdGVkCiAgICDor6Xmlofku7bmmK/kuJPmnInnmoTmnLrlr4bmlofku7YgUHJvcHJpZXRhcnkgYW5kIGNvbmZpZGVudGlhbAogICAKICAgIENvcHlyaWdodCAyMDIxLW5vdyBGbW9kZSBJbmMuIHN1cHBvcnRAZm1vZGUuY24uIDE4NjA3MDA3MDczLgogICAg5L+d55WZ5omA5pyJ5p2D5YipIEFsbCByaWdodHMgcmVzZXJ2ZWQuCgogICAgUEFUSDovaG9tZS9yeWFuL3dvcmtzcGFjZS9ub3ZhL25vdmEtYWRtaW4vZGlzdC9mbW9kZS1uZy9lc20yMDIyL2xpYi9haWdjL3ZvaWNlL2xpYi9yZWNvcmRlci9lbmdpbmUtd2F2Lm1qcw==`
10
-
@@ -1,10 +0,0 @@
1
-
2
- /**
3
- * @copyright © 未来飞马 © 未来全栈 www.fmode.cn
4
- * 版权所有 © 未来飞马 © 江西脑控科技有限公司 Copyright © Fmode Technology Co., Ltd.
5
- * 保留所有权利 All Rights Reserved.
6
- * /home/ryan/workspace/nova/nova-admin/dist/fmode-ng/esm2022/lib/aigc/voice/stream.player.mjs
7
- */
8
- import{PushAudioOutputStreamCallback}from"microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/PushAudioOutputStreamCallback";import{Subject}from"rxjs";import{bufferWhen,filter,takeUntil}from"rxjs/operators";export class FmPushAudioOutputStreamCallback extends PushAudioOutputStreamCallback{constructor(){super(),this.audioDataSubject=new Subject,this.playedSubject=new Subject,this.isPlaying=!1,this.isClosed=!1,this.audioBufferQueue=[],this.maxBufferSize=10,this.writeCount=0,this.audioContext=new(window.AudioContext||window.webkitAudioContext),this.audioDataSubject.pipe(bufferWhen((()=>this.playedSubject)),takeUntil(this.audioDataSubject.pipe(filter((()=>this.isClosed))))).subscribe((t=>{this.playAudio(t)}))}async write(t){this.writeCount++,10==this.writeCount&&this.playedSubject.next(!0),this.audioDataSubject.next(t)}async playAudio(t){this.isPlaying=!0;const e=this.mergeArrayBuffers(t);let i;try{i=await this.audioContext.decodeAudioData(e)}catch(t){}if(i){const t=this.audioContext.createBufferSource();t.buffer=i,t.connect(this.audioContext.destination),t.start(),await new Promise((e=>{t.onended=e})),this.playedSubject.next(!0)}this.isPlaying=!1}mergeArrayBuffers(t){const e=t.reduce(((t,e)=>t+e.byteLength),0),i=new Uint8Array(e);let s=0;for(const e of t){const t=new Uint8Array(e);i.set(t,s),s+=t.length}return i.buffer}async stop(){this.isClosed=!0,this.audioDataSubject&&this.audioDataSubject.unsubscribe(),this.playedSubject&&this.playedSubject.unsubscribe(),this.audioContext&&this.audioContext.close()}async close(){console.log("close 数据加载完成"),this.isClosed=!0}}
9
- var MODULE_PATH_NEED = `6K+l5paH5Lu25piv5pys6aG555uu55qE5LiA6YOo5YiGIFRoaXMgZmlsZSBpcyBwYXJ0IG9mIHRoZSBDb21wb25lbnRzIGluIEZtb2RlIEluYy4KICAgIOeJiOadg+aJgOaciSDCqSDmnKrmnaXpo57pqawgwqkg5rGf6KW/6ISR5o6n56eR5oqA5pyJ6ZmQ5YWs5Y+4IENvcHlyaWdodCDCqSBGbW9kZSBUZWNobm9sb2d5IENvLiwgTHRkLgogICAg5L+d55WZ5omA5pyJ5p2D5YipIEFsbCBSaWdodHMgUmVzZXJ2ZWQuCiAgICDkuKXnpoHlnKjmnKrnu4/mjojmnYPnmoTmg4XlhrXkuIvvvIzpgJrov4fku7vkvZXlqpLku4vlpI3liLbmraTmlofku7YgVW5hdXRob3JpemVkIGNvcHlpbmcgb2YgdGhpcyBmaWxlLCB2aWEgYW55IG1lZGl1bSBpcyBzdHJpY3RseSBwcm9oaWJpdGVkCiAgICDor6Xmlofku7bmmK/kuJPmnInnmoTmnLrlr4bmlofku7YgUHJvcHJpZXRhcnkgYW5kIGNvbmZpZGVudGlhbAogICAKICAgIENvcHlyaWdodCAyMDIxLW5vdyBGbW9kZSBJbmMuIHN1cHBvcnRAZm1vZGUuY24uIDE4NjA3MDA3MDczLgogICAg5L+d55WZ5omA5pyJ5p2D5YipIEFsbCByaWdodHMgcmVzZXJ2ZWQuCgogICAgUEFUSDovaG9tZS9yeWFuL3dvcmtzcGFjZS9ub3ZhL25vdmEtYWRtaW4vZGlzdC9mbW9kZS1uZy9lc20yMDIyL2xpYi9haWdjL3ZvaWNlL3N0cmVhbS5wbGF5ZXIubWpz`
10
-
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};