rulerman commited on
Commit
1af20ae
·
verified ·
1 Parent(s): c29df8a

update config

Browse files
Files changed (1) hide show
  1. README.md +4 -5
README.md CHANGED
@@ -34,11 +34,10 @@ processor = AutoProcessor.from_pretrained("fnlp/MOSS-TTSD-v0.5", codec_path="fnl
34
  model = AutoModel.from_pretrained("fnlp/MOSS-TTSD-v0.5", trust_remote_code=True, device_map="auto").eval()
35
 
36
  data = [{
37
- "base_path": "/path/to/data/",
38
- "text": "跟踪他们,他俩不行,从屋上平安下来没有扭伤脖子,",
39
- "system_prompt": "你是一个根据文本生成对应音频的语音合成器。",
40
- "prompt_text": "这支史诗级的美国迷幻摇滚乐队创建于,",
41
- "prompt_audio": "prompt.wav",
42
  }]
43
 
44
  inputs = processor(data)
 
34
  model = AutoModel.from_pretrained("fnlp/MOSS-TTSD-v0.5", trust_remote_code=True, device_map="auto").eval()
35
 
36
  data = [{
37
+ "base_path": "/path/to/audio/files",
38
+ "text": "[S1]Speaker 1 dialogue content[S2]Speaker 2 dialogue content[S1]...",
39
+ "prompt_audio": "path/to/shared_reference_audio.wav",
40
+ "prompt_text": "[S1]Reference text for speaker 1[S2]Reference text for speaker 2"
 
41
  }]
42
 
43
  inputs = processor(data)