mask指定词云形状,默认为长方形,需要引进imread()函数。&quot;w&nbsp;=&nbsp;wordcloud.WordCloud(width&nbsp;=&nbsp;1000,\&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;height&nbsp;=&nbsp;700,font_path=&quot;msyh.ttc&quot;)w.generate(&quot;&nbsp;&quot;.join(jieba.lcut(txt)))w.to_file(&quot;ceshi.png&quot;)图片效果如图1所示。w.to_file(&quot;grwordcloud.png&quot;)12345678910111213141516import&nbsp;jiebaimport&nbsp;wordcloudf&nbsp;=&nbsp;open(&quot;2018年政府工作报告.txt&quot;,&nbsp;&quot;r&quot;,&nbsp;encoding=&quot;utf-8&quot;)&nbsp;t&nbsp;=&nbsp;f.read()f.close()ls&nbsp;=&nbsp;jieba.lcut(t)&nbsp;txt&nbsp;=&nbsp;&quot;&nbsp;&quot;.join(ls)w&nbsp;=&nbsp;wordcloud.WordCloud(&nbsp;\&nbsp;&nbsp;&nbsp;&nbsp;width&nbsp;=&nbsp;700,&nbsp;height&nbsp;=&nbsp;300,\&nbsp;&nbsp;&nbsp;&nbsp;background_color&nbsp;=&nbsp;&quot;white&quot;,&nbsp;&nbsp;&nbsp;&nbsp;font_path&nbsp;=&nbsp;&quot;msyh.ttc&quot;,max_words&nbsp;=&nbsp;20&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)w.generate(txt)w.to_file(&quot;grwordcloud.png&quot;)结果图如2所示。作者你好,最近在看webrtc_agc,在vad之前首先进行了downsampleBy2,将16kHz或8kHz都降到4kHz。37120202000100。