UNPKG

@jackdbd/eleventy-plugin-text-to-speech

Version:
28 lines 1.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DEFAULT = exports.DEFAULT_XPATH_EXPRESSIONS = exports.DEFAULT_REGEX = exports.DEFAULT_CSS_SELECTORS = exports.ERROR_MESSAGE_PREFIX = exports.DEBUG_PREFIX = void 0; exports.DEBUG_PREFIX = 'eleventy-plugin-text-to-speech'; exports.ERROR_MESSAGE_PREFIX = { invalidConfiguration: '[🗣️ 11ty-plugin-text-to-speech] INVALID CONFIGURATION' }; exports.DEFAULT_CSS_SELECTORS = []; exports.DEFAULT_REGEX = new RegExp('^((?!404).)*\\.html$'); exports.DEFAULT_XPATH_EXPRESSIONS = []; exports.DEFAULT = { // https://cloud.google.com/speech-to-text/docs/encoding#audio-encodings audioEncodings: ['OGG_OPUS', 'MP3'], // https://www.11ty.dev/docs/plugins/fetch/#options cacheExpiration: '365d', collectionName: 'audio-items', rules: [ { regex: exports.DEFAULT_REGEX, cssSelectors: ['.text-to-speech'], xPathExpressions: [] } ], transformName: 'inject-audio-tags-into-html', // https://cloud.google.com/text-to-speech/docs/voices voiceName: 'en-US-Standard-J' }; //# sourceMappingURL=constants.js.map