mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -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
|
var pick=pick2dash
|
||||||
}
|
}
|
||||||
function btn(v) {
|
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?
|
u.lang=v.lang // how to use v.voiceURI or v.name?
|
||||||
|
|
||||||
function speak() {
|
function speak() {
|
||||||
|
|||||||
Reference in New Issue
Block a user