I can confirm that we also have crashes in iOS17 related to TTS.
I am going to report them, but Apple has never fixed any of the issues I have reported in 14 years of iOS development, so I hope that at least they can use the crashlog to figure out something.
This is our biggest crash and is affecting more than 200 users.
It is happening either with compiling with Xcode 15, or also in previous versions.
It is happening to users who have iOS17 in their phones.
--- Crashed: com.apple.main-thread EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000147482280 0 libobjc.A.dylib objc_retain_x8 + 16 1 AudioToolboxCore auoop::RenderPipeUser::~RenderPipeUser() + 112 2 AudioToolboxCore -[AUAudioUnit_XPC internalDeallocateRenderResources] + 92 3 AVFAudio AUInterfaceBaseV3::Uninitialize() + 60 4 AVFAudio AVAudioEngineGraph::PerformCommand(AUGraphNodeBaseV3&, AVAudioEngineGraph::ENodeCommand, void*, unsigned int) const + 772 5 AVFAudio AVAudioEngineGraph::_Uninitialize(NSError**) + 132 6 AVFAudio AVAudioEngineImpl::Stop(NSError**) + 396 7 AVFAudio -[AVAudioEngine dealloc] + 52 8 TextToSpeech TTSSpeechLanguageCanonicalFormToGeneralLanguage 9 libobjc.A.dylib object_cxxDestructFromClass(objc_object*, objc_class*) + 116 10 libobjc.A.dylib objc_destructInstance + 80 11 libobjc.A.dylib _objc_rootDealloc + 80 12 TextToSpeech TTSSpeechLanguageCanonicalFormToGeneralLanguage 13 TextToSpeech TTSVocalizerCopyURLForFallbackResource 14 TextToSpeech TTSSpeechUnitTestingMode 15 TextToSpeech AXAVSpeechSynthesisVoiceFromTTSSpeechVoice 16 libobjc.A.dylib object_cxxDestructFromClass(objc_object*, objc_class*) + 116 17 libobjc.A.dylib objc_destructInstance + 80 18 libobjc.A.dylib _objc_rootDealloc + 80 19 TextToSpeech TTSSpeechTransformTextWithLanguageAndVoiceIdentifier