-
Notifications
You must be signed in to change notification settings - Fork 33
Description
Environment:
blits version: @lightningjs/[email protected]
Platforms tested: Web, Tizen TV, LG webOS TV
Issue observed: Only on LG webOS TV
Description:
When using the Blits announcer plugin, audio announcements work correctly on Web and Tizen TVs, but on LG webOS TVs the announcements are silent. The Blits announcer does not produce any audible output on webOS, requiring the use of the native LG TTS APIs.
Steps to Reproduce:
Install @lightningjs/[email protected].
Use the Blits announcer plugin to trigger a speech announcement.
Run the app on an LG webOS TV.
Observe that no audio is heard, while the same code works on Web and Tizen TVs.
Expected Behavior:
The announcer should produce audible speech output on LG webOS TVs, similar to its behavior on other platforms.
Workaround:
Using the LG webOS TTS service manually works:
const speakWebOS = (text: string): Promise<string | null> => {
return new Promise((resolve) => {
if (typeof webOS === 'undefined') {
console.warn('[TTS] webOS service not available')
resolve(null)
return
}
webOS.service.request('luna://com.webos.service.tts', {
method: 'speak',
onFailure() {
console.warn('[WEBOS] Failed to Speak text via webOS TTS service')
resolve('')
},
onSuccess(response: any) {
console.log('[WEBOS] Successful speaking', response)
resolve(response)
},
parameters: {
text,
},
})
})
}
Additional Info:
My index.html
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=1920, height=1080, initial-scale=1.0, user-scalable=no " />
<title>Play</title>
<link rel="stylesheet" href="src/assets/player.css" />
<script>
if (window.location.hash === "#tizen" || window.location.hash === "#webos" || window.location.hash === "#philips") {
const cleanUrl = window.location.href.replace(window.location.hash, "");
window.location.href = cleanUrl;
}
</script>
</head>
<body>
<div id="app"></div>
<script type="module" src="src/index.ts"></script>
</body>
</html>
Notes:
The issue appears to be specific to LG webOS TVs.
Blits announcer may need to integrate or fallback to LG’s native TTS APIs for webOS compatibility.