title: How to make a pause button for Android Text-to-speech?
body: <p>I'm a newbie in android dev and this is my first time in stackoverflow.
  <br>
  Im currently developing a simple workout app for my Software Engineering subject and I implemented Text-to-Speech to read out the workout steps.
  I have a button named "Play/Pause Audio"
  <br>This is my onclick listener:</p>
  
  <pre><code>  speak.setOnClickListener(new OnClickListener() {
          @Override
          public void onClick(View v) {
              if(!tts.isSpeaking()) {
                  HashMap&lt;String, String&gt; params = new HashMap&lt;String, String&gt;();
                  params.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, "sampletext");
                  tts.speak(tv.getText().toString(), TextToSpeech.QUEUE_ADD, params);
              } else {
                  tts.stop();
              }
          }
      });
  </code></pre>
  
  <p>But when i try to pause it, it stops and restarts the process. 
   Is there a way to pause TTS?<br>
  Thank you so much!!</p>