Reference to the tts sdk is found at http://developer.android.com/reference/android/speech/tts/TextToSpeech.html
Again, the New Boston gives tutorials on using the Text to Speech :
http://thenewboston.org/watch.php?cat=6&number=187
The tts needs to be initialised, this is done using the OnInitListener, the language is then set to UK.
The phrases for the text to speech are:
- Your Shot will be a Hit
- Your Shot will be a Miss
- No Server Found
It was discovered that the TTS works on a standalone Activity but when the TTs was integrated into the Tab View, it couldn't be initialised.
So a new layout for the application was to be created.
This would be a menu which contained 3 buttons; Start, Instructions and Preferences.
The background colour of this menu is set to be; "009900"
Menu:
No comments:
Post a Comment