# JS-speechSynthesis **Repository Path**: BlueSkyCaps/JS-speechSynthesis ## Basic Information - **Project Name**: JS-speechSynthesis - **Description**: JavaScript使用SpeechSynthesis实现语音合成 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-13 - **Last Updated**: 2021-08-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # js-speechSynthesis JavaScript使用SpeechSynthesis实现语音合成 --------------------------------------------README--------------------------------------------------------------------- * @author BlueSkyCaps * 本示例使用Web Speech API中的speechSynthesis, 非第三方语音合成接口 * 示例代码仅考虑中英文(依据用户设备默认语音) * 在桌面端以及安卓端Chrome, Edge, Firefox测试均正常 * 国产浏览器均不支持Web_Speech_API语音合成接口, 请使用其他第三方API. * Web_Speech_API(Speech recognition and synthesis)目前处于实验性阶段, * 使用它, 建议使用其默认语音(例如忽略SpeechSynthesisUtterance.voice) * * 详见js-speechSynthesis\speechSynthesis.js