fix review comment

This commit is contained in:
Quan HL
2024-09-16 18:15:45 +07:00
parent 8016c0886a
commit c96f1e86ee

View File

@@ -49,7 +49,6 @@ function getFileExtension({vendor, renderForCaching = false}) {
case 'elevenlabs':
case 'rimlabs':
case 'playht':
case vendor.startsWith('custom') ? vendor : 'cant_match_value':
if (!renderForCaching && !JAMBONES_DISABLE_TTS_STREAMING) {
return r8Extension;
} else {
@@ -60,6 +59,12 @@ function getFileExtension({vendor, renderForCaching = false}) {
case 'verbio':
return r8Extension;
default:
// If vendor is custom
if (vendor.startsWith('custom') &&
!renderForCaching &&
!JAMBONES_DISABLE_TTS_STREAMING) {
return r8Extension;
}
return mp3Extension;
}
}