From 8740b6db4f0e3317ea7ff5469d6629d447f03bda Mon Sep 17 00:00:00 2001 From: canisminor1990 Date: Fri, 17 Nov 2023 01:03:31 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20Fix=20api=20props?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/EdgeSpeechTTS/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/EdgeSpeechTTS/index.ts b/src/core/EdgeSpeechTTS/index.ts index 4d7d83f..eb65474 100644 --- a/src/core/EdgeSpeechTTS/index.ts +++ b/src/core/EdgeSpeechTTS/index.ts @@ -9,16 +9,16 @@ import { getEdgeVoiceOptions } from './options'; export type { EdgeSpeechPayload } from './createEdgeSpeech'; export interface EdgeSpeechAPI { - backendURL?: string; + backendUrl?: string; } export class EdgeSpeechTTS { private locale?: string; private BACKEND_URL: string | undefined; - constructor({ backendURL, locale }: EdgeSpeechAPI & { locale?: string } = {}) { + constructor({ backendUrl, locale }: EdgeSpeechAPI & { locale?: string } = {}) { this.locale = locale; - this.BACKEND_URL = backendURL; + this.BACKEND_URL = backendUrl; } get voiceOptions() {