title: How to change accent of TextToSpeech dynamically in android
body: <p>In my app we can change language dynamically. I've written following code to set textToSpeech language</p>
  
  <pre><code> if (textToSpeech!!.isLanguageAvailable(CountryConfiguration.locale) == TextToSpeech.LANG_AVAILABLE) {
              textToSpeech!!.language = CountryConfiguration.locale
          }
  </code></pre>
  
  <p>but it is not changing accent of speech. Accent of speech is default locale of device.</p>
  
  <p>Is there any way to change accent of speech?</p>