@varunmhajan/hom-i-voice-ai
Version:
Voice AI utilities for home loan assistance with India-specific formatting
28 lines • 1.37 kB
TypeScript
/**
* Voice Text Formatting Utilities
* Handles content shortening and number formatting for voice interactions
*/
declare function detectLanguage(text: string): 'hindi' | 'english' | 'hinglish' | 'mixed';
declare function formatCurrencyForVoice(text: string): string;
declare function numberToWords(num: number): string;
declare function digitsToWords(digits: string): string;
declare function formatPrice(text: string): string;
declare function formatProjectNames(text: string): string;
export declare function shortenForVoice(text: string, maxSentences?: number): string;
export declare function formatTextForVoice(text: string): string;
export declare function containsPriceInfo(text: string): boolean;
export declare function containsProjectInfo(text: string): boolean;
export declare const voiceFormatting: {
formatTextForVoice: typeof formatTextForVoice;
shortenForVoice: typeof shortenForVoice;
formatProjectNames: typeof formatProjectNames;
formatPrice: typeof formatPrice;
formatCurrencyForVoice: typeof formatCurrencyForVoice;
detectLanguage: typeof detectLanguage;
containsPriceInfo: typeof containsPriceInfo;
containsProjectInfo: typeof containsProjectInfo;
numberToWords: typeof numberToWords;
digitsToWords: typeof digitsToWords;
};
export default voiceFormatting;
//# sourceMappingURL=voiceFormatting.d.ts.map