UNPKG

@mastra/core

Version:

The core foundation of the Mastra framework, providing essential components and interfaces for building AI-powered applications.

39 lines (37 loc) 1.23 kB
'use strict'; var chunkPO3MSOZM_cjs = require('./chunk-PO3MSOZM.cjs'); var chunk2WZYQCRK_cjs = require('./chunk-2WZYQCRK.cjs'); var chunkEBVYYC2Q_cjs = require('./chunk-EBVYYC2Q.cjs'); // src/tts/index.ts var _MastraTTS_decorators, _init, _a; _MastraTTS_decorators = [chunkPO3MSOZM_cjs.InstrumentClass({ prefix: "tts", excludeMethods: ["__setTools", "__setLogger", "__setTelemetry", "#log"] })]; exports.MastraTTS = class MastraTTS extends (_a = chunk2WZYQCRK_cjs.MastraBase) { model; constructor({ model }) { super({ component: "TTS" }); this.model = model; } traced(method, methodName) { return this.telemetry?.traceMethod(method, { spanName: `${this.model.name}-tts.${methodName}`, attributes: { "tts.type": `${this.model.name}` } }) ?? method; } }; exports.MastraTTS = /*@__PURE__*/(_ => { _init = chunkEBVYYC2Q_cjs.__decoratorStart(_a); exports.MastraTTS = chunkEBVYYC2Q_cjs.__decorateElement(_init, 0, "MastraTTS", _MastraTTS_decorators, exports.MastraTTS); chunkEBVYYC2Q_cjs.__runInitializers(_init, 1, exports.MastraTTS); return exports.MastraTTS; })(); //# sourceMappingURL=chunk-SJNG7JGN.cjs.map //# sourceMappingURL=chunk-SJNG7JGN.cjs.map