Trying to implement the text to speech but I don't want the user to press a button I just want to get the app to speak dependant on what's happening in the program but whilst I can get the example's to work on my phone I keep getting error messages when I try to simply tell it to speak a specific text string.
java.lang.RuntimeException: Error speaking text.
when trying to action this
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
			
			java.lang.RuntimeException: Error speaking text.
when trying to action this
			
				B4X:
			
		
		
		    If tts.Ready Then
                    If tts.IsAvailableLanguage("en_US") Then tts.SetLanguage("en","US")
                    tts.Speak("Just a test to se if it gets read out",False)
                End If 
				 
 
		 
 
		 
						
					 
 
		 
 
		 
 
		 
 
		