Skip to content

Commit bae66c6

Browse files
committed
✨ feat: support static method
1 parent 0f3ffa4 commit bae66c6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/core/EdgeSpeechTTS/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class EdgeSpeechTTS {
3434
static localeOptions = getVoiceLocaleOptions();
3535
static voiceList = edgeVoiceList;
3636
static voiceName = voiceName;
37-
static completion = createEdgeSpeech;
37+
static createRequest = createEdgeSpeech;
3838

3939
private fetch = async (payload: EdgeSpeechPayload) => {
4040
const response = await (this.BASE_URL

src/core/MicrosoftSpeechTTS/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export class MicrosoftSpeechTTS {
2020
}
2121

2222
static localeOptions = getVoiceLocaleOptions();
23+
static createRequest: typeof createMicrosoftSpeech = createMicrosoftSpeech;
2324

2425
static voiceList = azureVoiceList;
2526
static voiceName = voiceName;

0 commit comments

Comments
 (0)