MCPcopy Create free account
hub / github.com/Migushthe2nd/MsEdgeTTS / constructor

Method constructor

src/MsEdgeTTS.ts:87–91  ·  view source on GitHub ↗

* Create a new `MsEdgeTTS` instance. * * @param options (optional) Options

(options?: Options)

Source from the content-addressed store, hash-verified

85 * @param options (optional) {@link Options}
86 */
87 public constructor(options?: Options) {
88 this._agent = options?.agent || undefined
89 this._enableLogger = options?.enableLogger || false
90 this._isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined"
91 }
92
93 private static async getSynthUrl(): Promise<string> {
94 const req_id = MsEdgeTTS.generateUUID(); // Generate the request ID

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected