fmode-ng 0.0.31 → 0.0.32

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.
@@ -4,7 +4,6 @@ import { Router } from '@angular/router';
4
4
  import { Platform } from "@ionic/angular";
5
5
  import { FmodeVoiceService } from '../../voice';
6
6
  import { FmodeChat, ChatService } from '../../service-fmai/service-chat';
7
- import { FmodeTTS } from '../../voice/tts';
8
7
  import { NovaCloudService } from '../../../nova-cloud/nova-cloud.service';
9
8
  import * as i0 from "@angular/core";
10
9
  export declare class ModalChatVoiceInputComponent implements OnInit {
@@ -48,14 +47,6 @@ export declare class ModalChatVoiceInputComponent implements OnInit {
48
47
  *
49
48
  */
50
49
  sendMessage(): Promise<void>;
51
- /**
52
- * TTS - 语音合成
53
- *
54
- */
55
- tts: FmodeTTS;
56
- initTTS(): Promise<void>;
57
- playTTS(textOrSSML: string): Promise<void>;
58
- playTTSTeting(): void;
59
50
  testTTS(sentence?: any): void;
60
51
  testXunfeiTTS(): void;
61
52
  static ɵfac: i0.ɵɵFactoryDeclaration<ModalChatVoiceInputComponent, never>;
@@ -1,6 +1,8 @@
1
1
  import { Observable } from "rxjs";
2
2
  import Parse from "parse";
3
3
  import { NavController } from "@ionic/angular";
4
+ import { FmodeTTS } from "../../voice/tts";
5
+ import { NovaCloudService } from "../../../nova-cloud";
4
6
  export interface FmodeChatMessageVoice {
5
7
  id: string;
6
8
  ssml?: string;
@@ -75,7 +77,8 @@ export declare class FmodeChat {
75
77
  */
76
78
  isTalkMode: boolean;
77
79
  SSMLRoleVoice: string;
78
- constructor(sessionId: string, role?: Parse.Object, chatSession?: Parse.Object, chatServ?: any, navCtrl?: NavController);
80
+ ncloud: NovaCloudService;
81
+ constructor(sessionId: string, role?: Parse.Object, chatSession?: Parse.Object, chatServ?: any, navCtrl?: NavController, ncloud?: NovaCloudService);
79
82
  /**
80
83
  * 会话Avatar控制
81
84
  */
@@ -95,8 +98,15 @@ export declare class FmodeChat {
95
98
  * @param imageUrl
96
99
  */
97
100
  sendMessage(message?: string, imageUrl?: string, onComplete?: Function, eventMap?: FmodeChatEventMap): Promise<void>;
98
- getVoiceByContentText(content: string | ChatImageContentItem[], eventMap?: FmodeChatEventMap): Promise<FmodeChatMessageVoice>;
101
+ getVoiceByContentText(content: string | ChatImageContentItem[], eventMap?: FmodeChatEventMap, promptEnabled?: boolean): Promise<FmodeChatMessageVoice>;
99
102
  getContentText(content: string | ChatImageContentItem[]): string;
103
+ /**
104
+ * TTS - 语音合成
105
+ *
106
+ */
107
+ tts: FmodeTTS;
108
+ initTTS(): Promise<void>;
109
+ playTTS(voice: FmodeChatMessageVoice): Promise<void>;
100
110
  /**
101
111
  * 保存单次会话
102
112
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmode-ng",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "author": "未来全栈",
5
5
  "license": "COPYRIGHT © 未来飞马 未来全栈 www.fmode.cn All RIGHTS RESERVED",
6
6
  "peerDependencies": {