108 lines
1.5 KiB
Markdown
108 lines
1.5 KiB
Markdown
![]() |
Spiel Programmieren
|
|||
|
|
|||
|
Montag, 1. November 2021
|
|||
|
|
|||
|
13:55
|
|||
|
|
|||
|
|
|||
|
|
|||
|
{width="7.385416666666667in" height="4.104166666666667in"}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
Erfasster Bildschirmausschnitt: 01.11.2021 13:55
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<https://www.youtube.com/watch?v=eWLDAAMsD-c>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
Java script course 8 Hours Javascript Kurs 8 Stunden:
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<https://www.youtube.com/watch?v=Qqx_wzMmFeA>
|
|||
|
|
|||
|
{width="11.3125in" height="7.25in"}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
Erfasster Bildschirmausschnitt: 02.11.2021 16:46
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
Sound ausgabe :
|
|||
|
|
|||
|
|
|||
|
|
|||
|
var msg = new SpeechSynthesisUtterance();
|
|||
|
|
|||
|
msg.text = \"Turn left and Send to 2000 feeds\";
|
|||
|
|
|||
|
window.speechSynthesis.speak(msg);
|
|||
|
|
|||
|
|
|||
|
|
|||
|
Vollständig :
|
|||
|
|
|||
|
let speech = new SpeechSynthesisUtterance();
|
|||
|
|
|||
|
let msg = \"Turn left and send to 2000 feeds\";
|
|||
|
|
|||
|
speech.lang = \"en-US\";
|
|||
|
|
|||
|
speech.text = msg;
|
|||
|
|
|||
|
speech.volume = 1;
|
|||
|
|
|||
|
speech.rate = 1;
|
|||
|
|
|||
|
speech.pitch = 0.3;
|
|||
|
|
|||
|
|
|||
|
|
|||
|
window.speechSynthesis.speak(speech);
|
|||
|
|
|||
|
|
|||
|
|
|||
|
Aus \<<https://www.studytonight.com/post/javascript-text-to-speech-using-speechsynthesis-interface>\>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
var msg = new SpeechSynthesisUtterance();
|
|||
|
|
|||
|
var voices = window.speechSynthesis.getVoices();
|
|||
|
|
|||
|
msg.voice = voices\[23\];
|
|||
|
|
|||
|
msg.volume = 1; // From 0 to 1
|
|||
|
|
|||
|
msg.rate = 1; // From 0.1 to 10
|
|||
|
|
|||
|
msg.pitch = 2; // From 0 to 2
|
|||
|
|
|||
|
msg.text = \"Turn left and Send to 2000 feeds\";
|
|||
|
|
|||
|
msg.lang = \'en\';
|
|||
|
|
|||
|
speechSynthesis.speak(msg);
|
|||
|
|
|||
|
|