turtlestitch/libraries/speech_module.xml

46 wiersze
2.6 KiB
XML
Czysty Zwykły widok Historia

2018-03-03 22:38:19 +00:00
<blocks app="Snap! 4.1, http://snap.berkeley.edu" version="1"><block-definition s="speak %&apos;text&apos; with %&apos;lang&apos; accent $nl and pitch %&apos;pitch&apos; rate %&apos;rate&apos;" type="command" category="sound"><header></header><code></code><translations>de:sprich _ mit _ Aussprache _ und Höhe _ Geschwindigkeit _&#xD;</translations><inputs><input type="%s">Hello, World!</input><input type="%txt">en-US<options>American=en-US
Arabic=ar
2018-03-03 22:38:19 +00:00
British=en-GB
2019-04-26 12:53:12 +00:00
Catalan=ca-ES
Chinese=zh
Czech=cs
Dutch=nl
Estonian=et
Finish=fi
2018-03-03 22:38:19 +00:00
French=fr
German=de
Greek=el
Hungarian=hu
Indonesian=id
2018-03-03 22:38:19 +00:00
Italian=it
Japanese=ja
2018-03-03 22:38:19 +00:00
Korean=ko
Portuguese=pt
Romanian=ro
Russian=ru
Spanish=es
Swedish=sv
Turkish=tr</options></input><input type="%n">1</input><input type="%n">1</input></inputs><script><block s="doRun"><block s="reportJSFunction"><list><l>msg</l><l>accent</l><l>pitch</l><l>rate</l></list><l>var utter = new SpeechSynthesisUtterance(msg);&#xD;utter.lang = accent;&#xD;utter.pitch = pitch;&#xD;utter.rate = rate;&#xD;window.speechSynthesis.speak(utter);</l></block><list><block var="text"/><block var="lang"/><block var="pitch"/><block var="rate"/></list></block></script></block-definition><block-definition s="speak %&apos;text&apos; with %&apos;lang&apos; accent $nl and pitch %&apos;pitch&apos; rate %&apos;rate&apos; and wait" type="command" category="sound"><header></header><code></code><translations>de:sprich _ mit _ Aussprache _ und Höhe _ Geschwindigkeit _ und warte&#xD;</translations><inputs><input type="%s">Hello, World!</input><input type="%txt">en-US<options>American=en-US
Arabic=ar
2018-03-03 22:38:19 +00:00
British=en-GB
Catalan=ca-ES
Chinese=zh
Czech=cs
Dutch=nl
Estonian=et
Finish=fi
2018-03-03 22:38:19 +00:00
French=fr
German=de
Greek=el
Hungarian=hu
Indonesian=id
2018-03-03 22:38:19 +00:00
Italian=it
Japanese=ja
2018-03-03 22:38:19 +00:00
Korean=ko
Portuguese=pt
Romanian=ro
Russian=ru
Spanish=es
Swedish=sv
2019-04-26 12:53:12 +00:00
Turkish=tr</options></input><input type="%n">1</input><input type="%n">1</input></inputs><script><block s="doDeclareVariables"><list><l>test</l></list></block><block s="doSetVar"><l>test</l><block s="evaluate"><block s="reportJSFunction"><list><l>msg</l><l>accent</l><l>pitch</l><l>rate</l></list><l>var utter = new SpeechSynthesisUtterance(msg),&#xD; isDone = false;&#xD;utter.lang = accent;&#xD;utter.pitch = pitch;&#xD;utter.rate = rate;&#xD;utter.onend = function () {isDone = true; };&#xD;window.speechSynthesis.speak(utter);&#xD;return function () {return isDone; };</l></block><list><block var="text"/><block var="lang"/><block var="pitch"/><block var="rate"/></list></block></block><block s="doWaitUntil"><block s="evaluate"><block var="test"/><list></list></block></block></script></block-definition></blocks>