Azure-Samples / cognitive-services-speech-sdk

Sample code for the Microsoft Cognitive Services Speech SDK
MIT License
2.86k stars 1.84k forks source link

[iOS] [Multi-Device Conversation] Application crashes with 'Timeout while waiting for service to stop'. #2607

Open adpinola opened 3 weeks ago

adpinola commented 3 weeks ago

Bug Description

I have an application that uses SPXConversationTranslator to establish multi-device conversations. The application was developed and maintained with a MacBook (M1 chip). We had to upgrade the MacBook to an M2 chip (newer OS, newer XCode version) to allow pushing new versions to App Store Connect.

The build of the same application using Xcode 16.0 now doesn't work as expected.

The user starts the speech recording (within a conversation) and then pushes the button to stop the voice recording but it is not detected and the application crashes (and the conversation ends) indicating the stop recording signal wasn't received.

It doesn't happen using the SpeechRecognizer class, it only happens in the context of a multi-device conversation using SPXConversationTranslator.

To Reproduce

Steps to reproduce the behavior:

  1. Create a multi-device conversation and join the room
  2. Send an audio message

Expected behavior

It should work as it used to before building the application with XCode 16.0 on a Mac with M2 chip

Version of the Cognitive Services Speech SDK

1.40.0 but the error happens on all versions from 1.24.0 on.

Platform, Operating System, and Programming Language

Speech SDK log speech.log

adpinola commented 1 week ago

Update: The issue seems not related to the changes on M1 to M2 chips since we started experiencing the same in Android version.