UNPKG

fonema

Version:

Ultra-minimal Spanish text cleaning library for TTS - 100% Effect-TS & ESM

11 lines (10 loc) 521 B
import { Effect } from "effect"; export declare class TextCleaningError extends Error { readonly code: string; readonly stage: string; constructor(message: string, code: string, stage: string); } export declare const cleanTextForTTS: (text: string) => Effect.Effect<string, TextCleaningError>; export declare const convertSpanishNumber: (num: number) => string; export declare const expandSpanishAbbreviation: (abbrev: string) => string; export declare const convertEmojiToSpanish: (emoji: string) => string;