ssml-check-core
Version:
Core library to check for valid SSML
29 lines (24 loc) • 567 B
TypeScript
export interface ISSMLCheckOptions {
platform?: "google" | "amazon" | "all";
locale?: string;
unsupportedTags?: string[];
getPositions?: boolean;
}
export interface ISSMLCheckError {
type: string;
tag?: string;
attribute?: string;
value?: string;
}
export interface ISSMLCheckVerifyResponse {
errors?: ISSMLCheckError[];
fixedSSML?: string;
}
export function check(
ssml: string,
options?: any,
): Promise<ISSMLCheckError[] | undefined>;
export function verifyAndFix(
ssml: string,
options?: any,
): Promise<ISSMLCheckVerifyResponse>;