- text
- The string of text. Example: "south_south_east"
- filename
- The full path to the sound file (for example: "/sdcard/mysounds/hello.wav")
Documentation for this section has not yet been entered.
Adds a mapping between a string of text and a sound file. Using this, it is possible to add custom pronounciations for a string of text. After a call to this method, subsequent calls to TextToSpeech.speak(java.lang.String, int, java.util.HashMap<java.lang.String, java.lang.String>) will play the specified sound resource if it is available, or synthesize the text it is missing.