mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-05-06 08:47:00 +00:00
@@ -1,4 +1,5 @@
|
||||
module.exports = [
|
||||
{ name: 'Play3.0', value: 'Play3.0' },
|
||||
{ name: 'PlayHT2.0-turbo', value: 'PlayHT2.0-turbo' },
|
||||
{ name: 'PlayHT2.0', value: 'PlayHT2.0' },
|
||||
{ name: 'PlayHT1.0', value: 'PlayHT1.0' },
|
||||
|
||||
@@ -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