Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

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

  • Нет ответов
  • 0 имеют эту проблему
  • 8 просмотров
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.