UNPKG

alexa-ssml

Version:
32 lines (28 loc) 592 B
export const tag = 'break'; export const schema = { title: 'pause', description: '', required: [], type: 'object', properties: { strength: { enum: [ 'none', 'x-weak', 'weak', 'medium', 'strong', 'x-strong', ], }, time: { type: 'integer', min: 0, max: 10000, }, }, }; export const transform = ({ time, ...props }) => ({ ...props, ...(time && { time: `${time}ms` }), });