1<p><b>About: </b> 2This sample is a phone application that provides a chat experience in which users can respond to 3messages with a quick voice response. New messages create a notification with a "Reply" action. 4The notification is bridged from phone to wearable, and selecting the "Reply" action on the 5wearable opens the voice transcription UI allowing the user to speak a response.</p> 6 7<p>To keep the example simple and self-contained, instead of a real chat application (which would 8require a server or a peer-to-peer connection), the conversation is conducted with an chat bot on 9the phone. Each time the bot responds, the phone app updates the notification and allows the user 10to write back. This sample is primarily intended to demonstrate the voice-reply capabilities 11provided by the Android Wear notification API.</p> 12 13<p>When using the emulator you can type a response instead of speaking it aloud. To allow typed 14responses, ensure that your emulator image has the "hardware keyboard present" option enabled. 15After typing your message into the emulator window, hit the enter key and wait a few seconds for 16your message to be sent.</p> 17 18 19<p><b>How to run:</b> Install the Application APK on the companion and run it. A notification will 20automatically be bridged onto the wearable, with a "Reply" action.</p> 21<p><b>Screenshots:</b> 22 <figure> 23 <img src="screenshots/companion_eliza_chat.png" alt="Eliza chat when opened on companion" 24 width="216" height="384"> 25 <img src="screenshots/wearable_eliza_notification.png" alt="Initial notification on 26 wearable" width="140" height="140"> 27 <img src="screenshots/wearable_voice_reply.png" alt="Initial notification on 28 wearable" width="140" height="140"> 29 <img src="screenshots/companion_eliza_chat_response.png" alt="Response received on 30 companion" width="216" height="384"> 31 <figcaption>The progressing stages of a chat with Eliza.</figcaption> 32 </figure> 33</p> 34