- Knowledge Base
- Developer
- WearHF Intents
-
Developer
-
RealWear Navigator™ 500 Series
- Overview
- Features and Specifications
- Wearing Your Device
- Device Setup
- Interacting with Your Device
- Device Power
- Battery Use
- Home Screen
- My Programs
- My Camera
- My Files
- My Training
- Safety
- Device Care
- Ownership Information
- User Guide
- FAQ
- Thermal Camera Module
- Display Technology Comparison
- Cleaning Your Device
-
RealWear Cloud
-
RealWear Releases
-
RealWear HMT-1®
-
RealWear HMT-1Z1®
-
RealWear Apps
-
Configure
-
RealWear Modules & Accessories
-
RealWear Navigator™ Series
Text to Speech (TTS) Intents
WearHF provides a TTS (text to speech) service which allows your app to speak text out to the user using the HMT’s speaker. This provides an alternate way to provide information other than using the screen.
Send a string to the TTS service
If you want WearHF to read out a string of text using TTS, use the following intent.
Intent
com.realwear.ttsservice.intent.action.TTS
Extras
Extra | Type | Description |
---|---|---|
text_to_speak | String | The string that the TTS service should read to the user |
pause_speech_recognizer | boolean | true if the speech recognizer should be paused while TTS is reading out the text to the user
|
tts_id | int | A unique ID that will be passed back when the TTS service has completed reading out the text |
Response Intents
When the TTS service beings playing out your text it will send out an intent to let your app know.
com.realwear.ttsservice.intent.action.TTS_STARTED
Extras
Extra | Type | Description |
---|---|---|
tts_id | int | The unique ID that was provided with the start TTS intent |
When the TTS service has finished playing out your text it will send out an intent to let your app know.
com.realwear.ttsservice.intent.action.TTS_FINISHED
Extras
Extra | Type | Description |
---|---|---|
tts_id | int | The unique ID that was provided with the start TTS intent |
Example
For an example of how to use TTS in your app, see our developer example.