swift3 - Swift 3.1 Text to speech Bug -
i make small test programme. classic example.
import uikit import avfoundation class viewcontroller: uiviewcontroller { let voices = avspeechsynthesisvoice.speechvoices() var voicetouse: avspeechsynthesisvoice? let string = "hello, world!" func tts(){ let utterance = avspeechutterance(string: string) utterance.voice = avspeechsynthesisvoice(language: "en-us") utterance.volume = 1.5 utterance.rate = 0.5 utterance.pitchmultiplier = 1.25 let synth = avspeechsynthesizer() synth.speak(utterance) } override func viewdidload() { super.viewdidload() tts() } override func didreceivememorywarning() { super.didreceivememorywarning() // dispose of resources can recreated. } }
but in logs time write bug
2017-08-19 21:42:22.674325 ttsonle[75447:2812397] 0x608000147170 copy matching assets reply: xpc_type_dictionary { count = 2, transaction: 0, voucher = 0x0, contents = "assets" => : { length = 1261 bytes, contents = 0x62706c6973743030d4010203040506666758247665727369... } "result" => : 0 } 2017-08-19 21:42:22.680837 ttsonle[75447:2812397] 0x608000148090 copy assets attributes reply: xpc_type_dictionary { count = 1, transaction: 0, voucher = 0x0, contents = "result" => : 1 } 2017-08-19 21:42:22.681440 ttsonle[75447:2812397] [mobileasseterror:1] unable copy asset attributes 2017-08-19 21:42:22.682763 ttsonle[75447:2812397] not attribute 'localurl': error domain=mobileasseterror code=1 "unable copy asset attributes" userinfo={nsdescription=unable copy asset attributes}
with bug application not work correctly.
Comments
Post a Comment