File size: 190 Bytes
61517de
 
 
 
 
 
1
2
3
4
5
6
7
def create_translator(voice_type):
    if voice_type == "baidu":
        from translate.baidu.baidu_translate import BaiduTranslator

        return BaiduTranslator()
    raise RuntimeError