main
Backend Deploy 🚀 / build-and-deploy (push) Has been cancelled

This commit is contained in:
Harun CAN
2026-05-11 07:32:58 +02:00
parent 58832e99d1
commit 2e6c272eee
17 changed files with 1260 additions and 400 deletions
@@ -25,6 +25,7 @@ public class VideoRenderPipeline
private readonly TtsService _tts;
private readonly OpenAiTtsService _openAiTts;
private readonly MinimaxTtsService _minimaxTts;
private readonly VoiceboxTtsService _voiceboxTts;
private readonly SunoMusicService _sunoMusic;
private readonly AudioCraftService _audioCraft;
private readonly RemotionService _remotion;
@@ -38,6 +39,7 @@ public class VideoRenderPipeline
TtsService tts,
OpenAiTtsService openAiTts,
MinimaxTtsService minimaxTts,
VoiceboxTtsService voiceboxTts,
SunoMusicService sunoMusic,
AudioCraftService audioCraft,
RemotionService remotion,
@@ -50,6 +52,7 @@ public class VideoRenderPipeline
_tts = tts;
_openAiTts = openAiTts;
_minimaxTts = minimaxTts;
_voiceboxTts = voiceboxTts;
_sunoMusic = sunoMusic;
_audioCraft = audioCraft;
_remotion = remotion;
@@ -276,6 +279,10 @@ public class VideoRenderPipeline
{
result = await _minimaxTts.GenerateNarrationAsync(scene, outputDir, voiceStyle, ct);
}
else if (!string.IsNullOrEmpty(scene.TtsProvider) && scene.TtsProvider.Equals("voicebox", StringComparison.OrdinalIgnoreCase))
{
result = await _voiceboxTts.GenerateNarrationAsync(scene, outputDir, voiceStyle, ct);
}
else
{
// Default: ElevenLabs