1
0
forked from GitHub/gf-core

Minibar: remove spaces for better Thai speech synthesis

This commit is contained in:
hallgren
2016-06-06 10:46:13 +00:00
parent e755c013f8
commit 5b491b7312

View File

@@ -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() {