Skip to content

Commit

Permalink
🎨 fix: improve core types
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Nov 19, 2023
1 parent 85ea667 commit ea9bc1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/core/EdgeSpeechTTS/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ import { getEdgeVoiceOptions } from './options';
export type { EdgeSpeechPayload } from './createEdgeSpeech';

export interface EdgeSpeechAPI {
locale?: string;
serviceUrl?: string;
}

export class EdgeSpeechTTS {
private locale?: string;
private serviceUrl: string | undefined;

constructor({ serviceUrl, locale }: EdgeSpeechAPI & { locale?: string } = {}) {
constructor({ serviceUrl, locale }: EdgeSpeechAPI = {}) {
this.locale = locale;
this.serviceUrl = serviceUrl;
}
Expand Down
3 changes: 2 additions & 1 deletion src/core/MicrosoftSpeechTTS/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ import azureVoiceList, { getAzureVoiceOptions } from './voiceList';
export type { MicrosoftSpeechPayload } from './createMicrosoftSpeech';

export interface MicrosoftSpeechAPI {
locale?: string;
serviceUrl?: string;
}

export class MicrosoftSpeechTTS {
private locale?: string;
private serviceUrl: string | undefined;

constructor({ serviceUrl, locale }: MicrosoftSpeechAPI & { locale?: string } = {}) {
constructor({ serviceUrl, locale }: MicrosoftSpeechAPI = {}) {
this.locale = locale;
this.serviceUrl = serviceUrl;
}
Expand Down

0 comments on commit ea9bc1e

Please sign in to comment.