gaoyang07 commited on
Commit
8317ae7
·
1 Parent(s): 0782d24
app.py CHANGED
@@ -30,8 +30,8 @@ MODE_CONTINUE = "Continuation"
30
  MODE_CONTINUE_CLONE = "Continuation + Clone"
31
  ZH_TOKENS_PER_CHAR = 3.098411951313033
32
  EN_TOKENS_PER_CHAR = 0.8673376262755219
33
- REFERENCE_AUDIO_DIR = Path(__file__).resolve().parent.parent / "assets" / "audio"
34
- EXAMPLE_TEXTS_JSONL_PATH = Path(__file__).resolve().parent.parent / "assets" / "text" / "moss_tts_example_texts.jsonl"
35
 
36
 
37
  def _parse_example_id(example_id: str) -> tuple[str, int] | None:
 
30
  MODE_CONTINUE_CLONE = "Continuation + Clone"
31
  ZH_TOKENS_PER_CHAR = 3.098411951313033
32
  EN_TOKENS_PER_CHAR = 0.8673376262755219
33
+ REFERENCE_AUDIO_DIR = Path(__file__).resolve().parent / "assets" / "audio"
34
+ EXAMPLE_TEXTS_JSONL_PATH = Path(__file__).resolve().parent / "assets" / "text" / "moss_tts_example_texts.jsonl"
35
 
36
 
37
  def _parse_example_id(example_id: str) -> tuple[str, int] | None:
assets/audio/{audio/reference_en_0.mp3 → reference_en_0.mp3} RENAMED
File without changes
assets/audio/{audio/reference_en_1.mp3 → reference_en_1.mp3} RENAMED
File without changes
assets/audio/{audio/reference_en_2.mp3 → reference_en_2.mp3} RENAMED
File without changes
assets/audio/{audio/reference_en_3.mp3 → reference_en_3.mp3} RENAMED
File without changes
assets/audio/{audio/reference_zh_0.wav → reference_zh_0.wav} RENAMED
File without changes
assets/audio/{audio/reference_zh_1.wav → reference_zh_1.wav} RENAMED
File without changes
assets/audio/{audio/reference_zh_2.wav → reference_zh_2.wav} RENAMED
File without changes
assets/audio/{audio/reference_zh_3.mp3 → reference_zh_3.mp3} RENAMED
File without changes
assets/text/{text/moss_tts_example_texts.jsonl → moss_tts_example_texts.jsonl} RENAMED
File without changes
assets/text/text/moss_voice_generator_example_texts.jsonl DELETED
@@ -1,8 +0,0 @@
1
- {"id":"zh/0","language":"zh","instruction":"撕心裂肺,声泪俱下的中年女性","text":"皇上,臣妾做不到啊!皇上,您就杀了臣妾吧!"}
2
- {"id":"zh/1","language":"zh","instruction":"年轻女性,开头傲慢不屑,发现对方身份后秒怂,疯狂道歉,惊慌失措","text":"你谁啊,关你什么事?啊…王总,您好您好,我不知道是您……"}
3
- {"id":"zh/2","language":"zh","instruction":"疲惫沙哑的老年声音缓慢抱怨,带有轻微呻吟。","text":"哎呀,我的老腰啊,这年纪大了就是不行了。"}
4
- {"id":"zh/3","language":"zh","instruction":"粗犷急躁的海盗船长,语速快,语调低沉而充满命令,带着一股不容置疑的霸道。","text":"快点!把那箱金币搬过来!速度快点!别磨磨蹭蹭的!我们必须在涨潮之前离开这里,否则就来不及了!"}
5
- {"id":"en/0","language":"en","instruction":"Mom scolding kid for breaking a vase, then seeing he cut himself, shifting to concern","text":"How many times have I told you not to run in the house?! You could have…… oh honey, you're bleeding! Let me see your hand…… It's okay, baby."}
6
- {"id":"en/1","language":"en","instruction":"An elderly female voice, slightly nasal and soft, speaking in a frail, polite British tone, conveying subtle discomfort with gentle hesitation.","text":"Achoo! Oh dear, I do believe I'm catching a cold. This dreadful weather is just too much."}
7
- {"id":"en/2","language":"en","instruction":"Little girl, innocent and curious, high-pitched and adorable","text":"Mommy, why is the sky blue? And why do birds fly? And why-"}
8
- {"id":"en/3","language":"en","instruction":"Emotional pop ballad with smooth, melodic delivery, slow tempo with gentle vibrato on sustained notes, conveying hope and vulnerability.","text":"Walking down this empty street tonight, searching for a guiding light, stars above shine oh so bright, everything will be alright"}