Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

WebAPI SpeechSynthesis (TTS) Unicode Support As Text Field to Speak

  • No replies
  • 0 have this problem
  • 10 views
more options

Hi,

I am translating from English text sentence to Cyrillic and my output of the the translated english sentence are in unicode, which i convert to code points. When I add the code points to the speak function, the system reads the line as literal. "And Number 1091"...etc

What is the proper way to add unicode characters in order for the system to read it?

The process is setup as: const synth = window.speechSynthesis; const speak = (text) => {

       const utterance = new SpeechSynthesisUtterance(text);
       utterance.lang = 'uk-UA';
        synth.speak(utterance);

}

const Text = 'укаінойникое'; // speak(Text);

Any help or pointers would be appreciated.

Hi, I am translating from English text sentence to Cyrillic and my output of the the translated english sentence are in unicode, which i convert to code points. When I add the code points to the speak function, the system reads the line as literal. "And Number 1091"...etc What is the proper way to add unicode characters in order for the system to read it? The process is setup as: const synth = window.speechSynthesis; const speak = (text) => { const utterance = new SpeechSynthesisUtterance(text); utterance.lang = 'uk-UA'; synth.speak(utterance); } const Text = 'укаінойникое'; // speak(Text); Any help or pointers would be appreciated.