Pendrokar commited on
Commit
1c7ec6e
β€’
1 Parent(s): 2872662

arpabet v3 fix test

Browse files
resources/app/arpabet/custom.json CHANGED
@@ -1,17 +1,13 @@
1
  {
2
  "title": "Custom Dictionary",
3
- "description": "Your own custom dictionary",
4
  "version": "1.0.0",
5
- "author": "Your name",
6
  "nexusLink": null,
7
  "data": {
8
- "stuff": {
9
- "enabled": false,
10
- "arpabet": "S T AA0 F"
11
- },
12
- "things": {
13
- "enabled": false,
14
- "arpabet": "T HH IH N G S"
15
  }
16
  }
17
  }
 
1
  {
2
  "title": "Custom Dictionary",
3
+ "description": "v3 test",
4
  "version": "1.0.0",
5
+ "author": "Pendrokar",
6
  "nexusLink": null,
7
  "data": {
8
+ "delzin": {
9
+ "enabled": true,
10
+ "arpabet": "D EH0 L F IY1 N"
 
 
 
 
11
  }
12
  }
13
  }
resources/app/no_server.py CHANGED
@@ -146,8 +146,11 @@ def loadModel(post_data):
146
  models_manager.load_model(modelType, ckpt+".pt", instance_index=instance_index, n_speakers=n_speakers, base_lang=base_lang)
147
  plugin_manager.run_plugins(plist=plugin_manager.plugins["load-model"]["post"], event="post load-model", data=post_data)
148
 
149
- if modelType=="fastpitch1_1":
150
- models_manager.models_bank["fastpitch1_1"][instance_index].init_arpabet_dicts()
 
 
 
151
 
152
  return req_response
153
 
 
146
  models_manager.load_model(modelType, ckpt+".pt", instance_index=instance_index, n_speakers=n_speakers, base_lang=base_lang)
147
  plugin_manager.run_plugins(plist=plugin_manager.plugins["load-model"]["post"], event="post load-model", data=post_data)
148
 
149
+ if (
150
+ modelType=="fastpitch1_1"
151
+ or modelType=="xvapitch"
152
+ ):
153
+ models_manager.models_bank[modelType][instance_index].init_arpabet_dicts()
154
 
155
  return req_response
156