mirror of
https://github.com/Bijit-Mondal/VoiceAgent.git
synced 2026-03-02 18:36:39 +00:00
Refactor VoiceAgent: Extract types and default configurations into separate types.ts file; remove unused StreamBuffer file
This commit is contained in:
22
dist/types.js
vendored
Normal file
22
dist/types.js
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.DEFAULT_MAX_AUDIO_SIZE = exports.DEFAULT_HISTORY_CONFIG = exports.DEFAULT_STREAMING_SPEECH_CONFIG = void 0;
|
||||
/**
|
||||
* Default streaming speech configuration
|
||||
*/
|
||||
exports.DEFAULT_STREAMING_SPEECH_CONFIG = {
|
||||
minChunkSize: 50,
|
||||
maxChunkSize: 200,
|
||||
parallelGeneration: true,
|
||||
maxParallelRequests: 3,
|
||||
};
|
||||
/**
|
||||
* Default history configuration
|
||||
*/
|
||||
exports.DEFAULT_HISTORY_CONFIG = {
|
||||
maxMessages: 100,
|
||||
maxTotalChars: 0, // unlimited by default
|
||||
};
|
||||
/** Default maximum audio input size (10 MB) */
|
||||
exports.DEFAULT_MAX_AUDIO_SIZE = 10 * 1024 * 1024;
|
||||
//# sourceMappingURL=types.js.map
|
||||
Reference in New Issue
Block a user