@SuppressWarnings("deprecation") protected int callSpeak(String text,float volume,int utteranceId){
  HashMap<String,String> params=new HashMap<String,String>();
  if (volume != 1.0) {
    params.put(TextToSpeech.Engine.KEY_PARAM_VOLUME,Double.toString(volume));
  }
  params.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID,Integer.toString(utteranceId));
  return mTextToSpeech.speak(text,TextToSpeech.QUEUE_FLUSH,params);
}

@ SuppressWarnings ( "deprecation" ) protected int callSpeak ( String text , float volume , int utteranceId ) { HashMap < String , String > params = new HashMap < String , String > ( ) ; if ( volume != 1.0 ) { params . put ( TextToSpeech . Engine . KEY_PARAM_VOLUME , Double . toString ( volume ) ) ; } params . put ( TextToSpeech . Engine . KEY_PARAM_UTTERANCE_ID , Integer . toString ( utteranceId ) ) ; return mTextToSpeech . speak ( text , TextToSpeech . QUEUE_FLUSH , params ) ; }
this is overridden by lollipopttsplatformimpl because the api changed .
