I am looking to implement TTS on my web app. It appears that both aria-live regions and the SpeechSynthesis API are not supported by webOS.
I found these docs which suggest using the webOS TTS service. com.webos.service.tts | webOS Open Source Edition
I am making this call in order to attempt to have my web app speak text in support of TTS.
const apiCall: Promise<string> = new Promise((resolve) => {
window.webOS.service.request('luna://com.webos.service.tts', {
method: 'speak',
onFailure() {
resolve('');
},
onSuccess(response: any) {
resolve(response);
},
parameters: {
text,
},
});
});
It appears that the device is speaking some text when I first open the app, but as I navigate around, it does not continue to speak the focused text.