diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/www/minibar/minibar_support.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/www/minibar/minibar_support.js b/src/www/minibar/minibar_support.js index 46da3d846..749f10d3c 100644 --- a/src/www/minibar/minibar_support.js +++ b/src/www/minibar/minibar_support.js @@ -85,7 +85,9 @@ function speech_buttons(to3,to2,txt) { var pick=pick2dash } function btn(v) { - var u=new SpeechSynthesisUtterance(txt) + // Remove spaces more fluent Thai: + var txt2 = v.lang=="th-TH" ? txt.split(" ").join("") : txt + var u=new SpeechSynthesisUtterance(txt2) u.lang=v.lang // how to use v.voiceURI or v.name? function speak() { |
