Merge pull request #8 from alfredmyers/patch-1

Minor fixes for Text To Speech
This commit is contained in:
Mark McLemore 2018-03-13 16:54:26 -07:00 коммит произвёл GitHub
Родитель d7d1d07dfb cb4dac2d97
Коммит f049e6bc30
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -159,12 +159,12 @@ a phone set up in Germany will install the German language, whereas one in Ameri
`TextToSpeech` can take up to 3 parameters, the first two are required with the third being optional
(`AppContext`, `IOnInitListener`, `engine`). The listener is used to bind to the service and test for failure
with the engine being any number of available Android text to speech engines, At a minimum, the device will
with the engine being any number of available Android text to speech engines. At a minimum, the device will
have Googles own engine.
### Step 2 - Finding the languages available
The `Java.Util.Locale` namespace contains a helpful method called `GetAvailableLocales()`. This list of languages
The `Java.Util.Locale` class contains a helpful method called `GetAvailableLocales()`. This list of languages
supported by the speech engine can then be tested against the installed languages.
It is a trivial matter to generate the list of "understood" languages. There will always be a default language
@ -227,7 +227,7 @@ protected override void OnActivityResult(int req, Result res, Intent data)
### Step 5 - The IOnInitListener
For an activity to be able to convert the text to speech, the interface method `OnInit` has to be created
For an activity to be able to convert the text to speech, the interface method `OnInit` has to be implemented
(this is the second parameter specified for the instantiation of the `TextToSpeech` class). This initializes
the listener and tests the result.