microsoft / cognitive-services-sdk-react-native-example

Example repo integrating the JavaScript Speech SDK with a react native that runs on Android and iOS
20 stars 9 forks source link

Speech to Text Freezes in Background Mode #38

Open KatkamSiddeshwar opened 1 year ago

KatkamSiddeshwar commented 1 year ago

I've encountered an issue with the Speech to Text functionality in our app. When the app is in the foreground, everything works perfectly. However, the problem arises when the app goes into the background state. The translation process seems to get stuck, and it only resumes when I bring the app back to the foreground.

Issue Details: Speech to Text works as expected when the app is in the foreground. However, when the app goes into the background, the translation process encounters issues. The translation remains stuck until the app is brought back to the foreground.

Request for Assistance: I'd like to explore the possibility of running Speech to Text even when the app is in the background. Could you please provide guidance on how to achieve this or if there's a workaround for this issue?

Your help would be greatly appreciated in resolving this matter.