-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c41986
commit 07245e3
Showing
8 changed files
with
103 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import edgeVoiceList from '@/data/edgeVoiceList'; | ||
import voiceName from '@/data/voiceList'; | ||
import { fetchEdgeSpeech } from '@/services/fetchEdgeSpeech'; | ||
import { getEdgeVoiceOptions, getVoiceLocaleOptions } from '@/utils/getVoiceList'; | ||
|
||
export class EdgeSpeechTTS { | ||
private locale?: string; | ||
constructor(locale?: string) { | ||
this.locale = locale; | ||
} | ||
get voiceOptions() { | ||
return getEdgeVoiceOptions(this.locale); | ||
} | ||
get localeOptions() { | ||
return getVoiceLocaleOptions(); | ||
} | ||
voiceList = edgeVoiceList; | ||
voiceName = voiceName; | ||
fetch = fetchEdgeSpeech; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import azureVoiceList from '@/data/azureVoiceList'; | ||
import voiceName from '@/data/voiceList'; | ||
import { fetchMicrosoftSpeech } from '@/services/fetchMicrosoftSpeech'; | ||
import { getAzureVoiceOptions, getVoiceLocaleOptions } from '@/utils/getVoiceList'; | ||
|
||
export class MicorsoftSpeechTTS { | ||
private locale?: string; | ||
constructor(locale?: string) { | ||
this.locale = locale; | ||
} | ||
get voiceOptions() { | ||
return getAzureVoiceOptions(this.locale); | ||
} | ||
get localeOptions() { | ||
return getVoiceLocaleOptions(); | ||
} | ||
voiceList = azureVoiceList; | ||
voiceName = voiceName; | ||
fetch = fetchMicrosoftSpeech; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { fetchOpenaiSTT } from '@/services/fetchOpenaiSTT'; | ||
|
||
export class OpenaiSTT { | ||
fetch = fetchOpenaiSTT; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import openaiVoiceList from '@/data/openaiVoiceList'; | ||
import { fetchOpenaiTTS } from '@/services/fetchOpenaiTTS'; | ||
import { getOpenaiVoiceOptions, getVoiceLocaleOptions } from '@/utils/getVoiceList'; | ||
|
||
export class OpenaiTTS { | ||
get voiceOptions() { | ||
return getOpenaiVoiceOptions(); | ||
} | ||
get localeOptions() { | ||
return getVoiceLocaleOptions(); | ||
} | ||
voiceList = openaiVoiceList; | ||
fetch = fetchOpenaiTTS; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { | ||
getAzureVoiceOptions, | ||
getEdgeVoiceOptions, | ||
getOpenaiVoiceOptions, | ||
getSpeechSynthesVoiceOptions, | ||
getVoiceLocaleOptions, | ||
} from '@/utils/getVoiceList'; | ||
|
||
export class VoiceList { | ||
private locale?: string; | ||
constructor(locale?: string) { | ||
this.locale = locale; | ||
} | ||
|
||
get speechSynthesVoiceOptions() { | ||
return getSpeechSynthesVoiceOptions(this.locale); | ||
} | ||
|
||
get azureVoiceOptions() { | ||
return getAzureVoiceOptions(this.locale); | ||
} | ||
|
||
get edgeVoiceOptions() { | ||
return getEdgeVoiceOptions(this.locale); | ||
} | ||
|
||
get microsoftVoiceOptions() { | ||
return getEdgeVoiceOptions(this.locale); | ||
} | ||
|
||
get openaiVoiceOptions() { | ||
return getOpenaiVoiceOptions(); | ||
} | ||
|
||
get localeOptions() { | ||
return getVoiceLocaleOptions(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters