generated from fahricansecer/boilerplate-be
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user