You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 21, 2024. It is now read-only.
This project follows TIE SDK connectivity guidelines which are fully detailed in [tie-api-example-android](https://github.com/artificialsolutions/tie-api-example-android) example.
34
34
35
-
### Speech Recognition (ASR)
36
-
This project implements Google's Android native ASR with [RecognizerIntent](https://developer.android.com/reference/android/speech/RecognizerIntent).
37
-
The method `launchGoogleVoice` initializes RecognizerIntent with parameters such as Language, number of results, confidence scores, and is called from the microphone button's XML code in `activity_chat.xml` It also stops any TTS playback before launching ASR.
38
-
Final ASR results are received at the `onActivity` callback, sent to Engine as text with `consumeASRresults(int resultCode, Intent data)`
35
+
### Speech Recognition
36
+
This project implements Google's Android native Speech Recognition (ASR) with [RecognizerIntent](https://developer.android.com/reference/android/speech/RecognizerIntent).
37
+
The method `launchGoogleVoice` initializes RecognizerIntent with parameters such as Language, number of results, confidence scores, and is called from the microphone button's XML code in `activity_chat.xml` It also stops any Text to Speech playback before launching Speech Recognition.
38
+
Final Speech Recognition results are received at the `onActivity` callback, sent to Engine as text with `consumeASRresults(int resultCode, Intent data)`
39
39
40
-
Localized ASR language is customizable, for example, in this project, ASR language is set to UK English with `asrIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, "en_GB")`.
40
+
The recognition language is customizable, for example, in this project, ASR language is set to UK English with `asrIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, "en_GB")`.
41
41
42
-
### TTS
43
-
TTS is implemented with Android's native [TTS](https://developer.android.com/reference/android/speech/tts/TextToSpeech). The object `googleTextToSpeech` within the project is the center of voice synthesis, and is initialized, launched and released throughout the lifecycle.
42
+
### Text to Speech
43
+
Text to Speech (TTS) is implemented with Android's native [Text to Speech](https://developer.android.com/reference/android/speech/tts/TextToSpeech). The object `googleTextToSpeech` within the project is the center of voice synthesis, and is initialized, launched and released throughout the lifecycle.
44
44
In this project, the method `saySomething(String text)` speaks out loud the bot responses received from Teneo Engine.
45
45
Localized TTS language is customizable. In this project, for example, TTS language is set to UK English with `googleTextToSpeech.setLanguage(Locale.UK)`.
0 commit comments