From 421a60cf942bfb7d3d9799bdd8d13bb5f3b02e17 Mon Sep 17 00:00:00 2001 From: WongLaw Date: Fri, 24 Feb 2023 02:11:24 +0000 Subject: [PATCH] Canton phonetic fix, test=tts --- examples/other/mfa/local/generate_canton_lexicon_wavlabs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/other/mfa/local/generate_canton_lexicon_wavlabs.py b/examples/other/mfa/local/generate_canton_lexicon_wavlabs.py index 6b412e917..e760528dc 100644 --- a/examples/other/mfa/local/generate_canton_lexicon_wavlabs.py +++ b/examples/other/mfa/local/generate_canton_lexicon_wavlabs.py @@ -75,7 +75,7 @@ if __name__ == "__main__": canton_list = canton_list.split(' ') all_canton.extend(canton_list) - all_canton = set(all_canton) + all_canton = sorted(list(set(all_canton))) with open(args.output_lexicon, 'w') as f: for canton in all_canton: