ow
This commit is contained in:
1 parent
44ed43516e
commit
996bb243df
5 files changed
+56
-72
No files matched your search
@@ -240,7 +240,7 @@ namespace CloudBuilder.AI.Service
|
||||
repositoryAiChapterEntity.InsertNow(data.AiChapters);
|
||||
|
||||
if (data.AiSentences == null || data.AiSentences.Count() == 0) return data;
|
||||
repositoryAiSentenceEntity.InsertNow(data.AiSentences);
|
||||
repositoryAiSentenceEntity.InsertNow(data.AiSentences);
|
||||
|
||||
return FindByKey(key);
|
||||
}
|
||||
@@ -337,9 +337,13 @@ namespace CloudBuilder.AI.Service
|
||||
|
||||
private string PackTtsParameters(string voice, string save_path, string bookId, string chapterId)
|
||||
{
|
||||
//速度快,音质差
|
||||
//task:TtsTask book_id:B000008 chapter_id:3 speed:1 voice:Sherpa2 actor:韩立 actor_voice:Sherpa1 save_path:D:\\Net8\\FileServer\\Backup\\DmsFile\\voice
|
||||
//速度慢,音质好
|
||||
//task:SoVITSTtsTask book_id:B000011 chapter_id:3 save_path:D:\\Net8\\FileServer\\Backup\\DmsFile\\voice
|
||||
//非必要参数 voice:MIDDLE_AGED_FEMALE5 actor:韩立 actor_voice:YOUNG_MALE2
|
||||
List<string> para = new List<string>();
|
||||
para.Add("task:" + "TtsTask");
|
||||
para.Add("task:" + "SoVITSTtsTask");
|
||||
para.Add("book_id:" + bookId);
|
||||
para.Add("chapter_id:" + chapterId);
|
||||
para.Add("voice:" + voice);
|
||||
|
||||
Reference in new issue
Block a user