mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
Minibar: remove spaces for better Thai speech synthesis
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user