Speech Synthesis in Chrome

    Google has implemented the Text-to-Speech APIs in the browser, so now any Chrome application or extension can read text aloud. The synthesis of speech from the extension is carried out by an elementary team

    chrome.tts.speak('Hello, world!');

    (you must first add tts to the list of permissions for this extension).

    Using the chrome.ttsEngine module, you can tie your own speech synthesis engine to the browser, for example, for the Russian language.

    A speech synthesis engine connected to Chrome is allowed to use any web technology for audio playback, including HTML5 Audio, Web Audio API or Native Client. It is allowed and even encouraged to install different engines (votes) in the browser.

    The interface supports parameters for volume (volume), speech speed (rate) and pitch (pitch).

    chrome.tts.speak('Can you understand me now?', {rate: 0.6});

    The extension can even synchronize the actions on the screen with the words spoken by the speech synthesis program, because the TTS API allows you to receive feedback after each spoken word.

    TTS API Documentation

    See talking hours , reading highlighted text in a browser, and other examples .

    Also popular now: