Deploy: 2026-05-22 23:55:19
This commit is contained in:
@@ -43,10 +43,10 @@ class GeminiService
|
||||
*/
|
||||
public static function getElevenLabsVoiceId(?string $configuredVoiceId = null): string
|
||||
{
|
||||
$voiceIdSource = !empty($configuredVoiceId) ? $configuredVoiceId : (getenv('ELEVENLABS_VOICE_ID') ?: 'pNInz6obpgDQGcFmaJgB');
|
||||
$voiceIdSource = !empty($configuredVoiceId) ? $configuredVoiceId : (getenv('ELEVENLABS_VOICE_ID') ?: 'EXAVITQu4vr4xnSDxMaL');
|
||||
$voiceIds = array_filter(array_map('trim', explode(',', $voiceIdSource)));
|
||||
if (empty($voiceIds)) {
|
||||
return 'pNInz6obpgDQGcFmaJgB';
|
||||
return 'EXAVITQu4vr4xnSDxMaL';
|
||||
}
|
||||
return $voiceIds[array_rand($voiceIds)];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user