Why I'm getting “Building MacinTalk voice for asset: (null)” in iOS device test

不打扰是莪最后的温柔 提交于 2019-12-05 10:18:45

If it the same as I am seeing then it is not really an error - it is an output to the log and a minor annoyance but can be ignored. The reference 'null' is worrying but the speechSynthesizer is still working and talking correctly and users will not see this message on real devices. I have only seen this since iOS9, possibly a log event turned on during development that they forgot to turn off.

I have log error like that (Building MacinTalk voice for asset: (null)) I don't know why, but if your project don't show sound in device I think you forgot allow activating an audio session.

import AVFoundation

///

do{
        try AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryPlayback)

        do{
            try AVAudioSession.sharedInstance().setActive(true)
        }catch{

        }
    }catch{

    }
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!