te-ch commited on
Commit
c3646e2
·
1 Parent(s): 926be5d

ca-va not _va

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,8 +10,8 @@ MAX_TXT_LEN = 325
10
  request_count = 0
11
 
12
  def phonemiser(text, dialect):
13
- dialects = {"Central": "ca", "Valencian": "ca_va", "North-West": "ca_nw"}
14
- dialect = dialects[dialect] #Define dialect from espeak-ng-data/lang/roa/ca
15
  fonemitzador = Phonemizer(dialect) #Set correct dialect for the phonemiser
16
  if len(text) > MAX_TXT_LEN:
17
  text = text[:MAX_TXT_LEN]
 
10
  request_count = 0
11
 
12
  def phonemiser(text, dialect):
13
+ dialects = {"Central": "ca", "Valencian": "ca-va", "North-West": "ca-nw"}
14
+ dialect = dialects[dialect] #Define dialect from espeak-ng-data/lang/roa/ca*
15
  fonemitzador = Phonemizer(dialect) #Set correct dialect for the phonemiser
16
  if len(text) > MAX_TXT_LEN:
17
  text = text[:MAX_TXT_LEN]