HKUST-Audio commited on
Commit
70c765f
·
verified ·
1 Parent(s): bff0819

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -3
README.md CHANGED
@@ -46,13 +46,14 @@ Codec_model = XCodec2Model.from_pretrained(model_path)
46
  Codec_model.eval().cuda()
47
  # only 16khz speech support!
48
  prompt_wav, sr = sf.read("太乙真人.wav") # you can find wav in Files
 
49
  prompt_wav = torch.from_numpy(prompt_wav).float().unsqueeze(0)
50
 
51
  prompt_text ="对,这就是我万人敬仰的太乙真人,虽然有点婴儿肥,但也掩不住我逼人的帅气。"
52
-
53
  target_text = """突然,身边一阵笑声。我看着他们,意气风发地挺直了胸膛,甩了甩那稍显肉感的双臂,轻笑道:"我身上的肉,是为了掩饰我爆棚的魅力,否则,岂不吓坏了你们呢?" """
54
-
55
- input_text = prompt_text + target_text
56
 
57
  def ids_to_speech_tokens(speech_ids):
58
 
 
46
  Codec_model.eval().cuda()
47
  # only 16khz speech support!
48
  prompt_wav, sr = sf.read("太乙真人.wav") # you can find wav in Files
49
+ #prompt_wav, sr = sf.read("Anna.wav") # English prompt
50
  prompt_wav = torch.from_numpy(prompt_wav).float().unsqueeze(0)
51
 
52
  prompt_text ="对,这就是我万人敬仰的太乙真人,虽然有点婴儿肥,但也掩不住我逼人的帅气。"
53
+ #promt_text = "A chance to leave him alone, but... No. She just wanted to see him again. Anna, you don't know how it feels to lose a sister. Anna, I'm sorry, but your father asked me not to tell you anything."
54
  target_text = """突然,身边一阵笑声。我看着他们,意气风发地挺直了胸膛,甩了甩那稍显肉感的双臂,轻笑道:"我身上的肉,是为了掩饰我爆棚的魅力,否则,岂不吓坏了你们呢?" """
55
+ #target_text = "Dealing with family secrets is never easy. Yet, sometimes, omission is a form of protection, intending to safeguard some from the harsh truths. One day, I hope you understand the reasons behind my actions. Until then, Anna, please, bear with me."
56
+ input_text = prompt_text + ' ' + target_text
57
 
58
  def ids_to_speech_tokens(speech_ids):
59