Android Question TTS Library

Hi André! You can use the standard B4A TTS library for Dutch, as long as the Android TTS engine on your device has a Dutch voice available. We use the same approach in Bingo Bongo for other languages: wait for Ready, then pass the language and country separately.

Code: Copy
' In Process_Globals: Private Voice As TTS
' Initialize it with: Voice.Initialize("Voice")
Private Sub Voice_Ready (Success As Boolean)
    If Success = False Then Return
    If Voice.SetLanguage("nl", "NL") Then
        Voice.Speak("Hallo, dit is een test in het Nederlands.", True)
    Else
        Log("Dutch is not available in the current TTS engine.")
    End If
End Sub

If SetLanguage returns False, check whether Dutch voice data is installed for your selected engine in Android’s text-to-speech settings. You can also try SetLanguage("nl", "") to request Dutch without a specific country.
 
Upvote 1
Back
Top