Why I get “Build MacinTalk Voice for Asset: (null)” in iOS device test

I am executing the code below for a text-to-speech project on a device, but I get the error “Creating MacinTalk Voice for Asset: (null)” Please help, how can I fix it, or any tips on what is going wrong.

AVSpeechSynthesizer *synthesizer = [[AVSpeechSynthesizer alloc]init]; AVSpeechUtterance *utterance = [AVSpeechUtterance speechUtteranceWithString:@"Tips For Silicon Valley From A Startup Accelerator In Gaza"]; [utterance setRate:0.015f]; utterance.voice = [AVSpeechSynthesisVoice voiceWithLanguage:@"en-GB"]; [synthesizer speakUtterance:utterance]; 
+5
source share
2 answers

If this is the same as what I see, then this is not an error - this is a log output and a slight annoyance, but it can be ignored. The null link is troubling, but the speech synthesizer still works and speaks correctly, and users will not see this message on real devices. I only saw this with iOS9, maybe the log event included during development forgot to disable it.

+2
source

I have a log error (Build MacinTalk voice for asset: (null)) I do not know why, but if your project does not show sound on the device, I think that you forgot to enable the activation of the audio session.

 import AVFoundation 

///

 do{ try AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryPlayback) do{ try AVAudioSession.sharedInstance().setActive(true) }catch{ } }catch{ } 
+2
source

Source: https://habr.com/ru/post/1232240/


All Articles