四,设置声音(可选)
官方给出的方案是Termux+Pluseaudio,但是由于本人鸿蒙3.0先天Pluseaudio缺失

,这里介绍另一种方案——Spice音频输出
经测试,Create command软件创建的声卡命令不能正常使用,需手动设置声卡命令
这里需要下载"aSpice Pro"软件,用来当做音频输出端,进入软件,新建一个连接,名字随便,地址就是之前Create command软件里的Spice服务器的地址,默认是localhost,端口5900
另外一定要把Enable Sound打开,不然没声音
在Qemu附加参数中添加这样一行命令
“-device XXX,audiodev=audio0”
XXX代表声卡名称,可用的声卡有AC97,intel-hda等,均根据镜像主说明选择
还有一点,如果选择hda声卡,则应有两个命令:“-device intel-hda”,“-device hda-duplex,audiodev=audio0”
之后,加入“-audiodev spice,id=audio0”命令,表示使用Spice音频输出
注意Qemu命令的参数之间应加一个空格

