Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a working tts library for Chrome OS #2999

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
1 change: 1 addition & 0 deletions libraries/ChromeOStts.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<blocks app="Snap! 7, https://snap.berkeley.edu" version="2"><block-definition s="Speak (for Chrome OS) %&apos;text&apos;" type="command" category="sound"><header></header><code></code><translations></translations><inputs><input type="%txt">Hello world!</input></inputs><script><block s="doRun"><block s="reportJSFunction"><list><l>textIn</l></list><l>var msg = new SpeechSynthesisUtterance();&#xD;msg.text = textIn;&#xD;window.speechSynthesis.cancel()&#xD;window.speechSynthesis.speak(msg);&#xD;</l></block><list><block var="text"/></list></block></script></block-definition></blocks>
1 change: 1 addition & 0 deletions libraries/LIBRARIES
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ speech_module.xml Text to Speech Output text using speech synthesis.
animation_module.xml Animation Glide, grow and rotate using easing functions.
pixel_module.xml Pixels Manipulate costumes pixel-wise.
audioComp_module.xml Audio Comp Analyze, manipulate and generate sound samples.
ChromeOStts.xml Text To Speech Working text to speech on Chrome OS
frequency_distribution_module.xml Frequency Distribution Analysis Analyze data for frequency distribution
localstorage_module.xml Database Persistent key-value storage across Snap! sessions in the same browser
~ ~
Expand Down