- Add comprehensive speech configuration in .env.example and app config - Update Docker speech Dockerfile for more flexible model handling - Create detailed README for speech-to-text examples - Implement example script demonstrating speech features - Improve speech service initialization and configuration management
20 lines
504 B
TypeScript
20 lines
504 B
TypeScript
import { EventEmitter } from "events";
|
|
|
|
export interface IWakeWordDetector {
|
|
initialize(): Promise<void>;
|
|
shutdown(): Promise<void>;
|
|
startListening(): Promise<void>;
|
|
stopListening(): Promise<void>;
|
|
}
|
|
|
|
export interface ISpeechToText extends EventEmitter {
|
|
initialize(): Promise<void>;
|
|
shutdown(): Promise<void>;
|
|
transcribe(audioData: Buffer): Promise<string>;
|
|
}
|
|
|
|
export interface SpeechToTextConfig {
|
|
modelPath: string;
|
|
modelType: string;
|
|
containerName?: string;
|
|
}
|