xamarin essentials texttospeech exception handling

Min T 41 Reputation points

im currently using Xamarin.Essentials TextToSpeech in a C# android app.

I've come across a problem I can't quite figure out where the user is using the device as a scanner scanning item barcodes. with each scan, the TTS will say the items description. if the user scans too fast, itll eventually cause an exception . The problem arises when i do catch the exception, we lose the text to speech afterwards unless we restart the app. Is there a way to reset the static class somehow (i doubt it) or is there some way to reset it so that we dont need to restart the whole app to get speech working again?

A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
{count} votes