@hahnpro/ai-sdk 0.3.0 → 0.4.0

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.
@@ -1,24 +1,17 @@
1
1
  import { BreakpointObserver } from '@angular/cdk/layout';
2
- import { ElementRef, OnInit } from '@angular/core';
2
+ import { ElementRef } from '@angular/core';
3
3
  import { ChatService } from '../chat.service';
4
- import { VoiceRecognitionService } from '../voice-recognition.service';
5
4
  import * as i0 from "@angular/core";
6
- export declare class MessageInputComponent implements OnInit {
5
+ export declare class MessageInputComponent {
7
6
  messageInput: ElementRef<HTMLTextAreaElement>;
8
7
  readonly startConversation: string;
9
8
  readonly chatService: ChatService;
10
- readonly voiceRecognitionService: VoiceRecognitionService;
11
9
  isMobileView: boolean;
12
10
  message: string;
13
11
  tmpMessage: string;
14
12
  private readonly destroyRef;
15
- private readonly translocoService;
16
- private lang;
17
13
  constructor(breakpointObserver: BreakpointObserver);
18
- ngOnInit(): void;
19
14
  sendMessage(): void;
20
- toggleVoice(): void;
21
- stopVoice(): void;
22
15
  static ɵfac: i0.ɵɵFactoryDeclaration<MessageInputComponent, never>;
23
16
  static ɵcmp: i0.ɵɵComponentDeclaration<MessageInputComponent, "ai-message-input", never, { "startConversation": { "alias": "startConversation"; "required": false; }; }, {}, never, never, true, never>;
24
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hahnpro/ai-sdk",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -15,7 +15,6 @@
15
15
  "@jsverse/transloco": "^7.6.0",
16
16
  "@hahnpro/hpc-api": "^2025.2.12",
17
17
  "date-fns": "^4.0.0",
18
- "microsoft-cognitiveservices-speech-sdk": "^1.43.0",
19
18
  "ngx-extended-pdf-viewer": "^23.0.0",
20
19
  "ngx-logger": "^5.0.0",
21
20
  "ngx-markdown": "^18.0.0 || ^19.0.0",
@@ -1,24 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- export declare class VoiceRecognitionService {
4
- private _isListening;
5
- private recognizer;
6
- private tokenExpiration;
7
- private readonly _preResult$;
8
- private readonly _result$;
9
- private readonly audioConfig;
10
- private readonly apiService;
11
- private readonly logger;
12
- get isInitialized(): boolean;
13
- get isListening(): boolean;
14
- get isTokenExpired(): boolean;
15
- get preResult$(): Observable<string>;
16
- get result$(): Observable<string>;
17
- start(language?: string): Promise<void>;
18
- stop(): Promise<void>;
19
- toggle(language?: string): Promise<void>;
20
- private parseJwtToken;
21
- private init;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<VoiceRecognitionService, never>;
23
- static ɵprov: i0.ɵɵInjectableDeclaration<VoiceRecognitionService>;
24
- }