A simple command line tool to convert Chinese characters to pinyin.
sh $ cargo install pinyin-tool
Right now, pinyin-tool only supports stdin input:
pinyin-tool
sh $ echo 老婆,我去工作 | pinyin-tool lǎopó,wǒ qù gōngzuò
sh $ echo 老婆,我去工作 | pinyin-tool lǎopó,wǒ qù gōngzuò