feat(speech): enhance speech configuration and example integration
- 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
This commit is contained in:
20
src/speech/types.ts
Normal file
20
src/speech/types.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user