UNPKG

@respeecher/respeecher-js

Version:

[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Frespeecher%2Frespeecher-js) [![npm shield](

28 lines (27 loc) 1.19 kB
/** * This file was auto-generated by Fern from our API Definition. */ import * as core from "./core/index.mjs"; import { mergeHeaders } from "./core/headers.mjs"; import { Tts } from "./api/resources/tts/client/Client.mjs"; import { Voices } from "./api/resources/voices/client/Client.mjs"; export class RespeecherClient { constructor(_options = {}) { this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@respeecher/respeecher-js", "X-Fern-SDK-Version": "1.0.3", "User-Agent": "@respeecher/respeecher-js/1.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, _options === null || _options === void 0 ? void 0 : _options.headers) }); } get tts() { var _a; return ((_a = this._tts) !== null && _a !== void 0 ? _a : (this._tts = new Tts(this._options))); } get voices() { var _a; return ((_a = this._voices) !== null && _a !== void 0 ? _a : (this._voices = new Voices(this._options))); } }