Skip to content

Instantly share code, notes, and snippets.

@fevziomurtekin
Created January 25, 2019 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fevziomurtekin/499f7b44715a0d39961c0318851a0846 to your computer and use it in GitHub Desktop.
Save fevziomurtekin/499f7b44715a0d39961c0318851a0846 to your computer and use it in GitHub Desktop.
private fun initAsisstantVoice() {
asistan_voice= TextToSpeech(applicationContext,object : TextToSpeech.OnInitListener {
override fun onInit(status: Int) {
if (status!=TextToSpeech.ERROR){
asistan_voice?.language=Locale("tr")
}
}
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment