0

I am creating an app that will randomly generate character using ascii numbers and pronounce it with help of android TTS.

But When the character A and Z have some problems. A spell as I and Z as c.

  var ascInt: Int = randomAscii
  ascInt = ascInt.plus(97)
  val ascChar: Char = ascInt.toChar()
  s = ascChar.toString()
  1. I put .(dot) but not solved the problem.

Am I missing something?

Thanks

noobEinstien
  • 3,147
  • 4
  • 24
  • 42
  • 1
    what locale did you use for the TTS ? you can try different en locales like (UK, AU, etc). – Angel Koh Dec 29 '17 at 07:32
  • @AngelKoh I tried Locale.Us and Locale.UK . And It does nothing for me – noobEinstien Dec 29 '17 at 08:14
  • you have to use en_UK, en_AU, en_IN, etc. (note that you should check if the phone has that locale country or not also) refer to https://stackoverflow.com/questions/4872702/get-available-locales-for-text-to-speech-tts. – Angel Koh Dec 29 '17 at 08:17
  • 1
    _c/zee_ would be correct for a US locale. – Michael Dec 29 '17 at 13:18

0 Answers0