From 8016c0886acdeecd97057e43f2facad8feebb6be Mon Sep 17 00:00:00 2001 From: Quan HL Date: Mon, 16 Sep 2024 09:01:45 +0700 Subject: [PATCH] fix playht has stream and cached audio differrent quality --- lib/utils.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/utils.js b/lib/utils.js index 9d088c1..19c8004 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -48,6 +48,8 @@ function getFileExtension({vendor, renderForCaching = false}) { case 'deepgram': case 'elevenlabs': case 'rimlabs': + case 'playht': + case vendor.startsWith('custom') ? vendor : 'cant_match_value': if (!renderForCaching && !JAMBONES_DISABLE_TTS_STREAMING) { return r8Extension; } else {