1page.title=Headset Requirements 2@jd:body 3 4<!-- 5 Copyright 2015 The Android Open Source Project 6 7 Licensed under the Apache License, Version 2.0 (the "License"); 8 you may not use this file except in compliance with the License. 9 You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 13 Unless required by applicable law or agreed to in writing, software 14 distributed under the License is distributed on an "AS IS" BASIS, 15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 See the License for the specific language governing permissions and 17 limitations under the License. 18--> 19<div id="qv-wrapper"> 20 <div id="qv"> 21 <h2>In this document</h2> 22 <ol id="auto-toc"> 23 </ol> 24 </div> 25</div> 26 27<h2 id=media>Media</h2> 28 29<p>If a user connects a headset to the device while playing media, the audio 30output (sound) should be heard only via the headset.</p> 31 32<p>For example, while playing media with the <a 33href="https://github.com/googlesamples/android-UniversalMusicPlayer">open 34source</a> <a 35href="https://android-developers.blogspot.com/2015/03/a-new-reference-app-for-multi-device.html">Universal 36Music Player</a>, pressing the play/pause button should pause playback. 37Pressing the same button when media is paused should resume playback.</p> 38 39<p>If the headset has volume control buttons: </p> 40 41<ul> 42 <li> Pressing the volume-up button should increase the volume incrementally each 43time the button is pressed until maximum volume is reached. If the volume-up 44button is pressed and held, the volume should gradually increase to maximum 45volume setting. 46 <li> Pressing the volume-down button should decrease the volume incrementally each 47time the button is pressed until entirely muted. If the volume-down button is 48pressed and held, the volume should gradually decrease to silent. 49 <li> Pressing the volume-up button when in a muted state should increase the volume 50one notch at a time starting from silent. 51</ul> 52 53<p><strong>Recommended for Apps</strong>: On disconnecting the headset, sound output should stop and playback should 54pause. On reconnecting, playback should not start again unless the user presses 55the play button. Upon pressing play, sound output should again be limited to 56the headset.</p> 57 58<h3 id=one_button>One button</h3> 59 60<img src="images/media_one.png" alt="Button functions for one-button headsets handling a media stream."> 61</span> 62 63<p class="img-caption"><strong>Figure 1.</strong> Button functions for one-button headsets handling a media stream.</p> 64 65<h3 id=two_buttons>Two buttons</h3> 66 67<img src="images/media_two.png" alt="Button functions for two-button headsets handling a media stream."> 68 69<p class="img-caption"><strong>Figure 2.</strong> Button functions for two-button headsets handling a media stream.</p> 70 71<h3 id=three_buttons>Three buttons</h3> 72 73<img src="images/media_three.png" alt="Button functions for three-button headsets handling a media stream."> 74 75<p class="img-caption"><strong>Figure 3.</strong> Button functions for three-button headsets handling a media stream.</p> 76 77<h3 id=four_buttons>Four buttons</h3> 78 79<img src="images/media_four.png" alt="Button functions for four-button headsets handling a media stream."> 80 81<p class="img-caption"><strong>Figure 4.</strong> Button functions for four-button headsets handling a media stream.</p> 82 83<h2 id=telephony>Telephony</h2> 84 85 86<p>If a user connects a headset to the device while a call is in progress, the 87conversation should continue on the headset. The call should not get 88disconnected, and the microphone should not be muted. If present, volume 89buttons should behave identically to media playback.</p> 90 91<p>Pressing the play/pause button while a phone call is in progress should toggle 92the microphone state between muted and unmuted. If a user receives calls while 93using the headset, the voice assistance button should allow handling of those 94calls:</p> 95 96<ul> 97 <li> While in a phone call, pressing quickly on the play/pause button should mute 98the microphone. And if pressed quickly again, the microphone should un-mute. 99 <li> While in a phone call, a long press on the play/pause button should end the 100telephone call. 101 <li> While receiving a phone call, pressing quickly on the play/pause button should 102accept the call. 103 <li> While receiving a phone call, a long press on the play/pause button should 104reject the call. 105</ul> 106 107<h3 id=one_button>One button</h3> 108 109<img src="images/telephony_one.png" alt="Button functions for one-button headsets handling a phone call."> 110 111<p class="img-caption"><strong>Figure 5.</strong> Button functions for one-button headsets handling a phone call. </p> 112 113<h3 id=two_buttons>Two buttons</h3> 114 115<img src="images/telephony_two.png" alt="Button functions for two-button headsets handling a phone call."> 116 117<p class="img-caption"><strong>Figure 6.</strong> Button functions for two-button headsets handling a phone call. </p> 118 119<h3 id=three_buttons>Three buttons</h3> 120 121<img src="images/telephony_three.png" alt="Button functions for three-button headsets handling a phone call."> 122 123<p class="img-caption"><strong>Figure 7.</strong> Button functions for three-button headsets handling a phone call. </p> 124 125<h3 id=four_buttons>Four buttons</h3> 126 127<img src="images/telephony_four.png" alt="Button functions for four-button headsets handling a phone call."> 128<p class="img-caption"><strong>Figure 8.</strong> Button functions for four-button headsets handling a phone call. </p> 129 130<h2 id=voice_assistance>Voice assistance</h2> 131 132<p>The voice assistance button is a new inline control standard for consistently 133and conveniently accessing a voice search feature from any approved wearable 134audio device. By pressing the button defined here, users will hear the two-tone 135signature <a href="http://en.wikipedia.org/wiki/Earcon">earcon</a> indicating that the device is listening and ready to receive the query.</p> 136 137<p>Whether embedded into a multi-function button or highlighted as a single 138button, it should always be quickly accessible, ergonomically correct, and 139placed intuitively as described in the following section.</p> 140 141<h2 id=buttons_and_function_mapping>Buttons and function mapping recommendations</h2> 142 143<p>The following diagrams depict the acceptable configuration of the Android voice 144assistance button.</p> 145 146<h3 id=options>Options</h3> 147 148<img src="images/button_configuration.png" alt="Button configuration options."> 149 150<p class="img-caption"><strong>Figure 9.</strong> Button configuration options. </p> 151 152<p>Buttons should always be front facing and spaced out so they can be easily 153located by touch only.</p> 154 155<h3 id=spacing>Spacing</h3> 156 157<p>Buttons must be more than 5mm and must have at least 5mm distance between 158buttons. For four-button headsets, there must be at least 9mm of space between 159button D and the cluster of other buttons. </p> 160 161<img src="images/button_spacing.png" alt="Button spacing requirements"> 162 163<p class="img-caption"><strong>Figure 10.</strong> Button spacing requirements.</p> 164 165<h3 id=icon>Icon</h3> 166 167<p>In the following diagram, A is unlabeled or labeled with a dot. B is labeled 168with a + or an arrow pointing up. C is labeled with a - or an arrow pointing 169down. D is labeled with the selected button icon.</p> 170 171<img src="images/button_icons.png" alt="Button icon requirements"> 172<p class="img-caption"><strong>Figure 11.</strong> Button icon requirements. </p> 173 174<h3 id=sizing>Sizing</h3> 175 176<p>The following diagram shows the ratio of button icon to the space around it.</p> 177 178<img src="images/icon_sizing.png" alt="Voice search button icon sizing requirements"> 179 180<p class="img-caption"><strong>Figure 12.</strong> Voice search button icon sizing requirements. </p> 181 182<h3 id=microphone_port>Microphone port</h3> 183 184<p>The microphone should never be obstructed when operating the buttons. Place the 185port away from finger interface area.</p> 186 187<img src="images/microphone.png" alt="Microphone placement"> 188 189<p class="img-caption"><strong>Figure 13.</strong> Microphone placement. </p> 190