File size: 482 Bytes
d66c48f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Copyright (c) 2024 Amphion.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import re
from utils.g2p_new.mandarin import chinese_to_ipa

def cjekfd_cleaners(text, language, text_tokenizers):

    if language == 'zh':
        return chinese_to_ipa(text, text_tokenizers['zh'])
    else:
        raise Exception('Unknown or Not supported yet language: %s' % language)
        return None