Skip to content

Commit

Permalink
Merge pull request #899 from tsg-ut/tts-voice-ar-as
Browse files Browse the repository at this point in the history
discord: Add new TTS voices AR and AS
  • Loading branch information
hakatashi authored Jun 5, 2024
2 parents 2c7a67b + b02079e commit cc1a157
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion discord/speeches/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ enum Voice {
AO = 'AO',
AP = 'AP',
AQ = 'AQ',
AR = 'AR',
AS = 'AS',
}
export {Voice};

Expand Down Expand Up @@ -118,6 +120,8 @@ export const speechConfig: Map<Voice, Config> = new Map([
[Voice.AO, {provider: 'openai', name: 'onyx'}],
[Voice.AP, {provider: 'openai', name: 'nova'}],
[Voice.AQ, {provider: 'openai', name: 'shimmer'}],
[Voice.AR, {provider: 'amazon', name: 'Kazuha'}],
[Voice.AS, {provider: 'amazon', name: 'Tomoko'}],
// coming soon
// [Voice., {provider: 'voicevox', name: 'whitecul', emotional: true}],
// [Voice., {provider: 'voicevox', name: 'goki', emotional: true}],
Expand All @@ -140,7 +144,7 @@ export const getSpeech = (text: string, voiceType: Voice, meta: VoiceMeta, audio
if (config.provider === 'amazon') {
return amazon(text, config.name, {
...meta,
engine: voiceType === Voice.AF ? 'neural' : 'standard',
engine: voiceType === Voice.E || voiceType === Voice.F ? 'standard' : 'neural',
});
}
if (config.provider === 'voicevox') {
Expand Down

0 comments on commit cc1a157

Please sign in to comment.