Xamarin Forms: How to highlight text and pause/play audio of text to speech?
问题 I am using the xamarin essentials package for text to speech feature. When speech the text I need to highlight the corresponding text. Also, I need an option to pause/play the speech. Please see this video. Screenshot: How can I achieve highlight text feature and pause/play audio as the video? 回答1: highlight text feature You could splite the Text of Label . And use Span to set the highlight . in xaml <StackLayout x:Name="firstPage" VerticalOptions="CenterAndExpand" HorizontalOptions=