Tuesday 3 April 2012

Text to Speech and New Layout

For reference for the blog, text to speech will be referred to as tts.

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:


  1. Your Shot will be a Hit
  2. Your Shot will be a Miss
  3. 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:

 Instructions:


No comments:

Post a Comment