mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2025-12-19 05:47:46 +00:00
PlayHT version 3.0 support PlayHt2.0 voices
This commit is contained in:
@@ -816,7 +816,10 @@ async function getLanguagesVoicesForPlayHT(credential) {
|
||||
};
|
||||
|
||||
const ttsVoices = list_voices.reduce((acc, voice) => {
|
||||
if (!credential.voice_engine.includes(voice.voice_engine)) {
|
||||
// Play3.0 support all voice for PlayHT2.0*
|
||||
const filteredVoiceEngine = credential.voice_engine === 'Play3.0' ?
|
||||
`${credential.voice_engine}_PlayHT2.0_PlayHT2.0-turbo` : credential.voice_engine;
|
||||
if (!filteredVoiceEngine.includes(voice.voice_engine)) {
|
||||
return acc;
|
||||
}
|
||||
const languageCode = voice.language_code;
|
||||
|
||||
Reference in New Issue
Block a user