mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-02-07 08:42:15 +08:00
7 lines
190 B
Python
7 lines
190 B
Python
def create_translator(voice_type):
|
|
if voice_type == "baidu":
|
|
from translate.baidu.baidu_translate import BaiduTranslator
|
|
|
|
return BaiduTranslator()
|
|
raise RuntimeError
|