rettyprint">// Javascript code
function setExternalSpeaker () {
  var options = {
     externalSpeaker : true
  };
    
  function successCb() {
     // Do something
  }

  function failureCb(cbObject) {
     var errorCode = cbObject.errorCode;
     var errorText = cbObject.errorText;
     console.log ("Error Code [" + errorCode + "]: " + errorText);
  }

  var sound = new Sound();
  sound.setExternalSpeaker(successCb, failureCb, options);
}</pre>
								
							
						
							
								<dl class="detailLis