讯飞文字转语音在真机测试或打包apk测试无法将文字转化语音。
会报错
Cannot read property 'createUtility' of null
打印SpeechUtility也是null
let SpeechUtility = plus.android.importClass('com.iflytek.cloud.SpeechUtility');
SpeechUtility.createUtility(main,"appid");
let SynthesizerPlayer = plus.android.importClass('com.iflytek.cloud.SpeechSynthesizer');
let play = SynthesizerPlayer.createSynthesizer(main, null);
0 个回复