diff --git a/ar-SA/images/alien-language.png b/ar-SA/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/ar-SA/images/alien-language.png differ diff --git a/ar-SA/images/allow-microphone.png b/ar-SA/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/ar-SA/images/allow-microphone.png differ diff --git a/ar-SA/images/background-noise.png b/ar-SA/images/background-noise.png index 3a740f3f..3a924b00 100644 Binary files a/ar-SA/images/background-noise.png and b/ar-SA/images/background-noise.png differ diff --git a/ar-SA/images/control-alien-blocks.png b/ar-SA/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/ar-SA/images/control-alien-blocks.png differ diff --git a/ar-SA/images/create-project.png b/ar-SA/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/ar-SA/images/create-project.png differ diff --git a/ar-SA/images/new-blocks.png b/ar-SA/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/ar-SA/images/new-blocks.png differ diff --git a/ar-SA/images/project-train.png b/ar-SA/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/ar-SA/images/project-train.png differ diff --git a/ar-SA/images/projects-list.png b/ar-SA/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/ar-SA/images/projects-list.png differ diff --git a/ar-SA/images/record-button.png b/ar-SA/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/ar-SA/images/record-button.png differ diff --git a/ar-SA/images/test-your-model.png b/ar-SA/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/ar-SA/images/test-your-model.png differ diff --git a/ar-SA/images/train-new-model.png b/ar-SA/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/ar-SA/images/train-new-model.png differ diff --git a/ar-SA/images/whatyouwillmake.gif b/ar-SA/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/ar-SA/images/whatyouwillmake.gif differ diff --git a/ar-SA/meta.yml b/ar-SA/meta.yml index 61e01760..701e368b 100644 --- a/ar-SA/meta.yml +++ b/ar-SA/meta.yml @@ -2,7 +2,7 @@ title: لغة غريبة hero_image: images/banner.png description: قم بإنشاء لغة كائن الفضاء الخاصة بك لتحريك الكائن -theme: orange +theme: البرتقالي listed: true copyedit: true technologies: scratch @@ -10,15 +10,22 @@ software: scratch version: 4.0.0 last_tested: '2019-06-04' steps: -- title: المقدمة -- title: استخدم نموذجا تم تدريبه مسبقا -- title: أنشئ مشروعًا جديدًا - completion: - - engaged -- title: إنشاء كلمات كائن الفضاء -- title: تدريب نموذج جديد للتعلم الآلي -- title: استخدم كلمات كائن الفضاء في Scratch - completion: - - internal -- title: 'التحدي: إضافة أوامر جديدة' - challenge: true + - + title: ما الذي ستصنعه + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/ar-SA/resources/NEW Alien 1.srt b/ar-SA/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/ar-SA/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/ar-SA/resources/NEW Alien 2.srt b/ar-SA/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/ar-SA/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/ar-SA/resources/NEW Alien 3.srt b/ar-SA/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/ar-SA/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/ar-SA/resources/NEW Alien 4.srt b/ar-SA/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/ar-SA/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/ar-SA/resources/readme.txt b/ar-SA/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/ar-SA/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/ar-SA/step_1.md b/ar-SA/step_1.md index 3a323702..a97b0d4b 100644 --- a/ar-SA/step_1.md +++ b/ar-SA/step_1.md @@ -1,53 +1,44 @@ -## المقدمة +## ما الذي ستصنعه -في هذا المشروع ، سوف تقوم بتدريب الكمبيوتر لفهم لغة كائن الفضاء. ستستخدم ذلك للتحكم في شخصية غريبة حتى تتمكن من فهم ما تطلب منه للقيام به. +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. -### ما الذي ستصنعه +You will need a **microphone**. ---- no-print --- - -![كائن الفضاء يتحرك يسار ويمين إلى كلمات جديدة ، Eeek و Bop](images/journey.gif) - ---- /no-print --- - ---- print-only --- - -![نظرة عامة على مشروع سكراتش بأكمله](images/test-new-blocks.png) - ---- /print-only --- +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) --- collapse --- + --- -title: ما ستحتاج إليه +title: Where are my voice recordings stored? --- -+ كمبيوتر مع ميكروفون - -+ خدمة الإنترنت +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). --- /collapse --- --- collapse --- --- -title: ما الذي ستتعلمه +title: No YouTube? Download the videos! --- -+ كيفية استخدام ملحق الكلام إلى نص في Scratch 3 مع نموذج prerained -+ كيفية تدريب نموذج تعلُّم الآلة للتعرف على الأصوات -+ كيفية استخدام نموذجك في تدريب الالة في سكراتش 3 + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + --- /collapse --- --- collapse --- --- -title: معلومات إضافية للمعلمين +title: License --- -إذا كنت بحاجة إلى طباعة هذا المشروع ، فالرجاء استخدام الإصدار [الملائم للطابعة](https://projects.raspberrypi.org/ar-SA/projects/alien-language/print){:target="_blank"}. +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +نود أن نشكر دايل من machinelearningforkids.co.uk على جميع أعماله في هذا المشروع. --- /collapse --- -### رخصة -هذا المشروع مرخص بشكل مزدوج بموجب [ ترخيص Creative Commons Attribution Non-Commercial Share-Alike](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} و [ترخيص Apache الإصدار 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"} -نود أن نشكر دايل من machinelearningforkids.co.uk على جميع أعماله في هذا المشروع. + + diff --git a/ar-SA/step_2.md b/ar-SA/step_2.md index 53f89350..e6930402 100644 --- a/ar-SA/step_2.md +++ b/ar-SA/step_2.md @@ -1,25 +1,42 @@ -## استخدم نموذجًا تم تدريبه مسبقًا +## Set up the project + + +
+ +
+ --- task --- -+ انتقل إلى [machinelearningforkids.co.uk/scratch3](https://machinelearningforkids.co.uk/scratch3/){:target="_blank"} ---- /task --- -**تحذير:** لا يمكن إتمام هذه الخطوة من المشروع إلا باستخدام متصفح الويب Google Chrome. إذا لم يكن هذا المتصفح متاحًا لك ، فيرجى التخطي إلى الخطوة 3: إنشاء مشروع جديد ](https://projects.raspberrypi.org/ar-SA/projects/alien-language/3) ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- --- task --- -+ بعد ذلك ، قم بتحميل ملحق **الكلام إلى النص**. انقر على زر **امتداد** في الركن الأيسر السفلي ، ثم اختر **كلام إلى نص** من القائمة. **ملاحظة:** تأكد من تحديد امتداد **Speech to Text** وليس ملحق **Text to Speech**. ![سهم يشير إلى زر ملحقات](images/extensions-annotated.png) -+ استخدم **أحداث** كتل ، **كتل Motions** ، وكتل **الكلام إلى نص** جديدة لإنشاء البرامج النصية التالية. ![نصوص جديدة لإضافتها](images/S-to-T-blocks.png) ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) --- /task --- ---- task--- -مهمة --- انقر على العلم الأخضر لاختبار البرنامج الخاص بك. قل "يسار" أو "يمين". يجب أن تتحرك قطة السكراتش في الاتجاه الذي تطلبه. استخدم صوتك لمحاولة تحريك قط السكراتش ذهابًا وإيابًا عبر الشاشة. حاول التحدث بهدوء ووضوح. +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) -قد يكون من الصعب تشغيلها. إذا لم يفلح ذلك ، أضف التعليمة البرمجية `قل` بحيث يبدو النص الخاص بك مثل النص أدناه ، لإظهار ما يعتقد أنك تقول. ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- -![New scripts to see what the computer thinks you are saying](images/S-to-T-blocks-test.png) --- /task --- -لقد استخدمت الآن التعرف على الكلام للتحكم في شخصية في سكراتش. -في هذه الخطوة ، لكي يعمل برنامجك بسرعة ، استخدمت نموذجًا للتعلم الآلي تم تدريبه لك بالفعل. إنه نموذج عام للتعلم الآلي تم تدريبه على التعرف على الكلمات في قاموس اللغة الإنجليزية. diff --git a/ar-SA/step_3.md b/ar-SA/step_3.md index c0c599d4..bf9eb8ee 100644 --- a/ar-SA/step_3.md +++ b/ar-SA/step_3.md @@ -1,20 +1,49 @@ -## أنشئ مشروعًا جديدًا -في الخطوات القليلة التالية ، ستقوم بتدريب نموذج تعلُّم الآلة لترى كيف تم ذلك. بالنسبة للجزء التالي من المشروع ، ستستخدم صوتك للتحكم في شخصية كائن الفضاء التي لا تفهم اللغة الإنجليزية! سوف تخترع كلمتين جديدتين لن يتم العثور عليهما في قاموس اللغة الإنجليزية. بعد ذلك ، سوف تستخدم الكلمات للتحكم في شخصية كائن الفضاء ، وتدريب نموذج للتعلم الالة للتعرف عليها. +## Invent two words -أولاً ، انتقل إلى موقع Machine Learning for Kids وإنشاء مشروع. + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. --- task --- -+ انتقل إلى [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"}. -+ انقر على **لتبدأ**. ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". -+ انقر على **جربه الآن**. --- /task --- +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. --- task --- -+ انقر على **مشاريع** في شريط القائمة في أعلى الصفحة. -+ انقر فوق الزر **إضافة مشروع جديد**. ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- -+ قم بتسمية مشروعك `Alien Language` وقم بتعيينه على تعلم كيفية التعرف على `الأصوات `. ثم، انقر فوق زر **اصنع**. ![إنشاء مشروع](images/create.png) ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". -+ يجب أن تشاهد `لغة كائن الفضاء` في قائمة المشاريع. انقر على مشروع `لغة كائن الفضاء`. --- /task --- +--- /task --- diff --git a/ar-SA/step_4.md b/ar-SA/step_4.md index 206b85ef..93068df9 100644 --- a/ar-SA/step_4.md +++ b/ar-SA/step_4.md @@ -1,45 +1,36 @@ -## إنشاء كلمات كائن الفضاء -في هذه الخطوة ، سوف تخترع كلمات كائن الفضاء. +## Train the model ---- task --- - -تحتاج إلى كلمتين - كلمة كائن الفضاء لل "يسار" وكلمة كائن الفضاء لـل "يمين". اخترع كلمتين جديدتين لن تكونا في قاموس اللغة الإنجليزية. يمكن أن تكون ضوضاء بشكل عشوائي ، طالما يمكنك تكرارها بالطريقة نفسها في كل مرة وتكون مختلفة بشكل ملحوظ عن بعضها البعض. إذا كنت لا تريد أن تصدر أصواتًا بصوتك ، فلا بأس بذلك - يمكنك العثور على طرق أخرى لعمل الضوضاء. يمكنك النقر فوق أصابعك أو تصفيق يديك أو الضغط على لعبة صاربة أو القيام بأي شيء آخر يمكنك التفكير فيه! فقط تأكد من تذكر كلماتك الجديدة! + +
+ +
+ ---- /task --- +You have gathered the examples you need, now you will use these examples to train your machine learning model. --- task --- -+ انقر على زر **تدريب** للبدء في جمع الأمثلة. ![سهم يشير إلى زر ملحقات](images/click-train.png) ++ Click on **Back to project** in the top left-hand corner. -+ انقر على زر **إضافة مثال** لاضافته في **background noise** (المقصود بها المكان الذي انت به خلال تسجيل صوت يختلف عن الكلمتين التي سوف تحرك بها كائن الفضاء). سيساعد تسجيل background noise نموذج تدريب الالة على تحديد الفرق بين الأصوات التي ستقوم بتدريبها للتعرف عليها ، والاصوات التي في مكانك. ![سهم يشير إلى زر إضافة مثال](images/background-noise-annotated.png) ++ Click on **Learn & Test**. -+ انقر على الميكروفون لتسجيل ضجيج الخلفية لمدة ثانيتين. ![السهم مشيرا إلى زر الميكروفون](images/add-example-annotated.png) ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) -+ انقر فوق زر **اضافة** لحفظ التسجيل الخاص بك. ![سهم يشير إلى إضافة زر](images/save-example-annotated.png) +---/task-- -+ كرر هذه الخطوات حتى يكون لديك **8 أمثلة على الأقل** لضوضاء الخلفية. ![محتوى يحتوي على 8 امثلة](images/8-background.png) - ---- /task --- +Once the training has finished, you can test how well your model recognises the alien words you have invented. --- task --- -+ انقر فوق زر **اضافة تسمية جديدة** في أعلى الزاوية اليمنى للصفحة، وانشاء محتوى تدريب جديد باسم`left` يجب ان تكون التسمية باللغة الانكليزية. ![سهم يشير إلى زر إضافة تسمية جديدة](images/8-background-annotated.png) ++ Click the **Start listening** button, then say your alien word for "left". -+ انقر على زر**إضافة مثال** الموجود في المحتوى**left** الجديد. ![سهم يشير إلى زر إضافة مثال](images/left-empty-annotated.png) +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) -+ سجل عن لا يقل عن 8 أمثلة لكلمة "left" لكائن الفضاء. ![محتو يحتوي على 8 امثلة لكلمة اليسار](images/8-left.png) ++ Test whether the model recognises your alien word for "right" as well. --- /task --- +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. ---- task --- - -+ انقر فوق زر **اضافة تسمية جديدة** في أعلى الزاوية اليمنى للصفحة، وانشاء محتوى تدريب جديد باسم`Right` يجب ان تكون التسمية باللغة الانكليزية. - -+ انقر على زر**إضافة مثال** الموجود في المحتوى**Right** الجديد. -+ سجل عن لا يقل عن 8 أمثلة لكلمة "Right" لكائن الفضاء. ![محتو يحتوي على 8 امثلة لكلمة اليمين](images/8-right.png) -+ **ملاحظة:** بنهاية هذه الخطوة ، يجب أن يكون لديك ثمانية أمثلة في كل محتوى من المجموعات الثلاثة. - ---- /task --- diff --git a/ar-SA/step_5.md b/ar-SA/step_5.md index df1066e7..c361be8e 100644 --- a/ar-SA/step_5.md +++ b/ar-SA/step_5.md @@ -1,22 +1,50 @@ -## تدريب نموذج تعلم الآلة الجديد -في هذه الخطوة ، سوف تستخدم الأمثلة التي قمت بجمعها في الخطوة الأخيرة لتدريب الكمبيوتر على كيفية التعرف على كلماتك الجديدة. +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. --- task --- -+ انقر على الرابط **رجوع إلى المشروع** في الركن الأيسر العلوي. ![سهم يشير إلى العودة إلى زر المشروع](images/8-right-annotated.png) ++ Click on the **< Back to project** link. + ++ Click on **Make**. -+ انقر فوق زر**تعلم & اختبار**. ![سهم يشير إلى زر التعلم والاختبار](images/learn-test-annotated.png) ++ Click on **Scratch 3**. -+ انقر على **تدريب نموذج التعلم الآلي الجديد**. قد يستغرق هذا بضع دقائق حتى يكتمل. ![يشير السهم لتدريب نموذج تعلم الآلة الجديد](images/train-annotated.png) ++ Click on **Open in Scratch 3**. --- /task --- --- task --- -+ وبمجرد الانتهاء من التدريب، انقر فوق زر**بدء الاستماع** لاختبار نموذج تدريب الالة. قل إحدى الكلمات (أو قم بأحد الأصوات) التي قمت بتدريب الحاسوب للتعرف عليها كـ "يسار" أو "يمين". إذا كان نموذج التعلم الآلي الخاص بك يتعرف عليه ، فسيعرض ما يعتقد أنه قلته. ![يشير السهم إلى ما يعتقد الكمبيوتر فعله](images/start-listening-annotated.png) ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. -+ إذا لم تكن راضيًا عن كيفية عمل النموذج ، فارجع إلى صفحة **Train** وأضف المزيد من الأمثلة إلى مجموعات التدريب الثلاثة. +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) -+ عندما تكون راضيًا عن نموذج التعلم الآلي الخاص بك ، انتقل إلى الخطوة التالية. +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) --- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/ar-SA/step_6.md b/ar-SA/step_6.md index be9d42b3..6ca94946 100644 --- a/ar-SA/step_6.md +++ b/ar-SA/step_6.md @@ -1,30 +1,11 @@ -## استخدم كلمات كائن الفضاء في Scratch -في هذه الخطوة ، سوف تستخدم تعلم الآلة الجديد في Scratch. +## Challenge ---- task --- - -+ انقر فوق الزر **صنع**. ![سهم يشير إلى زر صنع](images/make-annotated.png) - -+ انقر فوق زر **سكراتش 3** ، ثم انقر فوق **فتح في سكراتش 3**. - -+ انقر فوق **Project templates** في الجزء العلوي من الشاشة ، ثم اختر مشروع **Alien Language**. - ---- /task --- +--- challenge --- --- task --- -+ إلقاء نظرة على البرامج النصية لكائن الفضاء. التعليمات البرمجية الموجودة بالفعل ستضع الكائن الفضائي في المكان المناسب في البداية وتحريك كيفية سيره. لا تحذفهم. أضف التعليمات البرمجية أدناه إلى شخصية كائن الفضاء ، أسفل التعليمات البرمجية الموجودة بالفعل. ![اضافة تعليمات برمجية جديدة تحتوي على ازرار تستخدم في تدريب الالة الخاصة بك](images/add-new-blocks.png) - -+ الآن ، اختبر البرنامج الخاص بك! انقر على العلم الأخضر. قل كلماتك (أو قم بأصواتك) "يسار" و "يمين" لتخبر كائن الفضاء اي طريق يمشي. +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. --- /task --- -لقد قمت الآن بتدريب نموذج تعلم الآلة الخاص بك على التعرف على الكلام واستخدمت ذلك للتحكم في شخصية في سكراتش. على عكس النموذج الذي تم اختباره مسبقًا والذي استخدمته سابقًا في المشروع ، والذي تم تدريبه على التعرف على عشرات الآلاف من الكلمات ، فقد قمت بتدريبه فقط على التعرف على كلمتين مختلفتين. ومع ذلك ، فإن المبدأ هو نفسه. - -لقد رأيت أيضًا أهمية تدريب نموذج تدريب الآلة على التعامل مع ضجيج خلفية اصوات اخرى. - ---- task --- - -هل يمكنك التفكير في مثال لنظام مثل هذا الذي رأيته من قبل؟ على سبيل المثال ، تستخدم بعض السيارات أنظمة التعرف على الكلام التي تم تدريبها للتعرف على الأوامر المختلفة التي يمكنك تقديمها للحاسوب الموجود في السيارة. ما هي الأمثلة الأخرى التي استخدمتها؟ - ---- /task --- +--- /challenge --- diff --git a/ar-SA/step_7.md b/ar-SA/step_7.md index 26734afe..d4b22e96 100644 --- a/ar-SA/step_7.md +++ b/ar-SA/step_7.md @@ -1,17 +1,3 @@ -## التحدي: إضافة أوامر جديدة +## What can you do now? ---- challenge --- - ---- task --- - -+ الآن ، يمكنك إضافة مجموعتي تدريب إضافيتين "للأعلى" و "للأسفل" ، بحيث يمكنك التحكم في كائن الفضاء للتنقل في جميع الاتجاهات الأربعة. - ---- /task --- - ---- task --- - -+ هل يمكنك التفكير في أي شيء آخر يمكنك استخدام نموذج تعلم الآلة له؟ - ---- /task --- - ---- /challenge --- +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/ca-ES/images/8-background.png b/ca-ES/images/8-background.png new file mode 100644 index 00000000..d27ef20a Binary files /dev/null and b/ca-ES/images/8-background.png differ diff --git a/ca-ES/images/add-example.png b/ca-ES/images/add-example.png new file mode 100644 index 00000000..0fa70ce6 Binary files /dev/null and b/ca-ES/images/add-example.png differ diff --git a/ca-ES/images/add-new-blocks.png b/ca-ES/images/add-new-blocks.png new file mode 100644 index 00000000..a00e4d4c Binary files /dev/null and b/ca-ES/images/add-new-blocks.png differ diff --git a/ca-ES/images/alien-language.png b/ca-ES/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/ca-ES/images/alien-language.png differ diff --git a/ca-ES/images/allow-microphone.png b/ca-ES/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/ca-ES/images/allow-microphone.png differ diff --git a/ca-ES/images/background-noise.png b/ca-ES/images/background-noise.png new file mode 100644 index 00000000..3a924b00 Binary files /dev/null and b/ca-ES/images/background-noise.png differ diff --git a/ca-ES/images/banner.png b/ca-ES/images/banner.png new file mode 100644 index 00000000..a54fe151 Binary files /dev/null and b/ca-ES/images/banner.png differ diff --git a/ca-ES/images/control-alien-blocks.png b/ca-ES/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/ca-ES/images/control-alien-blocks.png differ diff --git a/ca-ES/images/create-project.png b/ca-ES/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/ca-ES/images/create-project.png differ diff --git a/ca-ES/images/new-blocks.png b/ca-ES/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/ca-ES/images/new-blocks.png differ diff --git a/ca-ES/images/project-train.png b/ca-ES/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/ca-ES/images/project-train.png differ diff --git a/ca-ES/images/projects-list.png b/ca-ES/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/ca-ES/images/projects-list.png differ diff --git a/ca-ES/images/record-button.png b/ca-ES/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/ca-ES/images/record-button.png differ diff --git a/ca-ES/images/save-example.png b/ca-ES/images/save-example.png new file mode 100644 index 00000000..0d1a1d48 Binary files /dev/null and b/ca-ES/images/save-example.png differ diff --git a/ca-ES/images/start-listening.png b/ca-ES/images/start-listening.png new file mode 100644 index 00000000..db113d03 Binary files /dev/null and b/ca-ES/images/start-listening.png differ diff --git a/ca-ES/images/test-new-blocks.png b/ca-ES/images/test-new-blocks.png new file mode 100644 index 00000000..5c4260bc Binary files /dev/null and b/ca-ES/images/test-new-blocks.png differ diff --git a/ca-ES/images/test-your-model.png b/ca-ES/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/ca-ES/images/test-your-model.png differ diff --git a/ca-ES/images/train-new-model.png b/ca-ES/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/ca-ES/images/train-new-model.png differ diff --git a/ca-ES/images/whatyouwillmake.gif b/ca-ES/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/ca-ES/images/whatyouwillmake.gif differ diff --git a/ca-ES/meta.yml b/ca-ES/meta.yml new file mode 100644 index 00000000..ae376c3a --- /dev/null +++ b/ca-ES/meta.yml @@ -0,0 +1,31 @@ +--- +title: Alien language +hero_image: images/banner.png +description: Create your own alien language to move a sprite +theme: orange +listed: true +copyedit: true +technologies: scratch +software: scratch +version: 4.0.0 +last_tested: '2019-06-04' +steps: + - + title: What you will make + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/ca-ES/resources/NEW Alien 1.srt b/ca-ES/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/ca-ES/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/ca-ES/resources/NEW Alien 2.srt b/ca-ES/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/ca-ES/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/ca-ES/resources/NEW Alien 3.srt b/ca-ES/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/ca-ES/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/ca-ES/resources/NEW Alien 4.srt b/ca-ES/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/ca-ES/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/ca-ES/resources/readme.txt b/ca-ES/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/ca-ES/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/ca-ES/step_1.md b/ca-ES/step_1.md new file mode 100644 index 00000000..aa0540f2 --- /dev/null +++ b/ca-ES/step_1.md @@ -0,0 +1,44 @@ +## What you will make + +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. + +You will need a **microphone**. + +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) + +--- collapse --- + +--- +title: Where are my voice recordings stored? +--- + +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). + +--- /collapse --- + +--- collapse --- +--- +title: No YouTube? Download the videos! +--- + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + + +--- /collapse --- + +--- collapse --- +--- +title: License +--- + +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +We'd like to thank Dale from machinelearningforkids.co.uk for all his work on this project. + +--- /collapse --- + + + + + diff --git a/ca-ES/step_2.md b/ca-ES/step_2.md new file mode 100644 index 00000000..e6930402 --- /dev/null +++ b/ca-ES/step_2.md @@ -0,0 +1,42 @@ +## Set up the project + + +
+ +
+ + +--- task --- + ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- + +--- task --- + ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) + +--- /task --- + +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- + + + diff --git a/ca-ES/step_3.md b/ca-ES/step_3.md new file mode 100644 index 00000000..bf9eb8ee --- /dev/null +++ b/ca-ES/step_3.md @@ -0,0 +1,49 @@ +## Invent two words + + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. + +--- task --- + ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". + +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. + +--- task --- + ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- + ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". + +--- /task --- diff --git a/ca-ES/step_4.md b/ca-ES/step_4.md new file mode 100644 index 00000000..785b11b0 --- /dev/null +++ b/ca-ES/step_4.md @@ -0,0 +1,36 @@ +## Train the model + + +
+ +
+ + +You have gathered the examples you need, now you will use these examples to train your machine learning model. + +--- task --- + ++ Click on **Back to project** in the top left-hand corner. + ++ Click on **Learn & Test**. + ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) + +--- /task --- + +Once the training has finished, you can test how well your model recognises the alien words you have invented. + +--- task --- + ++ Click the **Start listening** button, then say your alien word for "left". + +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) + ++ Test whether the model recognises your alien word for "right" as well. + +--- /task --- + +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. + + + diff --git a/ca-ES/step_5.md b/ca-ES/step_5.md new file mode 100644 index 00000000..c361be8e --- /dev/null +++ b/ca-ES/step_5.md @@ -0,0 +1,50 @@ +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. + +--- task --- + ++ Click on the **< Back to project** link. + ++ Click on **Make**. + ++ Click on **Scratch 3**. + ++ Click on **Open in Scratch 3**. + +--- /task --- + +--- task --- + ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. + +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) + +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) + +--- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/ca-ES/step_6.md b/ca-ES/step_6.md new file mode 100644 index 00000000..6ca94946 --- /dev/null +++ b/ca-ES/step_6.md @@ -0,0 +1,11 @@ +## Challenge + +--- challenge --- + +--- task --- + +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. + +--- /task --- + +--- /challenge --- diff --git a/ca-ES/step_7.md b/ca-ES/step_7.md new file mode 100644 index 00000000..d4b22e96 --- /dev/null +++ b/ca-ES/step_7.md @@ -0,0 +1,3 @@ +## What can you do now? + +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/cs-CZ/images/8-background.png b/cs-CZ/images/8-background.png new file mode 100644 index 00000000..d27ef20a Binary files /dev/null and b/cs-CZ/images/8-background.png differ diff --git a/cs-CZ/images/add-example.png b/cs-CZ/images/add-example.png new file mode 100644 index 00000000..0fa70ce6 Binary files /dev/null and b/cs-CZ/images/add-example.png differ diff --git a/cs-CZ/images/add-new-blocks.png b/cs-CZ/images/add-new-blocks.png new file mode 100644 index 00000000..a00e4d4c Binary files /dev/null and b/cs-CZ/images/add-new-blocks.png differ diff --git a/cs-CZ/images/alien-language.png b/cs-CZ/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/cs-CZ/images/alien-language.png differ diff --git a/cs-CZ/images/allow-microphone.png b/cs-CZ/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/cs-CZ/images/allow-microphone.png differ diff --git a/cs-CZ/images/background-noise.png b/cs-CZ/images/background-noise.png new file mode 100644 index 00000000..3a924b00 Binary files /dev/null and b/cs-CZ/images/background-noise.png differ diff --git a/cs-CZ/images/banner.png b/cs-CZ/images/banner.png new file mode 100644 index 00000000..a54fe151 Binary files /dev/null and b/cs-CZ/images/banner.png differ diff --git a/cs-CZ/images/control-alien-blocks.png b/cs-CZ/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/cs-CZ/images/control-alien-blocks.png differ diff --git a/cs-CZ/images/create-project.png b/cs-CZ/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/cs-CZ/images/create-project.png differ diff --git a/cs-CZ/images/new-blocks.png b/cs-CZ/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/cs-CZ/images/new-blocks.png differ diff --git a/cs-CZ/images/project-train.png b/cs-CZ/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/cs-CZ/images/project-train.png differ diff --git a/cs-CZ/images/projects-list.png b/cs-CZ/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/cs-CZ/images/projects-list.png differ diff --git a/cs-CZ/images/record-button.png b/cs-CZ/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/cs-CZ/images/record-button.png differ diff --git a/cs-CZ/images/save-example.png b/cs-CZ/images/save-example.png new file mode 100644 index 00000000..0d1a1d48 Binary files /dev/null and b/cs-CZ/images/save-example.png differ diff --git a/cs-CZ/images/start-listening.png b/cs-CZ/images/start-listening.png new file mode 100644 index 00000000..db113d03 Binary files /dev/null and b/cs-CZ/images/start-listening.png differ diff --git a/cs-CZ/images/test-new-blocks.png b/cs-CZ/images/test-new-blocks.png new file mode 100644 index 00000000..5c4260bc Binary files /dev/null and b/cs-CZ/images/test-new-blocks.png differ diff --git a/cs-CZ/images/test-your-model.png b/cs-CZ/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/cs-CZ/images/test-your-model.png differ diff --git a/cs-CZ/images/train-new-model.png b/cs-CZ/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/cs-CZ/images/train-new-model.png differ diff --git a/cs-CZ/images/whatyouwillmake.gif b/cs-CZ/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/cs-CZ/images/whatyouwillmake.gif differ diff --git a/cs-CZ/meta.yml b/cs-CZ/meta.yml new file mode 100644 index 00000000..ae376c3a --- /dev/null +++ b/cs-CZ/meta.yml @@ -0,0 +1,31 @@ +--- +title: Alien language +hero_image: images/banner.png +description: Create your own alien language to move a sprite +theme: orange +listed: true +copyedit: true +technologies: scratch +software: scratch +version: 4.0.0 +last_tested: '2019-06-04' +steps: + - + title: What you will make + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/cs-CZ/resources/NEW Alien 1.srt b/cs-CZ/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/cs-CZ/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/cs-CZ/resources/NEW Alien 2.srt b/cs-CZ/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/cs-CZ/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/cs-CZ/resources/NEW Alien 3.srt b/cs-CZ/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/cs-CZ/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/cs-CZ/resources/NEW Alien 4.srt b/cs-CZ/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/cs-CZ/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/cs-CZ/resources/readme.txt b/cs-CZ/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/cs-CZ/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/cs-CZ/step_1.md b/cs-CZ/step_1.md new file mode 100644 index 00000000..aa0540f2 --- /dev/null +++ b/cs-CZ/step_1.md @@ -0,0 +1,44 @@ +## What you will make + +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. + +You will need a **microphone**. + +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) + +--- collapse --- + +--- +title: Where are my voice recordings stored? +--- + +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). + +--- /collapse --- + +--- collapse --- +--- +title: No YouTube? Download the videos! +--- + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + + +--- /collapse --- + +--- collapse --- +--- +title: License +--- + +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +We'd like to thank Dale from machinelearningforkids.co.uk for all his work on this project. + +--- /collapse --- + + + + + diff --git a/cs-CZ/step_2.md b/cs-CZ/step_2.md new file mode 100644 index 00000000..e6930402 --- /dev/null +++ b/cs-CZ/step_2.md @@ -0,0 +1,42 @@ +## Set up the project + + +
+ +
+ + +--- task --- + ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- + +--- task --- + ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) + +--- /task --- + +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- + + + diff --git a/cs-CZ/step_3.md b/cs-CZ/step_3.md new file mode 100644 index 00000000..bf9eb8ee --- /dev/null +++ b/cs-CZ/step_3.md @@ -0,0 +1,49 @@ +## Invent two words + + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. + +--- task --- + ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". + +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. + +--- task --- + ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- + ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". + +--- /task --- diff --git a/cs-CZ/step_4.md b/cs-CZ/step_4.md new file mode 100644 index 00000000..785b11b0 --- /dev/null +++ b/cs-CZ/step_4.md @@ -0,0 +1,36 @@ +## Train the model + + +
+ +
+ + +You have gathered the examples you need, now you will use these examples to train your machine learning model. + +--- task --- + ++ Click on **Back to project** in the top left-hand corner. + ++ Click on **Learn & Test**. + ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) + +--- /task --- + +Once the training has finished, you can test how well your model recognises the alien words you have invented. + +--- task --- + ++ Click the **Start listening** button, then say your alien word for "left". + +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) + ++ Test whether the model recognises your alien word for "right" as well. + +--- /task --- + +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. + + + diff --git a/cs-CZ/step_5.md b/cs-CZ/step_5.md new file mode 100644 index 00000000..c361be8e --- /dev/null +++ b/cs-CZ/step_5.md @@ -0,0 +1,50 @@ +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. + +--- task --- + ++ Click on the **< Back to project** link. + ++ Click on **Make**. + ++ Click on **Scratch 3**. + ++ Click on **Open in Scratch 3**. + +--- /task --- + +--- task --- + ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. + +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) + +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) + +--- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/cs-CZ/step_6.md b/cs-CZ/step_6.md new file mode 100644 index 00000000..6ca94946 --- /dev/null +++ b/cs-CZ/step_6.md @@ -0,0 +1,11 @@ +## Challenge + +--- challenge --- + +--- task --- + +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. + +--- /task --- + +--- /challenge --- diff --git a/cs-CZ/step_7.md b/cs-CZ/step_7.md new file mode 100644 index 00000000..d4b22e96 --- /dev/null +++ b/cs-CZ/step_7.md @@ -0,0 +1,3 @@ +## What can you do now? + +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/da-DK/images/8-background.png b/da-DK/images/8-background.png new file mode 100644 index 00000000..d27ef20a Binary files /dev/null and b/da-DK/images/8-background.png differ diff --git a/da-DK/images/add-example.png b/da-DK/images/add-example.png new file mode 100644 index 00000000..0fa70ce6 Binary files /dev/null and b/da-DK/images/add-example.png differ diff --git a/da-DK/images/add-new-blocks.png b/da-DK/images/add-new-blocks.png new file mode 100644 index 00000000..a00e4d4c Binary files /dev/null and b/da-DK/images/add-new-blocks.png differ diff --git a/da-DK/images/alien-language.png b/da-DK/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/da-DK/images/alien-language.png differ diff --git a/da-DK/images/allow-microphone.png b/da-DK/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/da-DK/images/allow-microphone.png differ diff --git a/da-DK/images/background-noise.png b/da-DK/images/background-noise.png new file mode 100644 index 00000000..3a924b00 Binary files /dev/null and b/da-DK/images/background-noise.png differ diff --git a/da-DK/images/banner.png b/da-DK/images/banner.png new file mode 100644 index 00000000..a54fe151 Binary files /dev/null and b/da-DK/images/banner.png differ diff --git a/da-DK/images/control-alien-blocks.png b/da-DK/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/da-DK/images/control-alien-blocks.png differ diff --git a/da-DK/images/create-project.png b/da-DK/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/da-DK/images/create-project.png differ diff --git a/da-DK/images/new-blocks.png b/da-DK/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/da-DK/images/new-blocks.png differ diff --git a/da-DK/images/project-train.png b/da-DK/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/da-DK/images/project-train.png differ diff --git a/da-DK/images/projects-list.png b/da-DK/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/da-DK/images/projects-list.png differ diff --git a/da-DK/images/record-button.png b/da-DK/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/da-DK/images/record-button.png differ diff --git a/da-DK/images/save-example.png b/da-DK/images/save-example.png new file mode 100644 index 00000000..0d1a1d48 Binary files /dev/null and b/da-DK/images/save-example.png differ diff --git a/da-DK/images/start-listening.png b/da-DK/images/start-listening.png new file mode 100644 index 00000000..db113d03 Binary files /dev/null and b/da-DK/images/start-listening.png differ diff --git a/da-DK/images/test-new-blocks.png b/da-DK/images/test-new-blocks.png new file mode 100644 index 00000000..5c4260bc Binary files /dev/null and b/da-DK/images/test-new-blocks.png differ diff --git a/da-DK/images/test-your-model.png b/da-DK/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/da-DK/images/test-your-model.png differ diff --git a/da-DK/images/train-new-model.png b/da-DK/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/da-DK/images/train-new-model.png differ diff --git a/da-DK/images/whatyouwillmake.gif b/da-DK/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/da-DK/images/whatyouwillmake.gif differ diff --git a/da-DK/meta.yml b/da-DK/meta.yml new file mode 100644 index 00000000..ae376c3a --- /dev/null +++ b/da-DK/meta.yml @@ -0,0 +1,31 @@ +--- +title: Alien language +hero_image: images/banner.png +description: Create your own alien language to move a sprite +theme: orange +listed: true +copyedit: true +technologies: scratch +software: scratch +version: 4.0.0 +last_tested: '2019-06-04' +steps: + - + title: What you will make + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/da-DK/resources/NEW Alien 1.srt b/da-DK/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/da-DK/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/da-DK/resources/NEW Alien 2.srt b/da-DK/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/da-DK/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/da-DK/resources/NEW Alien 3.srt b/da-DK/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/da-DK/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/da-DK/resources/NEW Alien 4.srt b/da-DK/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/da-DK/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/da-DK/resources/readme.txt b/da-DK/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/da-DK/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/da-DK/step_1.md b/da-DK/step_1.md new file mode 100644 index 00000000..aa0540f2 --- /dev/null +++ b/da-DK/step_1.md @@ -0,0 +1,44 @@ +## What you will make + +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. + +You will need a **microphone**. + +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) + +--- collapse --- + +--- +title: Where are my voice recordings stored? +--- + +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). + +--- /collapse --- + +--- collapse --- +--- +title: No YouTube? Download the videos! +--- + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + + +--- /collapse --- + +--- collapse --- +--- +title: License +--- + +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +We'd like to thank Dale from machinelearningforkids.co.uk for all his work on this project. + +--- /collapse --- + + + + + diff --git a/da-DK/step_2.md b/da-DK/step_2.md new file mode 100644 index 00000000..e6930402 --- /dev/null +++ b/da-DK/step_2.md @@ -0,0 +1,42 @@ +## Set up the project + + +
+ +
+ + +--- task --- + ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- + +--- task --- + ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) + +--- /task --- + +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- + + + diff --git a/da-DK/step_3.md b/da-DK/step_3.md new file mode 100644 index 00000000..bf9eb8ee --- /dev/null +++ b/da-DK/step_3.md @@ -0,0 +1,49 @@ +## Invent two words + + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. + +--- task --- + ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". + +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. + +--- task --- + ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- + ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". + +--- /task --- diff --git a/da-DK/step_4.md b/da-DK/step_4.md new file mode 100644 index 00000000..785b11b0 --- /dev/null +++ b/da-DK/step_4.md @@ -0,0 +1,36 @@ +## Train the model + + +
+ +
+ + +You have gathered the examples you need, now you will use these examples to train your machine learning model. + +--- task --- + ++ Click on **Back to project** in the top left-hand corner. + ++ Click on **Learn & Test**. + ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) + +--- /task --- + +Once the training has finished, you can test how well your model recognises the alien words you have invented. + +--- task --- + ++ Click the **Start listening** button, then say your alien word for "left". + +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) + ++ Test whether the model recognises your alien word for "right" as well. + +--- /task --- + +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. + + + diff --git a/da-DK/step_5.md b/da-DK/step_5.md new file mode 100644 index 00000000..c361be8e --- /dev/null +++ b/da-DK/step_5.md @@ -0,0 +1,50 @@ +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. + +--- task --- + ++ Click on the **< Back to project** link. + ++ Click on **Make**. + ++ Click on **Scratch 3**. + ++ Click on **Open in Scratch 3**. + +--- /task --- + +--- task --- + ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. + +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) + +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) + +--- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/da-DK/step_6.md b/da-DK/step_6.md new file mode 100644 index 00000000..6ca94946 --- /dev/null +++ b/da-DK/step_6.md @@ -0,0 +1,11 @@ +## Challenge + +--- challenge --- + +--- task --- + +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. + +--- /task --- + +--- /challenge --- diff --git a/da-DK/step_7.md b/da-DK/step_7.md new file mode 100644 index 00000000..d4b22e96 --- /dev/null +++ b/da-DK/step_7.md @@ -0,0 +1,3 @@ +## What can you do now? + +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/de-DE/images/alien-language.png b/de-DE/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/de-DE/images/alien-language.png differ diff --git a/de-DE/images/allow-microphone.png b/de-DE/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/de-DE/images/allow-microphone.png differ diff --git a/de-DE/images/control-alien-blocks.png b/de-DE/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/de-DE/images/control-alien-blocks.png differ diff --git a/de-DE/images/create-project.png b/de-DE/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/de-DE/images/create-project.png differ diff --git a/de-DE/images/new-blocks.png b/de-DE/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/de-DE/images/new-blocks.png differ diff --git a/de-DE/images/project-train.png b/de-DE/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/de-DE/images/project-train.png differ diff --git a/de-DE/images/projects-list.png b/de-DE/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/de-DE/images/projects-list.png differ diff --git a/de-DE/images/record-button.png b/de-DE/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/de-DE/images/record-button.png differ diff --git a/de-DE/images/test-your-model.png b/de-DE/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/de-DE/images/test-your-model.png differ diff --git a/de-DE/images/train-new-model.png b/de-DE/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/de-DE/images/train-new-model.png differ diff --git a/de-DE/images/whatyouwillmake.gif b/de-DE/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/de-DE/images/whatyouwillmake.gif differ diff --git a/de-DE/meta.yml b/de-DE/meta.yml index cfbee8bf..af0d3fb1 100644 --- a/de-DE/meta.yml +++ b/de-DE/meta.yml @@ -10,15 +10,22 @@ software: Scratch version: 4.0.0 last_tested: '2019-06-04' steps: -- title: Einleitung -- title: Verwende ein vortrainiertes Modell -- title: Erstelle ein neues Projekt - completion: - - engaged -- title: Erstelle außerirdische Wörter -- title: Trainiere ein neues maschinelles Lernmodell -- title: Verwende außerirdische Wörter in Scratch - completion: - - internal -- title: 'Herausforderung: Neue Befehle hinzufügen' - challenge: true + - + title: Was du machen wirst + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/de-DE/resources/NEW Alien 1.srt b/de-DE/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/de-DE/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/de-DE/resources/NEW Alien 2.srt b/de-DE/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/de-DE/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/de-DE/resources/NEW Alien 3.srt b/de-DE/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/de-DE/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/de-DE/resources/NEW Alien 4.srt b/de-DE/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/de-DE/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/de-DE/resources/readme.txt b/de-DE/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/de-DE/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/de-DE/step_1.md b/de-DE/step_1.md index 441dcb8d..9d245f88 100644 --- a/de-DE/step_1.md +++ b/de-DE/step_1.md @@ -1,53 +1,44 @@ -## Einleitung +## Was du machen wirst -In diesem Projekt wirst du den Computer trainieren, um eine außerirdische Sprache zu verstehen. Du wirst einen Alien-Charakter steuern, damit dieser versteht, was du ihm sagst. +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. -### Was du machen wirst +You will need a **microphone**. ---- no-print --- - -![Alien bewegt sich nach links und rechts, um neue Wörter zu finden, Eeek und Bop](images/journey.gif) - ---- /no-print --- - ---- print-only --- - -![Übersicht über das gesamte Scratch-Projekt](images/test-new-blocks.png) - ---- /print-only --- +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) --- collapse --- + --- -title: Was du brauchen wirst +title: Where are my voice recordings stored? --- -+ Ein Computer mit Mikrofon - -+ Einen Internetzugang +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). --- /collapse --- --- collapse --- --- -title: Was du lernen wirst +title: No YouTube? Download the videos! --- -+ Wie du eine Sprache-zu-Text-Erweiterung in Scratch 3 mit einem vorab trainierten Modell benutzt -+ Wie man ein maschinelles Lernmodell trainiert, um Geräusche zu erkennen -+ Wie du dein trainiertes maschinelles Lernmodell in Scratch 3 verwendest + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + --- /collapse --- --- collapse --- --- -title: Zusätzliche Informationen für Pädagogen +title: License --- -Wenn du dieses Projekt ausdrucken möchtest, verwende die [druckerfreundliche Version](https://projects.raspberrypi.org/de-DE/projects/alien-language/print){:target="_blank"}. +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +Wir möchten Dale von machinelearningforkids.co.uk für seine Arbeit an diesem Projekt danken. --- /collapse--- -### Lizenz -Dieses Projekt ist zweifach lizenziert, sowohl unter einer [Creative Commons nicht-kommerziellen Weitergabelizenz](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} und einer [Apache Lizenz Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"} -Wir möchten Dale von machinelearningforkids.co.uk für seine Arbeit an diesem Projekt danken. + + diff --git a/de-DE/step_2.md b/de-DE/step_2.md index 23fbcb2f..e6930402 100644 --- a/de-DE/step_2.md +++ b/de-DE/step_2.md @@ -1,22 +1,42 @@ -## Verwende ein vortrainiertes Modell +## Set up the project + + +
+ +
+ --- task --- -+ Gehe zu [machinelearningforkids.co.uk/scratch3](https://machinelearningforkids.co.uk/scratch3/){:target="_blank"} ---- /task --- -**Warnung:** Dieser Schritt des Projekts kann nur mit dem Google Chrome-Webbrowser ausgeführt werden. Wenn Dir dieser Browser nicht zur Verfügung steht, fahre mit [Schritt 3: Erstelle ein neues Projekt](https://projects.raspberrypi.org/de-DE/projects/alien-language/3) fort ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- --- task --- -+ Lade als Nächstes die Erweiterung **Sprache zu Text**. Klicke auf die Schaltfläche **Erweiterungen** in der unteren linken Ecke und wähle dann aus der Liste **Sprache zu Text** aus. **Hinweis:** Stelle sicher, dass du die Erweiterung **Sprache zu Text** und nicht die Erweiterung **Text zu Sprache** auswählst. ![Pfeil, der auf die Schaltfläche "Erweiterungen" zeigt](images/extensions-annotated.png) -+ Verwende die Blöcke **Ereignisse**, **Steuerung** und die neuen Blöcke **Sprache zu Text**, um die folgenden Skripte zu erstellen. ![Neue hinzuzufügende Skripte](images/S-to-T-blocks.png) ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) --- /task --- ---- task --- Klicke auf die grüne Flagge, um dein Projekt zu testen. Sage "links" oder "rechts". Die Scratch-Katze sollte sich in die Richtung bewegen, die du ihr sagst. Verwende deine Stimme, um zu versuchen, die Scratch-Katze über den Bildschirm hin und her zu bewegen. Versuche, ruhig und klar zu sprechen. +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- -Es kann schwierig sein, es zum Laufen zu bringen. Wenn es nicht funktioniert, füge `sage`-Blöcke hinzu, sodass dein Skript, wie das folgende Skript aussieht, um zu zeigen, was es denkt, was du gesagt hast. --- /task --- -Du hast jetzt die Spracherkennung verwendet, um einen Charakter in Scratch zu steuern. -In diesem Schritt hast du ein maschinelles Lernmodell verwendet, das bereits für dich trainiert wurde, damit dein Programm schnell funktioniert. Es ist ein allgemeines maschinelles Lernmodell, das darauf trainiert wurde, Wörter im deutschen Wörterbuch zu erkennen. diff --git a/de-DE/step_3.md b/de-DE/step_3.md index 968d4b9d..bf9eb8ee 100644 --- a/de-DE/step_3.md +++ b/de-DE/step_3.md @@ -1,20 +1,49 @@ -## Erstelle ein neues Projekt -In den nächsten Schritten wirst du ein maschinelles Lernmodell trainieren, um zu sehen, wie es erstellt wurde. Im nächsten Teil des Projekts steuerst du mit deiner Stimme einen außerirdischen Charakter, der kein Deutsch versteht! Du wirst zwei neue Wörter erfinden, die in einem deutschen Wörterbuch nicht zu finden sind. Verwende die Wörter anschließend, um den außerirdischen Charakter zu steuern und trainiere ein maschinelles Lernmodell, um sie wieder erkennen zu lassen. +## Invent two words -Rufe zunächst die Website für maschinelles Lernen für Kinder auf und erstelle ein Projekt. + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. --- task --- -+ Gehe zu [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"}. Ändere die Sprache in der rechten Menüleiste 'Language' auf Deutsch. -+ Klicke auf **Los geht's**. ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". -+ Klicke auf **Jetzt testen**. --- /task --- +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. --- task --- -+ Klicke in der Menüleiste oben auf der Seite auf **Projekte**. -+ Klicke auf die Schaltfläche **Erstelle ein neues Projekt**. ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- -+ Nenne dein Projekt `Alien Sprache` und lege fest, wie `Sounds` (Geräusche) erkannt werden. Klicke dann auf die Schaltfläche **Erstelle**. ![Ein Projekt erstellen](images/create.png) ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". -+ Du solltest `Alien Sprache` in der Projektliste sehen. Klicke auf auf das Projekt `Alien Sprache`. --- /task --- +--- /task --- diff --git a/de-DE/step_4.md b/de-DE/step_4.md index fc8463d3..785b11b0 100644 --- a/de-DE/step_4.md +++ b/de-DE/step_4.md @@ -1,45 +1,36 @@ -## Erstelle außerirdische Wörter -In diesem Schritt erfindest du deine außerirdischen Wörter. +## Train the model ---- task --- - -Du benötigest zwei Wörter - ein außerirdisches Wort für "links" und ein außerirdisches Wort für "rechts". Erfinde zwei neue Wörter, die in einem deutschen Wörterbuch nicht vorkommen würden. Dies können zufällige Geräusche sein, solange du sie jedes Mal auf die gleiche Weise wiederholen kannst und sie sich erkennbar voneinander unterscheiden. Wenn du mit deiner Stimme keine Geräusche machen möchtest, ist das in Ordnung - Du kannst andere Wege finden, um Geräusche zu machen. Du kannst mit den Fingern klicken, in die Hände klatschen, ein quietschendes Spielzeug drücken oder alles tun, was du dir vorstellen können! Stelle einfach sicher, dass du dich an deine neuen Wörter erinnern kannst! + +
+ +
+ ---- /task --- +You have gathered the examples you need, now you will use these examples to train your machine learning model. --- task --- -+ Klicke auf die Schaltfläche **Trainieren**, um Beispiele zu sammeln. ![Pfeil, der auf die Schaltfläche "Trainieren" zeigt](images/click-train.png) ++ Click on **Back to project** in the top left-hand corner. -+ Klicke im Bereich **background noise** (Hintergrundgeräusche) auf die Schaltfläche **Beispiel hinzufügen**. Das Aufzeichnen von Hintergrundgeräuschen hilft deinem Modell für maschinelles Lernen dabei, den Unterschied zwischen den Geräuschen, die du wiedererkennen willst, und den Hintergrundgeräuschen zu erkennen, in denen du dich befindest. ![Pfeil, der auf die Schaltfläche "Beispiel hinzufügen" zeigt](images/background-noise-annotated.png) ++ Click on **Learn & Test**. -+ Klicke auf das Mikrofon, um 2 Sekunden Hintergrundgeräusche aufzunehmen. ![Pfeil, der auf die Mikrofontaste zeigt](images/add-example-annotated.png) - -+ Klicke auf die Schaltfläche **Hinzufügen**, um deine Aufnahme zu speichern. ![Pfeil, der auf die Schaltfläche "Hinzufügen" zeigt,](images/save-example-annotated.png) - -+ Wiederhole diese Schritte, bis du **mindestens 8 Beispiele** für Hintergrundgeräusche hast. ![Zelle gefüllt mit 8 Hintergrundbeispielen](images/8-background.png) ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) --- /task --- +Once the training has finished, you can test how well your model recognises the alien words you have invented. + --- task --- -+ Klicke auf die Schaltfläche **Erstelle eine neue Kategorie ("Label")** in der oberen rechten Ecke und erstelle eine neue Trainingszelle mit der Bezeichnung `links`. ![Pfeil, der auf die Schaltfläche "Erstelle eine neue Kategorie" zeigt](images/8-background-annotated.png) ++ Click the **Start listening** button, then say your alien word for "left". -+ Klicke in der neuen Zelle **links** auf die Schaltfläche **Beispiel hinzufügen**. ![Pfeil, der auf die Schaltfläche "Beispiel hinzufügen" zeigt](images/left-empty-annotated.png) +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) -+ Nimm **mindestens 8 Beispiele** deines außerirdischen Wortes für „links“ auf. ![Zelle, gefüllt mit 8 Beispielen für links](images/8-left.png) ++ Test whether the model recognises your alien word for "right" as well. --- /task --- +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. ---- task --- - -+ Klicke erneut auf die Schaltfläche **Erstelle eine neue Kategorie ("Label")** in der oberen rechten Ecke und erstelle eine neue Trainingszelle mit der Bezeichnung `rechts`. - -+ Klicke in der neuen Zelle **rechts** auf die Schaltfläche **Beispiel hinzufügen**. -+ Nimm **mindestens 8 Beispiele** deines außerirdischen Wortes für „rechts“ auf. ![Zelle gefüllt mit 8 Beispielen für rechts](images/8-right.png) -+ **Hinweis:** Am Ende dieses Schritts müssen sich in jedem der drei Zellen acht Beispiele befinden. - ---- /task --- diff --git a/de-DE/step_5.md b/de-DE/step_5.md index 2152efdc..c361be8e 100644 --- a/de-DE/step_5.md +++ b/de-DE/step_5.md @@ -1,22 +1,50 @@ -## Trainiere ein neues maschinelles Lernmodell -In diesem Schritt verwendest du die Beispiele, die du im letzten Schritt gesammelt hast, um dem Computer das Erkennen deiner neuen Wörter beizubringen. +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. --- task --- -+ Klicke oben links auf den Link **Zurück zum Projekt**. ![Pfeil, der auf die Schaltfläche "Zurück zum Projekt" zeigt](images/8-right-annotated.png) ++ Click on the **< Back to project** link. + ++ Click on **Make**. -+ Klickee auf die Schaltfläche **Lernen & Testen**. ![Pfeil, der auf die Schaltfläche "Lernen & Testen" zeigt](images/learn-test-annotated.png) ++ Click on **Scratch 3**. -+ Klicke auf **Trainiere ein neues maschinelles Lernmodell**. Dies kann einige Minuten dauern. ![Pfeil, der auf "Trainiere ein neues maschinelles Lernmodell" zeigt](images/train-annotated.png) ++ Click on **Open in Scratch 3**. --- /task --- --- task --- -+ Klicke nach Abschluss des Trainings auf die Schaltfläche **Start listening** (Hörprobe starten), um dein maschinelles Lernmodell zu testen. Sprich eines der Wörter (oder mache eines der Geräusche), die du dem Computer beigebracht hast, als "links" oder "rechts" zu erkennen. Wenn dein maschinelles Lernmodell dies erkennt, wird angezeigt, was es denkt, was du gesagt hast. ![Pfeil, der auf das zeigt, was der Computer denkt, was du getan hat](images/start-listening-annotated.png) ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. -+ Wenn du mit der Funktionsweise des Modells nicht zufrieden bist, kehre zur Seite **Trainieren** zurück und füge zu allen drei Trainingszellen weitere Beispiele hinzu. +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) -+ Wenn du mit deinem maschinellen Lernmodell zufrieden bist, fahre mit dem nächsten Schritt fort. +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) --- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/de-DE/step_6.md b/de-DE/step_6.md index 17fa9dd2..6ca94946 100644 --- a/de-DE/step_6.md +++ b/de-DE/step_6.md @@ -1,30 +1,11 @@ -## Verwende außerirdische Wörter in Scratch -In diesem Schritt verwendest du dein neues maschinelles Lernen in Scratch. +## Challenge ---- task --- - -+ Klicke auf die Schaltfläche **Machen**. ![Pfeil, der auf die Schaltfläche "Machen" zeigt](images/make-annotated.png) - -+ Klicke auf die Schaltfläche **Scratch 3** und dann auf **In Scratch 3 öffnen**. - -+ Klicke oben auf dem Bildschirm auf **Projektvorlagen** und öffne dann die Projektvorlage **Alien Language**. - ---- /task --- +--- challenge --- --- task --- -+ Schaue dir die Skripte für die Alien-Figur an. Die Skripte, die bereits vorhanden sind, bringen die Alien-Figur zu Beginn an die richtige Stelle und animieren es, wie es läuft. Lösche sie nicht. Füge das folgende Skript unter den Skripten, die bereits vorhanden sind, zu der Alien-Figur hinzu. ![Neue hinzuzufügende Skripte, einschließlich neuer Schaltflächen zur Verwendung deines Modells für maschinelles Lernen](images/add-new-blocks.png) - -+ Teste jetzt dein Programm! Klicke auf die grüne Flagge. Sage deine Worte (oder mache deine Geräusche) für "links" und "rechts", um dem Außerirdischen zu sagen, welchen Weg er gehen sollen. +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. --- /task --- -Du hast jetzt dein eigenes Modell für maschinelles Lernen für die Spracherkennung trainiert und damit einen Charakter in Scratch gesteuert. Im Gegensatz zu dem zuvor in diesem Projekt verwendeten vortrainierten Modell, das zum Erkennen von Zehntausenden von Wörtern trainiert wurde, wurde es nur zum Erkennen von zwei verschiedenen Wörtern trainiert. Das Prinzip ist jedoch dasselbe. - -Du hast auch erkannt, wie wichtig es ist, das Modell für maschinelles Lernen für die Arbeit mit bestimmten Hintergrundgeräuschen zu trainieren. - ---- task --- - -Kannst du Dir ein Beispiel für ein solches System vorstellen, das du zuvor gesehen hast? Beispielsweise verwenden einige Fahrzeuge Spracherkennungssysteme, die darauf trainiert wurden, die verschiedenen Befehle zu erkennen, die du an den Computer im Auto geben kannst. Welche anderen Beispiele hast Du verwendet? - ---- /task --- +--- /challenge --- diff --git a/de-DE/step_7.md b/de-DE/step_7.md index c7a168d2..d4b22e96 100644 --- a/de-DE/step_7.md +++ b/de-DE/step_7.md @@ -1,17 +1,3 @@ -## Herausforderung: Neue Befehle hinzufügen +## What can you do now? ---- challenge --- - ---- task --- - -+ Jetzt könntest du zwei weitere Trainingszellen für „hoch“ und „runter“ hinzufügen, damit du den Außerirdischen so steuern kannst, dass er sich in alle vier Richtungen bewegt. - ---- /task --- - ---- task --- - -+ Kannst du dir noch etwas vorstellen, für das du ein Modell für maschinelles Lernen verwenden könntest? - ---- /task --- - ---- /challenge --- +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/el-GR/images/alien-language.png b/el-GR/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/el-GR/images/alien-language.png differ diff --git a/el-GR/images/allow-microphone.png b/el-GR/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/el-GR/images/allow-microphone.png differ diff --git a/el-GR/images/control-alien-blocks.png b/el-GR/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/el-GR/images/control-alien-blocks.png differ diff --git a/el-GR/images/create-project.png b/el-GR/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/el-GR/images/create-project.png differ diff --git a/el-GR/images/new-blocks.png b/el-GR/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/el-GR/images/new-blocks.png differ diff --git a/el-GR/images/project-train.png b/el-GR/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/el-GR/images/project-train.png differ diff --git a/el-GR/images/projects-list.png b/el-GR/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/el-GR/images/projects-list.png differ diff --git a/el-GR/images/record-button.png b/el-GR/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/el-GR/images/record-button.png differ diff --git a/el-GR/images/test-your-model.png b/el-GR/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/el-GR/images/test-your-model.png differ diff --git a/el-GR/images/train-new-model.png b/el-GR/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/el-GR/images/train-new-model.png differ diff --git a/el-GR/images/whatyouwillmake.gif b/el-GR/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/el-GR/images/whatyouwillmake.gif differ diff --git a/el-GR/meta.yml b/el-GR/meta.yml index 1bfb547f..94cf017d 100644 --- a/el-GR/meta.yml +++ b/el-GR/meta.yml @@ -10,15 +10,22 @@ software: scratch version: 4.0.0 last_tested: '2019-06-04' steps: -- title: Εισαγωγή -- title: Χρησιμοποίησε ένα ήδη εκπαιδευμένο μοντέλο -- title: Δημιούργησε ένα νέο έργο - completion: - - engaged -- title: Δημιουργία ξένων λέξεων -- title: Εκπαίδευσε ένα νέο μοντέλο μηχανικής μάθησης -- title: Χρησιμοποίησε εξωγήινες λέξεις στο Scratch - completion: - - internal -- title: 'Πρόκληση: πρόσθεσε νέες εντολές' - challenge: true + - + title: Τι θα φτιάξεις + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/el-GR/resources/NEW Alien 1.srt b/el-GR/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/el-GR/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/el-GR/resources/NEW Alien 2.srt b/el-GR/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/el-GR/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/el-GR/resources/NEW Alien 3.srt b/el-GR/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/el-GR/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/el-GR/resources/NEW Alien 4.srt b/el-GR/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/el-GR/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/el-GR/resources/readme.txt b/el-GR/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/el-GR/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/el-GR/step_1.md b/el-GR/step_1.md index ad08467d..62fad384 100644 --- a/el-GR/step_1.md +++ b/el-GR/step_1.md @@ -1,53 +1,44 @@ -## Εισαγωγή +## Τι θα φτιάξεις -Σε αυτό το πρόγραμμα, θα εκπαιδεύσεις τον υπολογιστή να καταλαβαίνει μια ξένη γλώσσα. Θα το χρησιμοποιήσεις για να ελέγξεις έναν εξωγήινο χαρακτήρα, ώστε να καταλαβαίνει τι του λες να κάνει. +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. -### Τι θα φτιάξεις +You will need a **microphone**. ---- no-print --- - -![Εξωγήινος κινείται αριστερά και δεξιά σε νέες λέξεις, Eeek και Bop](images/journey.gif) - ---- /no-print --- - ---- print-only --- - -![Επισκόπηση ολόκληρου του προγράμματος Scratch](images/test-new-blocks.png) - ---- /print-only --- +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) --- collapse --- + --- -title: Τι θα χρειαστείς +title: Where are my voice recordings stored? --- -+ Έναν υπολογιστή με μικρόφωνο - -+ Πρόσβαση στο διαδίκτυο +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). --- /collapse --- --- collapse --- --- -title: Τι θα μάθεις +title: No YouTube? Download the videos! --- -+ Πώς να χρησιμοποιείς την επέκταση Ομιλία σε Κείμενο στο Scratch 3 με ένα ήδη ρυθμισμένο μοντέλο -+ Πώς να εκπαιδεύσεις ένα μοντέλο μηχανικής μάθησης για να αναγνωρίζει τους ήχους -+ Πώς να χρησιμοποιείς το εκπαιδευμένο μοντέλο εκμάθησης μηχανών σας στο Scratch 3 + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + --- /collapse --- --- collapse --- --- -title: Πρόσθετες πληροφορίες για εκπαιδευτικούς +title: License --- -Αν χρειαστεί να εκτυπώσεις αυτό το έργο, χρησιμοποίησε την [εκτυπώσιμη έκδοση](https://projects.raspberrypi.org/el-GR/projects/alien-language/print){:target="_blank"}. +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +Θα θέλαμε να ευχαριστήσουμε τον Dale από το machinelearningforkids.co.uk για όλη τη δουλειά του σε αυτό το έργο. --- /collapse --- -### Άδεια -Το έργο διπλής άδειας σύμφωνα με την άδεια τόσο από [Creative Commons Attribution Μη Εμπορική Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} και [άδεια Apache 2.0 Έκδοση](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"} -Θα θέλαμε να ευχαριστήσουμε τον Dale από το machinelearningforkids.co.uk για όλη τη δουλειά του σε αυτό το έργο. + + diff --git a/el-GR/step_2.md b/el-GR/step_2.md index a2a3b822..e6930402 100644 --- a/el-GR/step_2.md +++ b/el-GR/step_2.md @@ -1,22 +1,42 @@ -## Χρησιμοποίησε ένα ήδη εκπαιδευμένο μοντέλο +## Set up the project + + +
+ +
+ --- task --- -+ Πήγαινε στο [machinelearningforkids.co.uk/scratch3](https://machinelearningforkids.co.uk/scratch3/){:target="_blank"} ---- /task --- -**Προειδοποίηση:** Αυτό το βήμα του έργου μπορεί να ολοκληρωθεί μόνο χρησιμοποιώντας το πρόγραμμα περιήγησης ιστού Google Chrome. Εάν αυτό το πρόγραμμα περιήγησης δεν είναι διαθέσιμο για σένα, πήγαινε στο [βήμα 3: Δημιούργησε ένα νέο έργο](https://projects.raspberrypi.org/el-GR/projects/alien-language/3) ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- --- task --- -+ Στη συνέχεια, φόρτωσε την επέκταση **Κείμενο σε Ομιλία**. Κάνε κλικ στο κουμπί **Προσθήκη Επέκτασης** στην κάτω αριστερή γωνία και, στη συνέχεια, επέλεξε **Ομιλία σε Κείμενο** από τη λίστα. **Σημείωση:** Βεβαιώσου ότι έχεις επιλέξει την επέκταση **Ομιλία σε Κείμενο** και όχι την επέκταση **Κείμενο σε Ομιλία**. ![Βέλος που δείχνει το κουμπί επεκτάσεων](images/extensions-annotated.png) -+ Χρησιμοποίησε τα μπλοκ από τις κατηγορίες **Συμβάντα**, **Κίνηση** και **Ομιλία σε Κείμενο** για να δημιουργήσεις το παρακάτω σενάριο. ![Νέες εντολές για προσθήκη](images/S-to-T-blocks.png) ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) --- /task --- ---- task --- Κάνε κλικ στην πράσινη σημαία για να ελέγξεις τον κώδικά σου. Πες "left" (αριστερά) ή "right" (δεξιά). Η γάτα του Scratch θα πρέπει να κινηθεί προς την κατεύθυνση στην οποία της λες. Χρησιμοποίησε τη φωνή σου για να μετακινήσεις τη γάτα του Scratch εμπρός και πίσω στην οθόνη. Προσπάθησε να μιλάς ήρεμα και καθαρά. +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- -Μπορεί να είναι δύσκολο να το κάνεις να λειτουργήσει. Εάν δεν λειτουργεί, βάλε μερικά μπλοκ `πες` έτσι ώστε το σενάριό σου να μοιάζει με το παρακάτω σενάριο, για να δείχνει τι πιστεύει ότι λες. ![New scripts to see what the computer thinks you are saying](images/S-to-T-blocks-test.png) --- /task --- -Τώρα έχεις χρησιμοποιήσει την αναγνώριση ομιλίας για τον έλεγχο ενός χαρακτήρα στο Scratch. -Σε αυτό το βήμα, για να λειτουργήσει γρήγορα το πρόγραμμά σου, χρησιμοποίησες ένα μοντέλο μηχανικής μάθησης που είχε ήδη εκπαιδευτεί για εσένα. Είναι ένα γενικό μοντέλο μηχανικής μάθησης που έχει εκπαιδευτεί για να αναγνωρίζει λέξεις στο αγγλικό λεξικό. diff --git a/el-GR/step_3.md b/el-GR/step_3.md index d01c313e..bf9eb8ee 100644 --- a/el-GR/step_3.md +++ b/el-GR/step_3.md @@ -1,20 +1,49 @@ -## Δημιούργησε ένα νέο έργο -Στα επόμενα βήματα, θα εκπαιδεύσεις ένα μοντέλο μηχανικής μάθησης για να δεις πώς έγινε αυτό. Για το επόμενο μέρος του έργου, θα χρησιμοποιήσεις τη φωνή σου για να ελέγξεις έναν εξωγήινο χαρακτήρα που δεν καταλαβαίνει Αγγλικά! Θα επινοήσεις δύο νέες λέξεις που δε βρίσκονται σε κάποιο λεξικό. Στη συνέχεια, θα χρησιμοποιήσεις τις λέξεις αυτές για να ελέγξεις τον εξωγήινο χαρακτήρα και θα εκπαιδεύσεις ένα μοντέλο μηχανικής μάθησης για να τα αναγνωρίσεις. +## Invent two words -Πρώτα, πήγαινε στην ιστοσελίδα Machine Learning for Kids και δημιούργησε ένα έργο. + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. --- task --- -+ Πήγαινε στο [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} και άλλαξε τη γλώσσα σε Ελληνικά. -+ Κάνε κλικ στο **Ξεκίνα**. ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". -+ Κάνε κλικ στο **Δοκιμή τώρα**. --- /task --- +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. --- task --- -+ Κάνε κλικ στο **Έργα** στο μενού στο επάνω μέρος της σελίδας. -+ Κάνε κλικ στο κουμπί **Προσθήκη νέου έργου**. ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- -+ Ονόμασε το έργο σου `Alien Language` και ρύθμισέ το να μαθαίνει να αναγνωρίζει `ήχους`. Στη συνέχεια, επίλεξε τη **Δημιουργία**. ![Δημιουργία ενός έργου](images/create.png) ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". -+ Θα πρέπει να βλέπεις το `Alien Language` στη λίστα έργων. Κάνε κλικ στο έργο `Alien Language`. --- /task --- +--- /task --- diff --git a/el-GR/step_4.md b/el-GR/step_4.md index 938cf92e..81641be4 100644 --- a/el-GR/step_4.md +++ b/el-GR/step_4.md @@ -1,45 +1,36 @@ -## Δημιουργία ξένων λέξεων -Σε αυτό το βήμα, θα επινοήσεις τις εξωγήινες λέξεις σου. +## Train the model ---- task --- - -Χρειάζεσαι δύο λέξεις - μια εξωγήινη λέξη για το "αριστερά" και μια εξωγήινη λέξη για το "δεξιά". Επινόησε δύο νέες λέξεις που δε βρίσκονται σε ένα αγγλικό λεξικό. Μπορεί να είναι τυχαίοι θόρυβοι, εφ 'όσον μπορείς να τις επαναλάβεις με τον ίδιο τρόπο κάθε φορά και είναι αναγνωρίσιμα διαφορετικές μεταξύ τους. Εάν δεν θέλεις να κάνεις θορύβους με τη φωνή σου, αυτό είναι εντάξει - μπορείς να βρεις άλλους τρόπους για να κάνεις θορύβους. Μπορείς να κάνεις κλικ με τα δάχτυλά σου, να χτυπήσεις τα χέρια σου, να συμπιέσεις ένα φουσκωτό παιχνίδι ή να κάνεις οτιδήποτε άλλο μπορείς να σκεφτείς! Απλά βεβαιώσου ότι θυμάσαι τα νέα σου λόγια! + +
+ +
+ ---- /task --- +You have gathered the examples you need, now you will use these examples to train your machine learning model. --- task --- -+ Κάνε κλικ στο κουμπί **Εκπαίδευση** για να ξεκινήσεις να συλλέγεις δείγματα. ![Βέλος που δείχνει προς το κουμπί της εκπαίδευσης](images/click-train.png) ++ Click on **Back to project** in the top left-hand corner. -+ Κάνε κλικ στο πλήκτρο **Προσθήκη παραδείγματος** στην περιοχή **background noise**. Η εγγραφή θορύβου παρασκηνίου θα βοηθήσει το μοντέλο εκμάθησης της μηχανής σου να βρίσκει τη διαφορά μεταξύ των ήχων που θα εκπαιδεύσεις για να αναγνωρίζει και του θορύβου του χώρου που βρίσκεσαι. ![Βέλος που δείχνει στο κουμπί "Προσθήκη Παραδείγματος"](images/background-noise-annotated.png) ++ Click on **Learn & Test**. -+ Κάνε κλικ στο μικρόφωνο για να εγγράψεις 2 δευτερόλεπτα θορύβου υπόβαθρου. ![Βέλος που δείχνει προς το κουμπί μικροφώνου](images/add-example-annotated.png) - -+ Κάνε κλικ στο πλήκτρο **Προσθήκη** για να αποθηκεύσεις την εγγραφή σου. ![Βέλος που δείχνει το κουμπί προσθήκης](images/save-example-annotated.png) - -+ Επανάλαβε αυτά τα βήματα έως ότου έχεις **τουλάχιστον 8 παραδείγματα** θορύβου υπόβαθρου. ![σύνολο (γεμάτο) με 8 παραδείγματα φόντου](images/8-background.png) ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) --- /task --- ---- task --- - -+ Κάνε κλικ στο **Προσθήκη νέας ετικέτας** στην πάνω δεξιά γωνία, και δημιούργησε ένα νέο σύνολο εκπαίδευσης που λέγεται `left` (αριστερά). ![Βέλος που δείχνει στο κουμπί "Προσθήκη νέας ετικέτας"](images/8-background-annotated.png) - -+ Κάνε κλικ στο πλήκτρο **Προσθήκη παραδείγματος** στο νέο χώρο **left**. ![Βέλος που δείχνει στο κουμπί "Προσθήκη Παραδείγματος"](images/left-empty-annotated.png) +Once the training has finished, you can test how well your model recognises the alien words you have invented. -+ Κατάγραψε **τουλάχιστον 8 παραδείγματα** της εξωγήινης λέξης για το "αριστερά". ![σύνολο γεμάτο με 8 παραδείγματα "αριστερά"](images/8-left.png) +--- task -- ---- /task --- ++ Click the **Start listening** button, then say your alien word for "left". +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) ---- task --- ++ Test whether the model recognises your alien word for "right" as well. -+ Κάνε ξανά κλικ στο **Προσθήκη νέας ετικέτας** στην πάνω δεξιά γωνία, και δημιούργησε ένα νέο σύνολο εκπαίδευσης που λέγεται `right` (δεξιά). +--- /task --- -+ Κάνε κλικ στο πλήκτρο **Προσθήκη παραδείγματος** στην περιοχή **right**. +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. -+ Κατάγραψε **τουλάχιστον 8 παραδείγματα** της εξωγήινης λέξης για το "δεξιά". ![σύνολο (γεμάτο) με 8 παραδείγματα "δεξιά"](images/8-right.png) -+ **Σημείωση:** Στο τέλος αυτού του βήματος, θα πρέπει να έχεις τουλάχιστον οκτώ παραδείγματα σε κάθε ένα από τα τρία σύνολα. ---- /task --- diff --git a/el-GR/step_5.md b/el-GR/step_5.md index e48fd24b..c361be8e 100644 --- a/el-GR/step_5.md +++ b/el-GR/step_5.md @@ -1,22 +1,50 @@ -## Εκπαίδευσε ένα νέο μοντέλο μηχανικής μάθησης -Σε αυτό το βήμα, θα χρησιμοποιήσεις τα παραδείγματα που δημιούργησες στο τελευταίο βήμα για να εκπαιδεύσεις τον υπολογιστή πώς να αναγνωρίζει τις νέες λέξεις. +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. --- task --- -+ Κάνε κλικ στον σύνδεσμο **Επιστροφή στο έργο** στην επάνω αριστερή γωνία. ![Βέλος που δείχνει στο κουμπί "επιστροφή στο έργο"](images/8-right-annotated.png) ++ Click on the **< Back to project** link. + ++ Click on **Make**. -+ Κάνε κλικ στο κουμπί **Εκμάθηση & Δοκιμή**. ![Βέλος που δείχνει το κουμπί Εκμάθηση και Δοκιμή](images/learn-test-annotated.png) ++ Click on **Scratch 3**. -+ Κάνε κλικ στο **Εκπαίδευση νέου μοντέλου μηχανικής μάθησης**. Αυτό μπορεί να διαρκέσει μερικά λεπτά για να ολοκληρωθεί. ![Βέλος που δείχνει στο κουμπί Εκπαίδευση νέου μοντέλου μηχανικής μάθησης](images/train-annotated.png) ++ Click on **Open in Scratch 3**. --- /task --- --- task --- -+ Μόλις τελειώσει η εκπαίδευση, κάνε κλικ στο πλήκτρο **Εκκίνηση ακρόασης** για να ελέγξεις το μοντέλο μηχανικής μάθησης. Πες μία από τις λέξεις (ή κάνε έναν από τους ήχους) που έχεις εκπαιδεύσει τον υπολογιστή σου να αναγνωρίζει ως "αριστερά" ή "δεξιά". Αν το μοντέλο της μηχανικής μάθησης το αναγνωρίσει, θα εμφανίσει αυτό που νομίζει ότι είπες. ![Βέλος που δείχνει προς αυτό που ο υπολογιστής πιστεύει ότι είπες](images/start-listening-annotated.png) ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. -+ Αν δεν είσαι ευχαριστημένος με το πώς το μοντέλο λειτουργεί, πήγαινε πίσω στην **Εκπαίδευση** και πρόσθεσε περισσότερα παραδείγματα στα τρία σύνολα εκπαίδευσης. +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) -+ Όταν είσαι ικανοποιημένος με το μοντέλο μηχανικής μάθησης, προχώρησε στο επόμενο βήμα. +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) --- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/el-GR/step_6.md b/el-GR/step_6.md index dbf3451c..6ca94946 100644 --- a/el-GR/step_6.md +++ b/el-GR/step_6.md @@ -1,30 +1,11 @@ -## Χρησιμοποίησε εξωγήινες λέξεις στο Scratch -Σε αυτό το βήμα, θα χρησιμοποιήσεις τη νέα σου μηχανική μάθηση στο Scratch. +## Challenge ---- task --- - -+ Κάνε κλικ στο κουμπί **Υλοποίηση**. ![Βέλος που δείχνει στο κουμπί δημιουργίας](images/make-annotated.png) - -+ Κάνε κλικ στο κουμπί **Scratch 3**, στη συνέχεια κάνε κλικ στο **Άνοιγμα στο Scratch 3**. - -+ Κάνε κλικ στο **Πρότυπα έργου** στο επάνω μέρος της οθόνης και, στη συνέχεια, άνοιξε το πρότυπο έργου **Alien Language**. - ---- /task --- +--- challenge --- --- task --- -+ Δες τα σενάρια για το αντικείμενο εξωγήινος. Τα σενάρια που υπάρχουν ήδη θα τοποθετήσουν τον εξωγήινο στη σωστή θέση στην αρχή και θα ζωντανέψουν τον τρόπο που περπατάει. Μην τα διαγράψεις. Πρόσθεσε τον κώδικα παρακάτω στον εξωγήινο, κάτω από τα σενάρια που υπάρχουν ήδη. ![Νέες εντολές για προσθήκη, συμπεριλαμβανομένων νέων κουμπιών για να χρησιμοποιήσει το μοντέλο μηχανικής μάθησης](images/add-new-blocks.png) - -+ Τώρα, δοκίμασε το πρόγραμμά σου! Κάνε κλικ στην πράσινη σημαία. Πες τα λόγια σου (ή κάνε τους θορύβους σου) για "αριστερά" και "δεξιά" για να πεις στον εξωγήινο πώς να περπατήσει. +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. --- /task --- -Τώρα εκπαίδευσες το δικό σου μοντέλο μηχανικής μάθησης για να κάνει αναγνώριση ομιλίας και το χρησιμοποίησες για να ελέγχεις έναν χαρακτήρα στο Scratch. Σε αντίθεση με το προηγούμενο μοντέλο που χρησιμοποίησες νωρίτερα στο έργο, το οποίο είχε εκπαιδευτεί για να αναγνωρίζει δεκάδες χιλιάδες λέξεις, το έχεις εκπαιδεύσει μόνο για να αναγνωρίζει δύο διαφορετικές λέξεις. Ωστόσο, η ιδέα είναι η ίδια. - -Έχεις επίσης διαπιστώσει τη σημασία της εκπαίδευσης του μοντέλου μηχανικής μάθησης ώστε να δουλεύει με συγκεκριμένο θόρυβο περιβάλλοντος. - ---- task --- - -Μπορείς να σκεφτείς ένα παράδειγμα ενός τέτοιου συστήματος που έχεις ξαναδεί πριν; Για παράδειγμα, μερικά αυτοκίνητα χρησιμοποιούν συστήματα αναγνώρισης ομιλίας που έχουν εκπαιδευτεί για να αναγνωρίζουν τις διάφορες εντολές που μπορείς να δώσεις στον υπολογιστή του αυτοκινήτου. Ποια άλλα παραδείγματα έχεις χρησιμοποιήσει; - ---- /task --- +--- /challenge --- diff --git a/el-GR/step_7.md b/el-GR/step_7.md index 421e52b7..d4b22e96 100644 --- a/el-GR/step_7.md +++ b/el-GR/step_7.md @@ -1,17 +1,3 @@ -## Πρόκληση: πρόσθεσε νέες εντολές +## What can you do now? ---- challenge --- - ---- task --- - -+ Τώρα, θα μπορούσες να προσθέσεις δύο ακόμα σύνολα εκπαίδευσης για το "πάνω" και το "κάτω", έτσι ώστε να μπορείς να κάνεις τον εξωγήινο να κινείται και στις τέσσερις κατευθύνσεις. - ---- /task --- - ---- task --- - -+ Μπορείς να σκεφτείς κάτι άλλο που θα μπορούσε να χρησιμοποιήσει ένα μοντέλο μηχανικής μάθησης; - ---- /task --- - ---- /challenge --- +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/en-US/images/8-background.png b/en-US/images/8-background.png new file mode 100644 index 00000000..d27ef20a Binary files /dev/null and b/en-US/images/8-background.png differ diff --git a/en-US/images/add-example.png b/en-US/images/add-example.png new file mode 100644 index 00000000..0fa70ce6 Binary files /dev/null and b/en-US/images/add-example.png differ diff --git a/en-US/images/add-new-blocks.png b/en-US/images/add-new-blocks.png new file mode 100644 index 00000000..a00e4d4c Binary files /dev/null and b/en-US/images/add-new-blocks.png differ diff --git a/en-US/images/alien-language.png b/en-US/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/en-US/images/alien-language.png differ diff --git a/en-US/images/allow-microphone.png b/en-US/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/en-US/images/allow-microphone.png differ diff --git a/en-US/images/background-noise.png b/en-US/images/background-noise.png new file mode 100644 index 00000000..3a924b00 Binary files /dev/null and b/en-US/images/background-noise.png differ diff --git a/en-US/images/banner.png b/en-US/images/banner.png new file mode 100644 index 00000000..a54fe151 Binary files /dev/null and b/en-US/images/banner.png differ diff --git a/en-US/images/control-alien-blocks.png b/en-US/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/en-US/images/control-alien-blocks.png differ diff --git a/en-US/images/create-project.png b/en-US/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/en-US/images/create-project.png differ diff --git a/en-US/images/new-blocks.png b/en-US/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/en-US/images/new-blocks.png differ diff --git a/en-US/images/project-train.png b/en-US/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/en-US/images/project-train.png differ diff --git a/en-US/images/projects-list.png b/en-US/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/en-US/images/projects-list.png differ diff --git a/en-US/images/record-button.png b/en-US/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/en-US/images/record-button.png differ diff --git a/en-US/images/save-example.png b/en-US/images/save-example.png new file mode 100644 index 00000000..0d1a1d48 Binary files /dev/null and b/en-US/images/save-example.png differ diff --git a/en-US/images/start-listening.png b/en-US/images/start-listening.png new file mode 100644 index 00000000..db113d03 Binary files /dev/null and b/en-US/images/start-listening.png differ diff --git a/en-US/images/test-new-blocks.png b/en-US/images/test-new-blocks.png new file mode 100644 index 00000000..5c4260bc Binary files /dev/null and b/en-US/images/test-new-blocks.png differ diff --git a/en-US/images/test-your-model.png b/en-US/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/en-US/images/test-your-model.png differ diff --git a/en-US/images/train-new-model.png b/en-US/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/en-US/images/train-new-model.png differ diff --git a/en-US/images/whatyouwillmake.gif b/en-US/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/en-US/images/whatyouwillmake.gif differ diff --git a/en-US/meta.yml b/en-US/meta.yml new file mode 100644 index 00000000..ae376c3a --- /dev/null +++ b/en-US/meta.yml @@ -0,0 +1,31 @@ +--- +title: Alien language +hero_image: images/banner.png +description: Create your own alien language to move a sprite +theme: orange +listed: true +copyedit: true +technologies: scratch +software: scratch +version: 4.0.0 +last_tested: '2019-06-04' +steps: + - + title: What you will make + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/en-US/resources/NEW Alien 1.srt b/en-US/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/en-US/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/en-US/resources/NEW Alien 2.srt b/en-US/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/en-US/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/en-US/resources/NEW Alien 3.srt b/en-US/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/en-US/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/en-US/resources/NEW Alien 4.srt b/en-US/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/en-US/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/en-US/resources/readme.txt b/en-US/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/en-US/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/en-US/step_1.md b/en-US/step_1.md new file mode 100644 index 00000000..aa0540f2 --- /dev/null +++ b/en-US/step_1.md @@ -0,0 +1,44 @@ +## What you will make + +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. + +You will need a **microphone**. + +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) + +--- collapse --- + +--- +title: Where are my voice recordings stored? +--- + +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). + +--- /collapse --- + +--- collapse --- +--- +title: No YouTube? Download the videos! +--- + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + + +--- /collapse --- + +--- collapse --- +--- +title: License +--- + +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +We'd like to thank Dale from machinelearningforkids.co.uk for all his work on this project. + +--- /collapse --- + + + + + diff --git a/en-US/step_2.md b/en-US/step_2.md new file mode 100644 index 00000000..e6930402 --- /dev/null +++ b/en-US/step_2.md @@ -0,0 +1,42 @@ +## Set up the project + + +
+ +
+ + +--- task --- + ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- + +--- task --- + ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) + +--- /task --- + +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- + + + diff --git a/en-US/step_3.md b/en-US/step_3.md new file mode 100644 index 00000000..bf9eb8ee --- /dev/null +++ b/en-US/step_3.md @@ -0,0 +1,49 @@ +## Invent two words + + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. + +--- task --- + ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". + +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. + +--- task --- + ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- + ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". + +--- /task --- diff --git a/en-US/step_4.md b/en-US/step_4.md new file mode 100644 index 00000000..785b11b0 --- /dev/null +++ b/en-US/step_4.md @@ -0,0 +1,36 @@ +## Train the model + + +
+ +
+ + +You have gathered the examples you need, now you will use these examples to train your machine learning model. + +--- task --- + ++ Click on **Back to project** in the top left-hand corner. + ++ Click on **Learn & Test**. + ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) + +--- /task --- + +Once the training has finished, you can test how well your model recognises the alien words you have invented. + +--- task --- + ++ Click the **Start listening** button, then say your alien word for "left". + +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) + ++ Test whether the model recognises your alien word for "right" as well. + +--- /task --- + +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. + + + diff --git a/en-US/step_5.md b/en-US/step_5.md new file mode 100644 index 00000000..c361be8e --- /dev/null +++ b/en-US/step_5.md @@ -0,0 +1,50 @@ +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. + +--- task --- + ++ Click on the **< Back to project** link. + ++ Click on **Make**. + ++ Click on **Scratch 3**. + ++ Click on **Open in Scratch 3**. + +--- /task --- + +--- task --- + ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. + +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) + +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) + +--- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/en-US/step_6.md b/en-US/step_6.md new file mode 100644 index 00000000..6ca94946 --- /dev/null +++ b/en-US/step_6.md @@ -0,0 +1,11 @@ +## Challenge + +--- challenge --- + +--- task --- + +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. + +--- /task --- + +--- /challenge --- diff --git a/en-US/step_7.md b/en-US/step_7.md new file mode 100644 index 00000000..d4b22e96 --- /dev/null +++ b/en-US/step_7.md @@ -0,0 +1,3 @@ +## What can you do now? + +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/es-ES/images/8-background.png b/es-ES/images/8-background.png new file mode 100644 index 00000000..d27ef20a Binary files /dev/null and b/es-ES/images/8-background.png differ diff --git a/es-ES/images/add-example.png b/es-ES/images/add-example.png new file mode 100644 index 00000000..0fa70ce6 Binary files /dev/null and b/es-ES/images/add-example.png differ diff --git a/es-ES/images/add-new-blocks.png b/es-ES/images/add-new-blocks.png new file mode 100644 index 00000000..a00e4d4c Binary files /dev/null and b/es-ES/images/add-new-blocks.png differ diff --git a/es-ES/images/alien-language.png b/es-ES/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/es-ES/images/alien-language.png differ diff --git a/es-ES/images/allow-microphone.png b/es-ES/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/es-ES/images/allow-microphone.png differ diff --git a/es-ES/images/background-noise.png b/es-ES/images/background-noise.png new file mode 100644 index 00000000..3a924b00 Binary files /dev/null and b/es-ES/images/background-noise.png differ diff --git a/es-ES/images/banner.png b/es-ES/images/banner.png new file mode 100644 index 00000000..a54fe151 Binary files /dev/null and b/es-ES/images/banner.png differ diff --git a/es-ES/images/control-alien-blocks.png b/es-ES/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/es-ES/images/control-alien-blocks.png differ diff --git a/es-ES/images/create-project.png b/es-ES/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/es-ES/images/create-project.png differ diff --git a/es-ES/images/new-blocks.png b/es-ES/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/es-ES/images/new-blocks.png differ diff --git a/es-ES/images/project-train.png b/es-ES/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/es-ES/images/project-train.png differ diff --git a/es-ES/images/projects-list.png b/es-ES/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/es-ES/images/projects-list.png differ diff --git a/es-ES/images/record-button.png b/es-ES/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/es-ES/images/record-button.png differ diff --git a/es-ES/images/save-example.png b/es-ES/images/save-example.png new file mode 100644 index 00000000..0d1a1d48 Binary files /dev/null and b/es-ES/images/save-example.png differ diff --git a/es-ES/images/start-listening.png b/es-ES/images/start-listening.png new file mode 100644 index 00000000..db113d03 Binary files /dev/null and b/es-ES/images/start-listening.png differ diff --git a/es-ES/images/test-new-blocks.png b/es-ES/images/test-new-blocks.png new file mode 100644 index 00000000..5c4260bc Binary files /dev/null and b/es-ES/images/test-new-blocks.png differ diff --git a/es-ES/images/test-your-model.png b/es-ES/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/es-ES/images/test-your-model.png differ diff --git a/es-ES/images/train-new-model.png b/es-ES/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/es-ES/images/train-new-model.png differ diff --git a/es-ES/images/whatyouwillmake.gif b/es-ES/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/es-ES/images/whatyouwillmake.gif differ diff --git a/es-ES/meta.yml b/es-ES/meta.yml new file mode 100644 index 00000000..ae376c3a --- /dev/null +++ b/es-ES/meta.yml @@ -0,0 +1,31 @@ +--- +title: Alien language +hero_image: images/banner.png +description: Create your own alien language to move a sprite +theme: orange +listed: true +copyedit: true +technologies: scratch +software: scratch +version: 4.0.0 +last_tested: '2019-06-04' +steps: + - + title: What you will make + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/es-ES/resources/NEW Alien 1.srt b/es-ES/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/es-ES/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/es-ES/resources/NEW Alien 2.srt b/es-ES/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/es-ES/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/es-ES/resources/NEW Alien 3.srt b/es-ES/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/es-ES/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/es-ES/resources/NEW Alien 4.srt b/es-ES/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/es-ES/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/es-ES/resources/readme.txt b/es-ES/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/es-ES/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/es-ES/step_1.md b/es-ES/step_1.md new file mode 100644 index 00000000..aa0540f2 --- /dev/null +++ b/es-ES/step_1.md @@ -0,0 +1,44 @@ +## What you will make + +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. + +You will need a **microphone**. + +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) + +--- collapse --- + +--- +title: Where are my voice recordings stored? +--- + +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). + +--- /collapse --- + +--- collapse --- +--- +title: No YouTube? Download the videos! +--- + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + + +--- /collapse --- + +--- collapse --- +--- +title: License +--- + +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +We'd like to thank Dale from machinelearningforkids.co.uk for all his work on this project. + +--- /collapse --- + + + + + diff --git a/es-ES/step_2.md b/es-ES/step_2.md new file mode 100644 index 00000000..e6930402 --- /dev/null +++ b/es-ES/step_2.md @@ -0,0 +1,42 @@ +## Set up the project + + +
+ +
+ + +--- task --- + ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- + +--- task --- + ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) + +--- /task --- + +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- + + + diff --git a/es-ES/step_3.md b/es-ES/step_3.md new file mode 100644 index 00000000..bf9eb8ee --- /dev/null +++ b/es-ES/step_3.md @@ -0,0 +1,49 @@ +## Invent two words + + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. + +--- task --- + ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". + +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. + +--- task --- + ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- + ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". + +--- /task --- diff --git a/es-ES/step_4.md b/es-ES/step_4.md new file mode 100644 index 00000000..785b11b0 --- /dev/null +++ b/es-ES/step_4.md @@ -0,0 +1,36 @@ +## Train the model + + +
+ +
+ + +You have gathered the examples you need, now you will use these examples to train your machine learning model. + +--- task --- + ++ Click on **Back to project** in the top left-hand corner. + ++ Click on **Learn & Test**. + ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) + +--- /task --- + +Once the training has finished, you can test how well your model recognises the alien words you have invented. + +--- task --- + ++ Click the **Start listening** button, then say your alien word for "left". + +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) + ++ Test whether the model recognises your alien word for "right" as well. + +--- /task --- + +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. + + + diff --git a/es-ES/step_5.md b/es-ES/step_5.md new file mode 100644 index 00000000..c361be8e --- /dev/null +++ b/es-ES/step_5.md @@ -0,0 +1,50 @@ +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. + +--- task --- + ++ Click on the **< Back to project** link. + ++ Click on **Make**. + ++ Click on **Scratch 3**. + ++ Click on **Open in Scratch 3**. + +--- /task --- + +--- task --- + ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. + +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) + +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) + +--- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/es-ES/step_6.md b/es-ES/step_6.md new file mode 100644 index 00000000..6ca94946 --- /dev/null +++ b/es-ES/step_6.md @@ -0,0 +1,11 @@ +## Challenge + +--- challenge --- + +--- task --- + +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. + +--- /task --- + +--- /challenge --- diff --git a/es-ES/step_7.md b/es-ES/step_7.md new file mode 100644 index 00000000..d4b22e96 --- /dev/null +++ b/es-ES/step_7.md @@ -0,0 +1,3 @@ +## What can you do now? + +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/es-LA/images/alien-language.png b/es-LA/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/es-LA/images/alien-language.png differ diff --git a/es-LA/images/allow-microphone.png b/es-LA/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/es-LA/images/allow-microphone.png differ diff --git a/es-LA/images/background-noise.png b/es-LA/images/background-noise.png index 3a740f3f..3a924b00 100644 Binary files a/es-LA/images/background-noise.png and b/es-LA/images/background-noise.png differ diff --git a/es-LA/images/control-alien-blocks.png b/es-LA/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/es-LA/images/control-alien-blocks.png differ diff --git a/es-LA/images/create-project.png b/es-LA/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/es-LA/images/create-project.png differ diff --git a/es-LA/images/new-blocks.png b/es-LA/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/es-LA/images/new-blocks.png differ diff --git a/es-LA/images/project-train.png b/es-LA/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/es-LA/images/project-train.png differ diff --git a/es-LA/images/projects-list.png b/es-LA/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/es-LA/images/projects-list.png differ diff --git a/es-LA/images/record-button.png b/es-LA/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/es-LA/images/record-button.png differ diff --git a/es-LA/images/test-your-model.png b/es-LA/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/es-LA/images/test-your-model.png differ diff --git a/es-LA/images/train-new-model.png b/es-LA/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/es-LA/images/train-new-model.png differ diff --git a/es-LA/images/whatyouwillmake.gif b/es-LA/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/es-LA/images/whatyouwillmake.gif differ diff --git a/es-LA/meta.yml b/es-LA/meta.yml index 8c371a8b..09322c14 100644 --- a/es-LA/meta.yml +++ b/es-LA/meta.yml @@ -2,7 +2,7 @@ title: Lenguaje Alienígena hero_image: images/banner.png description: Crea tu propio lenguaje alienígena para mover un objeto -theme: orange +theme: naranja listed: true copyedit: true technologies: scratch @@ -10,15 +10,22 @@ software: scratch version: 4.0.0 last_tested: '2019-06-04' steps: -- title: Introducción -- title: Usa un modelo preentrenado -- title: Crea un nuevo proyecto - completion: - - engaged -- title: Crea palabras alienígenas -- title: Entrena un nuevo modelo de aprendizaje automático -- title: Usa palabras alienígenas en Scratch - completion: - - internal -- title: 'Desafío: añadir nuevos comandos' - challenge: true + - + title: Lo que harás + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/es-LA/resources/NEW Alien 1.srt b/es-LA/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/es-LA/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/es-LA/resources/NEW Alien 2.srt b/es-LA/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/es-LA/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/es-LA/resources/NEW Alien 3.srt b/es-LA/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/es-LA/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/es-LA/resources/NEW Alien 4.srt b/es-LA/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/es-LA/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/es-LA/resources/readme.txt b/es-LA/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/es-LA/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/es-LA/step_1.md b/es-LA/step_1.md index 85fde8b2..d233ce0a 100644 --- a/es-LA/step_1.md +++ b/es-LA/step_1.md @@ -1,53 +1,44 @@ -## Introducción +## Lo que harás -En este proyecto, entrenarás a la computadora para que entienda un idioma alienígena. Lo usarás para controlar a un personaje alienígena, de tal manera que pueda entender lo que le digas que haga. +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. -### Lo que harás +You will need a **microphone**. ---- no-print --- - -![Alienígena moviéndose de izquierda a derecha con nuevas palabras, Eeek y Bop](images/journey.gif) - ---- /no-print --- - ---- print-only --- - -![Resumen general de todo el proyecto en Scratch](images/test-new-blocks.png) - ---- /print-only --- +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) --- collapse --- + --- -title: Lo que necesitarás +title: Where are my voice recordings stored? --- -+ Una computadora con un micrófono - -+ Conexión a Internet +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). --- /collapse --- --- collapse --- --- -title: Lo que aprenderás +title: No YouTube? Download the videos! --- -+ Cómo usar la extensión de Reconocimiento de voz en Scratch 3 con un modelo preentrenado -+ Cómo entrenar un modelo de aprendizaje automático para reconocer sonidos -+ Cómo usar tu propio modelo de aprendizaje automático entrenado en Scratch 3 + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + --- /collapse --- --- collapse --- --- -title: Información adicional para educadores +title: License --- -Si necesitas imprimir este proyecto, usa la [versión para imprimir](https://projects.raspberrypi.org/es-LA/projects/alien-language/print){:target="_blank"}. +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +Nos gustaría dar las gracias a Dale de machinelearningforkids.co.uk por todo su trabajo en este proyecto. --- /collapse --- -### Licencia -Este proyecto actúa bajo una doble licencia: [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} y [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"} -Nos gustaría dar las gracias a Dale de machinelearningforkids.co.uk por todo su trabajo en este proyecto. + + diff --git a/es-LA/step_2.md b/es-LA/step_2.md index 42fe64b1..e6930402 100644 --- a/es-LA/step_2.md +++ b/es-LA/step_2.md @@ -1,22 +1,42 @@ -## Usa un modelo preentrenado +## Set up the project + + +
+ +
+ --- task --- -+ Ve a [machinelearningforkids.co.uk/scratch3](https://machinelearningforkids.co.uk/scratch3/){:target="_blank"} ---- /task --- -**Advertencia:** Este paso del proyecto solo se puede completar usando el navegador web Google Chrome. Si no dispones de este navegador, ve al [paso 3: Crea un nuevo proyecto](https://projects.raspberrypi.org/es-LA/projects/alien-language/3) ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- --- task --- -+ Luego, carga la extensión **Reconocimiento de voz**. Nota: Puede aparecerte en inglés como "Speech to Text". Haz clic en el botón **Añadir Extensión** en la esquina inferior izquierda y luego elige **Reconocimiento de voz** de la lista. **Nota:** Asegúrate de seleccionar la extensión **Reconocimiento de voz ("Speech to Text")**, no la extensión **Texto a voz**. ![Flecha que apunta al botón de extensiones](images/extensions-annotated.png) -+ Usa los bloques de **Eventos**, **Movimientos** y los nuevos bloques de **Reconocimiento de voz** para crear los siguientes bloques de código. ![Nuevo código para agregar](images/S-to-T-blocks.png) ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) --- /task --- ---- task --- Haz clic en la bandera verde para probar tu código. Di "izquierda" o "derecha". El gato Scratch debe moverse en la dirección que le pidas. Usa tu voz para intentar mover el gato Scratch de un lado a otro de la pantalla. Intenta hablar con calma y claridad. +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- -Puede ser difícil hacer que funcione. Si no funciona, añade bloques `decir` para que tu código se vea como el que aparece a continuación, y muestre lo que el programa cree que estás diciendo. ![New scripts to see what the computer thinks you are saying](images/S-to-T-blocks-test.png) --- /task --- -Acabas de utilizar el reconocimiento de voz para controlar un personaje en Scratch. -En este paso, para que tu programa funcionara rápidamente, utilizaste un modelo de aprendizaje automático que ya había sido entrenado previamente para ti. Es un modelo general de aprendizaje automático que ha sido entrenado para reconocer palabras de un diccionario en inglés. diff --git a/es-LA/step_3.md b/es-LA/step_3.md index 31e4b889..bf9eb8ee 100644 --- a/es-LA/step_3.md +++ b/es-LA/step_3.md @@ -1,20 +1,49 @@ -## Crea un nuevo proyecto -En los próximos pasos, entrenarás un modelo de aprendizaje automático para que veas cómo se hizo. ¡Para la próxima parte del proyecto, usarás tu voz para controlar a un personaje alienígena que no entiende inglés! Inventarás dos palabras nuevas que no se encuentran en un diccionario en inglés. Luego, usarás las palabras para controlar el personaje alienígena y entrenarás un modelo de aprendizaje automático para reconocerlas. +## Invent two words -Primero, ve al sitio web Machine Learning for Kids y crea un proyecto. + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. --- task --- -+ Ve a [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"}. -+ Haz clic en **Empezar**. ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". -+ Haz clic en **Pruébalo ahora**. --- /task --- +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. --- task --- -+ Haz clic en **Proyectos** en la barra de menú en la parte superior de la página. -+ Haz clic en el botón **Añadir un nuevo proyecto**. ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- -+ Nombra tu proyecto como `Lenguaje Alienígena` y configúralo para aprender a reconocer `sonidos`. Luego, haz clic en el botón **Crear**. ![Creando un proyecto](images/create.png) ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". -+ Deberías ver `Lenguaje Alienígena` en la lista de proyectos. Haz clic en el proyecto `Lenguaje Alienígena`. --- /task --- +--- /task --- diff --git a/es-LA/step_4.md b/es-LA/step_4.md index b3eb543c..785b11b0 100644 --- a/es-LA/step_4.md +++ b/es-LA/step_4.md @@ -1,45 +1,36 @@ -## Crea palabras alienígenas -En este paso, inventarás tus palabras alienígenas. +## Train the model ---- task --- - -Necesitarás dos palabras: una palabra alienígena para "izquierda" y otra para "derecha". Inventarás dos palabras nuevas que no se encuentran en un diccionario en inglés. Pueden ser ruidos aleatorios, siempre que puedas repetirlos de la misma manera cada vez y sean claramente diferentes entre sí. Si no deseas hacer ruidos con tu voz, está bien, puedes encontrar otras formas de hacerlos. ¡Puedes chasquear los dedos, aplaudir, apretar un juguete que chille o hacer cualquier otra cosa que se te ocurra! ¡Solo asegúrate de recordar tus nuevas palabras! + +
+ +
+ ---- /task --- +You have gathered the examples you need, now you will use these examples to train your machine learning model. --- task --- -+ Haz clic en el botón **Entrenar** para comenzar a recopilar ejemplos. ![Flecha que apunta al botón del entrenar](images/click-train.png) ++ Click on **Back to project** in the top left-hand corner. -+ Haz clic en el botón **Añade un ejemplo** dentro del contenedor **background noise (o Ruido de fondo)**. La grabación de ruido de fondo ayudará a tu modelo de aprendizaje automático a diferenciar entre los sonidos con los que se le entrenará para que los reconozca y el ruido de fondo de donde te encuentras. ![Flecha que apunta al botón agregar ejemplo](images/background-noise-annotated.png) ++ Click on **Learn & Test**. -+ Haz clic en el micrófono para grabar 2 segundos de ruido de fondo. ![Flecha que apunta al botón micrófono](images/add-example-annotated.png) - -+ Haz clic en el botón **Agregar** para guardar tu grabación. ![Flecha que apunta al botón agregar](images/save-example-annotated.png) - -+ Repite estos pasos hasta que tengas **al menos 8 ejemplos** de ruido de fondo. ![contenedor lleno de 8 ejemplos de fondo](images/8-background.png) ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) --- /task --- +Once the training has finished, you can test how well your model recognises the alien words you have invented. + --- task --- -+ Haz clic en el botón **Añadir etiqueta** en la esquina superior derecha y crea un nuevo contenedor de entrenamiento llamado `izquierda`. ![Flecha que apunta al botón agregar nueva etiqueta](images/8-background-annotated.png) ++ Click the **Start listening** button, then say your alien word for "left". -+ Haga clic en el botón **Añade un ejemplo** en el nuevo contenedor para **izquierda**. ![Flecha que apunta al botón agregar ejemplo](images/left-empty-annotated.png) +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) -+ Graba **al menos 8 ejemplos** de tu palabra alienígena para "izquierda". ![contenedor lleno de 8 ejemplos para izquierda](images/8-left.png) ++ Test whether the model recognises your alien word for "right" as well. --- /task --- +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. ---- task --- - -+ Vuelve a hacer clic en el botón **Añadir etiqueta** en la esquina superior derecha y crea un nuevo contenedor de entrenamiento llamado `derecha`. - -+ Haz clic en el botón **Añade un ejemplo** en el nuevo contenedor para **derecha**. -+ Graba **al menos 8 ejemplos** de tu palabra alienígena para "derecha". ![contenedor lleno de 8 ejemplos para derecha](images/8-right.png) -+ **Nota:** Al final de este paso, debes tener ocho ejemplos en cada uno de los tres contenedores. - ---- /task --- diff --git a/es-LA/step_5.md b/es-LA/step_5.md index d2f9f22e..c361be8e 100644 --- a/es-LA/step_5.md +++ b/es-LA/step_5.md @@ -1,22 +1,50 @@ -## Entrena un nuevo modelo de aprendizaje automático -En este paso, usarás los ejemplos que recopilaste en el último paso para entrenar a la computadora para que reconozca tus nuevas palabras. +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. --- task --- -+ Haz clic en el enlace **Volver al proyecto** en la esquina superior izquierda. ![Flecha que apunta al botón volver al proyecto](images/8-right-annotated.png) ++ Click on the **< Back to project** link. + ++ Click on **Make**. -+ Haz clic en el botón **Aprender & Probar**. ![Flecha que apunta al botón aprender y probar](images/learn-test-annotated.png) ++ Click on **Scratch 3**. -+ Haz clic en **Entrena un nuevo modelo**. Esto puede tardar unos minutos en completarse. ![Flecha que apunta a Entrenar nuevo modelo de aprendizaje automático](images/train-annotated.png) ++ Click on **Open in Scratch 3**. --- /task --- --- task --- -+ Una vez que el entrenamiento haya finalizado, haz clic en el botón **Start listening** (Comenzar a escuchar) para probar tu modelo de aprendizaje automático. Di una de las palabras (o haz uno de los sonidos) que has entrenado a la computadora para que reconozca como "izquierda" o "derecha". Si tu modelo de aprendizaje automático la reconoce, mostrará lo que cree que dijiste. ![Flecha que apunta a lo que la computadora cree que hiciste](images/start-listening-annotated.png) ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. -+ Si no estás satisfecho con el funcionamiento del modelo, regresa a la página **Entrenamiento** y agrega más ejemplos a los tres contenedores de entrenamiento. +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) -+ Cuando estés satisfecho con tu modelo de aprendizaje automático, continúa con el siguiente paso. +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) --- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/es-LA/step_6.md b/es-LA/step_6.md index 351eaf51..6ca94946 100644 --- a/es-LA/step_6.md +++ b/es-LA/step_6.md @@ -1,30 +1,11 @@ -## Usa palabras alienígenas en Scratch -En este paso, utilizarás tu nuevo aprendizaje automático en Scratch. +## Challenge ---- task --- - -+ Haz clic en el botón **Crea**. Nota: está en la página principal del proyecto. ![Flecha que apunta al botón crea](images/make-annotated.png) - -+ Haz clic en el botón **Scratch 3**, luego haz clic en **Abrir en Scratch 3**. - -+ Haz clic en **Project templates** (Plantillas de proyecto) en la parte superior de la pantalla, luego abre la plantilla de proyecto **Alien Language** (Lenguaje Alienígena). - ---- /task --- +--- challenge --- --- task --- -+ Mira el código para el objeto alienígena. Los bloques de código que ya están allí colocarán al objeto alienígena al comienzo en el lugar correcto y animarán su forma de caminar. No los elimines. Añade el código que se muestra a continuación al objeto alienígena, debajo de los bloques de código que ya están allí. ![Nuevos bloques de código para agregar, incluidos nuevos botones para usar su modelo de aprendizaje automático](images/add-new-blocks.png) - -+ ¡Ahora, prueba tu programa! Haz clic en la bandera verde. Nota: espera un poco hasta que el modelo de aprendizaje este listo. Di tus palabras (o haz tus ruidos) para "izquierda" y "derecha" para decirle al alienígena qué camino tomar. +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. --- /task --- -Ahora has entrenado tu propio modelo de aprendizaje automático para hacer reconocimiento de voz y lo has utilizado para controlar un personaje en Scratch. A diferencia del modelo preentrenado que utilizaste anteriormente en el proyecto, que había sido entrenado para reconocer decenas de miles de palabras, este solo lo has entrenado para reconocer dos palabras diferentes. Sin embargo, el principio es el mismo. - -También has visto la importancia de entrenar el modelo de aprendizaje automático para trabajar con algo de ruido de fondo. - ---- task --- - -¿Puedes pensar en un ejemplo de un sistema como este que hayas visto antes? Por ejemplo, algunos automóviles usan sistemas de reconocimiento de voz que han sido entrenados para reconocer los diferentes comandos que se le pueden dar a la computadora del automóvil. ¿Qué otros ejemplos has usado? - ---- /task --- +--- /challenge --- diff --git a/es-LA/step_7.md b/es-LA/step_7.md index 117b3cc6..d4b22e96 100644 --- a/es-LA/step_7.md +++ b/es-LA/step_7.md @@ -1,17 +1,3 @@ -## Desafío: añadir nuevos comandos +## What can you do now? ---- challenge --- - ---- task --- - -+ Ahora, podrías agregar dos contenedores de entrenamiento más para "arriba" y "abajo", de modo que puedas controlar al alienígena para que se mueva en las cuatro direcciones. - ---- /task --- - ---- task --- - -+ ¿Puedes pensar en algo más para lo que puedas usar un modelo de aprendizaje automático? - ---- /task --- - ---- /challenge --- +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/fi-FI/images/8-background.png b/fi-FI/images/8-background.png new file mode 100644 index 00000000..d27ef20a Binary files /dev/null and b/fi-FI/images/8-background.png differ diff --git a/fi-FI/images/add-example.png b/fi-FI/images/add-example.png new file mode 100644 index 00000000..0fa70ce6 Binary files /dev/null and b/fi-FI/images/add-example.png differ diff --git a/fi-FI/images/add-new-blocks.png b/fi-FI/images/add-new-blocks.png new file mode 100644 index 00000000..a00e4d4c Binary files /dev/null and b/fi-FI/images/add-new-blocks.png differ diff --git a/fi-FI/images/alien-language.png b/fi-FI/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/fi-FI/images/alien-language.png differ diff --git a/fi-FI/images/allow-microphone.png b/fi-FI/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/fi-FI/images/allow-microphone.png differ diff --git a/fi-FI/images/background-noise.png b/fi-FI/images/background-noise.png new file mode 100644 index 00000000..3a924b00 Binary files /dev/null and b/fi-FI/images/background-noise.png differ diff --git a/fi-FI/images/banner.png b/fi-FI/images/banner.png new file mode 100644 index 00000000..a54fe151 Binary files /dev/null and b/fi-FI/images/banner.png differ diff --git a/fi-FI/images/control-alien-blocks.png b/fi-FI/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/fi-FI/images/control-alien-blocks.png differ diff --git a/fi-FI/images/create-project.png b/fi-FI/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/fi-FI/images/create-project.png differ diff --git a/fi-FI/images/new-blocks.png b/fi-FI/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/fi-FI/images/new-blocks.png differ diff --git a/fi-FI/images/project-train.png b/fi-FI/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/fi-FI/images/project-train.png differ diff --git a/fi-FI/images/projects-list.png b/fi-FI/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/fi-FI/images/projects-list.png differ diff --git a/fi-FI/images/record-button.png b/fi-FI/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/fi-FI/images/record-button.png differ diff --git a/fi-FI/images/save-example.png b/fi-FI/images/save-example.png new file mode 100644 index 00000000..0d1a1d48 Binary files /dev/null and b/fi-FI/images/save-example.png differ diff --git a/fi-FI/images/start-listening.png b/fi-FI/images/start-listening.png new file mode 100644 index 00000000..db113d03 Binary files /dev/null and b/fi-FI/images/start-listening.png differ diff --git a/fi-FI/images/test-new-blocks.png b/fi-FI/images/test-new-blocks.png new file mode 100644 index 00000000..5c4260bc Binary files /dev/null and b/fi-FI/images/test-new-blocks.png differ diff --git a/fi-FI/images/test-your-model.png b/fi-FI/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/fi-FI/images/test-your-model.png differ diff --git a/fi-FI/images/train-new-model.png b/fi-FI/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/fi-FI/images/train-new-model.png differ diff --git a/fi-FI/images/whatyouwillmake.gif b/fi-FI/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/fi-FI/images/whatyouwillmake.gif differ diff --git a/fi-FI/meta.yml b/fi-FI/meta.yml new file mode 100644 index 00000000..ae376c3a --- /dev/null +++ b/fi-FI/meta.yml @@ -0,0 +1,31 @@ +--- +title: Alien language +hero_image: images/banner.png +description: Create your own alien language to move a sprite +theme: orange +listed: true +copyedit: true +technologies: scratch +software: scratch +version: 4.0.0 +last_tested: '2019-06-04' +steps: + - + title: What you will make + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/fi-FI/resources/NEW Alien 1.srt b/fi-FI/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/fi-FI/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/fi-FI/resources/NEW Alien 2.srt b/fi-FI/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/fi-FI/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/fi-FI/resources/NEW Alien 3.srt b/fi-FI/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/fi-FI/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/fi-FI/resources/NEW Alien 4.srt b/fi-FI/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/fi-FI/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/fi-FI/resources/readme.txt b/fi-FI/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/fi-FI/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/fi-FI/step_1.md b/fi-FI/step_1.md new file mode 100644 index 00000000..aa0540f2 --- /dev/null +++ b/fi-FI/step_1.md @@ -0,0 +1,44 @@ +## What you will make + +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. + +You will need a **microphone**. + +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) + +--- collapse --- + +--- +title: Where are my voice recordings stored? +--- + +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). + +--- /collapse --- + +--- collapse --- +--- +title: No YouTube? Download the videos! +--- + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + + +--- /collapse --- + +--- collapse --- +--- +title: License +--- + +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +We'd like to thank Dale from machinelearningforkids.co.uk for all his work on this project. + +--- /collapse --- + + + + + diff --git a/fi-FI/step_2.md b/fi-FI/step_2.md new file mode 100644 index 00000000..e6930402 --- /dev/null +++ b/fi-FI/step_2.md @@ -0,0 +1,42 @@ +## Set up the project + + +
+ +
+ + +--- task --- + ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- + +--- task --- + ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) + +--- /task --- + +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- + + + diff --git a/fi-FI/step_3.md b/fi-FI/step_3.md new file mode 100644 index 00000000..bf9eb8ee --- /dev/null +++ b/fi-FI/step_3.md @@ -0,0 +1,49 @@ +## Invent two words + + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. + +--- task --- + ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". + +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. + +--- task --- + ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- + ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". + +--- /task --- diff --git a/fi-FI/step_4.md b/fi-FI/step_4.md new file mode 100644 index 00000000..785b11b0 --- /dev/null +++ b/fi-FI/step_4.md @@ -0,0 +1,36 @@ +## Train the model + + +
+ +
+ + +You have gathered the examples you need, now you will use these examples to train your machine learning model. + +--- task --- + ++ Click on **Back to project** in the top left-hand corner. + ++ Click on **Learn & Test**. + ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) + +--- /task --- + +Once the training has finished, you can test how well your model recognises the alien words you have invented. + +--- task --- + ++ Click the **Start listening** button, then say your alien word for "left". + +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) + ++ Test whether the model recognises your alien word for "right" as well. + +--- /task --- + +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. + + + diff --git a/fi-FI/step_5.md b/fi-FI/step_5.md new file mode 100644 index 00000000..c361be8e --- /dev/null +++ b/fi-FI/step_5.md @@ -0,0 +1,50 @@ +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. + +--- task --- + ++ Click on the **< Back to project** link. + ++ Click on **Make**. + ++ Click on **Scratch 3**. + ++ Click on **Open in Scratch 3**. + +--- /task --- + +--- task --- + ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. + +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) + +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) + +--- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/fi-FI/step_6.md b/fi-FI/step_6.md new file mode 100644 index 00000000..6ca94946 --- /dev/null +++ b/fi-FI/step_6.md @@ -0,0 +1,11 @@ +## Challenge + +--- challenge --- + +--- task --- + +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. + +--- /task --- + +--- /challenge --- diff --git a/fi-FI/step_7.md b/fi-FI/step_7.md new file mode 100644 index 00000000..d4b22e96 --- /dev/null +++ b/fi-FI/step_7.md @@ -0,0 +1,3 @@ +## What can you do now? + +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/fr-FR/meta.yml b/fr-FR/meta.yml index 0c0130bf..5c72738c 100644 --- a/fr-FR/meta.yml +++ b/fr-FR/meta.yml @@ -10,16 +10,22 @@ software: scratch version: 4.0.0 last_tested: '2019-06-04' steps: -- title: Ce que tu vas faire -- title: Configurer le projet -- title: Inventer deux mots - completion: - - engaged -- title: Entraîner le modèle -- title: Contrôler l'extraterrestre - completion: - - internal -- title: 'Défi' - challenge: true - completion: - - external \ No newline at end of file + - + title: Ce que tu vas faire + - + title: Configurer le projet + - + title: Inventer deux mots + completion: + - engaged + - + title: Entraîner le modèle + - + title: Contrôler l'extraterrestre + completion: + - internal + - + title: 'Défi' + challenge: true + completion: + - external diff --git a/fr-FR/resources/NEW Alien 1.srt b/fr-FR/resources/NEW Alien 1.srt index 21f4d60e..cfece9bb 100644 --- a/fr-FR/resources/NEW Alien 1.srt +++ b/fr-FR/resources/NEW Alien 1.srt @@ -1,6 +1,6 @@ 1 00:00:04,760 --> 00:00:11,520 -Va sur rpf.io/ML4K et clique sur « Démarrez ». +Va sur rpf.io/ml4k et clique sur « Démarrez ». 2 00:00:11,520 --> 00:00:15,560 diff --git a/fr-FR/step_1.md b/fr-FR/step_1.md index 96776310..391aa36a 100644 --- a/fr-FR/step_1.md +++ b/fr-FR/step_1.md @@ -22,7 +22,7 @@ title: Où sont stockés mes enregistrements vocaux ? title: Pas de YouTube ? Télécharge les vidéos ! --- -Tu peux [télécharger l'ensemble des vidéos de ce projet](https://rpf.io/p/fr-FR/alien-language-go){:target="_blank"}. +Tu peux [télécharger l'ensemble des vidéos de ce projet](https://rpf.io/p/en/alien-language-go){:target="_blank"}. --- /collapse --- diff --git a/fr-FR/step_2.md b/fr-FR/step_2.md index d2cde260..f21eefa3 100644 --- a/fr-FR/step_2.md +++ b/fr-FR/step_2.md @@ -8,7 +8,7 @@ --- task --- -+ Va sur [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} dans un navigateur web. ++ Va sur [https://machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} dans un navigateur web. + Clique sur **Démarrez**. diff --git a/fr-FR/step_4.md b/fr-FR/step_4.md index 7c4a4b94..228f7908 100644 --- a/fr-FR/step_4.md +++ b/fr-FR/step_4.md @@ -14,8 +14,7 @@ Tu as rassemblé les exemples dont tu as besoin, tu vas maintenant utiliser ces + Clique sur **Apprendre & Tester**. -+ Clique sur le bouton **Entraîner un nouveau modèle d'apprentissage machine**. Cela peut prendre quelques minutes. -![Flèche pointant vers un bouton indiquant Entraîner un nouveau modèle d'apprentissage machine](images/train-new-model.png) ++ Clique sur le bouton **Entraîner un nouveau modèle d'apprentissage machine**. Cela peut prendre quelques minutes. ![Flèche pointant vers un bouton indiquant Entraîner un nouveau modèle d'apprentissage machine](images/train-new-model.png) --- /task --- @@ -25,8 +24,7 @@ Une fois l'entraînement terminé, tu peux tester dans quelle mesure ton modèle + Clique sur le bouton **Commencez à écouter**, puis dis ton mot extraterrestre pour « gauche ». -Si ton modèle d'apprentissage automatique le reconnaît, il affichera ce qu'il te prédit. -![Flèche pointant vers le bouton Commencez à écouter](images/test-your-model.png) +Si ton modèle d'apprentissage automatique le reconnaît, il affichera ce qu'il te prédit. ![Flèche pointant vers le bouton Commencez à écouter](images/test-your-model.png) + Teste si le modèle reconnaît également ton mot extraterrestre pour « droite ». diff --git a/fr-FR/step_7.md b/fr-FR/step_7.md index d3bf2262..3194b2ee 100644 --- a/fr-FR/step_7.md +++ b/fr-FR/step_7.md @@ -1,12 +1,3 @@ ## Que peux-tu faire maintenant ? -Il existe de nombreux autres projets d'apprentissage automatique et d'IA dans le parcours [Apprentissage automatique avec Scratch](https://projects.raspberrypi.org/fr-FR/pathways/scratch-machine-learning). - -*** - -Ce projet a été traduit par des bénévoles: - -Jonathan Vannieuwkerke -Michel Arnols - -Grâce aux bénévoles, nous pouvons donner aux gens du monde entier la chance d'apprendre dans leur propre langue. Vous pouvez nous aider à atteindre plus de personnes en vous portant volontaire pour la traduction - plus d'informations sur [rpf.io/translate](https://rpf.io/translate). +Il existe de nombreux autres projets d'apprentissage automatique et d'IA dans le parcours [Apprentissage automatique avec Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning). diff --git a/he-IL/images/8-background.png b/he-IL/images/8-background.png new file mode 100644 index 00000000..d27ef20a Binary files /dev/null and b/he-IL/images/8-background.png differ diff --git a/he-IL/images/add-example.png b/he-IL/images/add-example.png new file mode 100644 index 00000000..0fa70ce6 Binary files /dev/null and b/he-IL/images/add-example.png differ diff --git a/he-IL/images/add-new-blocks.png b/he-IL/images/add-new-blocks.png new file mode 100644 index 00000000..a00e4d4c Binary files /dev/null and b/he-IL/images/add-new-blocks.png differ diff --git a/he-IL/images/alien-language.png b/he-IL/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/he-IL/images/alien-language.png differ diff --git a/he-IL/images/allow-microphone.png b/he-IL/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/he-IL/images/allow-microphone.png differ diff --git a/he-IL/images/background-noise.png b/he-IL/images/background-noise.png new file mode 100644 index 00000000..3a924b00 Binary files /dev/null and b/he-IL/images/background-noise.png differ diff --git a/he-IL/images/banner.png b/he-IL/images/banner.png new file mode 100644 index 00000000..a54fe151 Binary files /dev/null and b/he-IL/images/banner.png differ diff --git a/he-IL/images/control-alien-blocks.png b/he-IL/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/he-IL/images/control-alien-blocks.png differ diff --git a/he-IL/images/create-project.png b/he-IL/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/he-IL/images/create-project.png differ diff --git a/he-IL/images/new-blocks.png b/he-IL/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/he-IL/images/new-blocks.png differ diff --git a/he-IL/images/project-train.png b/he-IL/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/he-IL/images/project-train.png differ diff --git a/he-IL/images/projects-list.png b/he-IL/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/he-IL/images/projects-list.png differ diff --git a/he-IL/images/record-button.png b/he-IL/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/he-IL/images/record-button.png differ diff --git a/he-IL/images/save-example.png b/he-IL/images/save-example.png new file mode 100644 index 00000000..0d1a1d48 Binary files /dev/null and b/he-IL/images/save-example.png differ diff --git a/he-IL/images/start-listening.png b/he-IL/images/start-listening.png new file mode 100644 index 00000000..db113d03 Binary files /dev/null and b/he-IL/images/start-listening.png differ diff --git a/he-IL/images/test-new-blocks.png b/he-IL/images/test-new-blocks.png new file mode 100644 index 00000000..5c4260bc Binary files /dev/null and b/he-IL/images/test-new-blocks.png differ diff --git a/he-IL/images/test-your-model.png b/he-IL/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/he-IL/images/test-your-model.png differ diff --git a/he-IL/images/train-new-model.png b/he-IL/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/he-IL/images/train-new-model.png differ diff --git a/he-IL/images/whatyouwillmake.gif b/he-IL/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/he-IL/images/whatyouwillmake.gif differ diff --git a/he-IL/meta.yml b/he-IL/meta.yml new file mode 100644 index 00000000..ae376c3a --- /dev/null +++ b/he-IL/meta.yml @@ -0,0 +1,31 @@ +--- +title: Alien language +hero_image: images/banner.png +description: Create your own alien language to move a sprite +theme: orange +listed: true +copyedit: true +technologies: scratch +software: scratch +version: 4.0.0 +last_tested: '2019-06-04' +steps: + - + title: What you will make + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/he-IL/resources/NEW Alien 1.srt b/he-IL/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/he-IL/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/he-IL/resources/NEW Alien 2.srt b/he-IL/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/he-IL/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/he-IL/resources/NEW Alien 3.srt b/he-IL/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/he-IL/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/he-IL/resources/NEW Alien 4.srt b/he-IL/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/he-IL/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/he-IL/resources/readme.txt b/he-IL/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/he-IL/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/he-IL/step_1.md b/he-IL/step_1.md new file mode 100644 index 00000000..aa0540f2 --- /dev/null +++ b/he-IL/step_1.md @@ -0,0 +1,44 @@ +## What you will make + +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. + +You will need a **microphone**. + +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) + +--- collapse --- + +--- +title: Where are my voice recordings stored? +--- + +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). + +--- /collapse --- + +--- collapse --- +--- +title: No YouTube? Download the videos! +--- + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + + +--- /collapse --- + +--- collapse --- +--- +title: License +--- + +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +We'd like to thank Dale from machinelearningforkids.co.uk for all his work on this project. + +--- /collapse --- + + + + + diff --git a/he-IL/step_2.md b/he-IL/step_2.md new file mode 100644 index 00000000..e6930402 --- /dev/null +++ b/he-IL/step_2.md @@ -0,0 +1,42 @@ +## Set up the project + + +
+ +
+ + +--- task --- + ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- + +--- task --- + ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) + +--- /task --- + +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- + + + diff --git a/he-IL/step_3.md b/he-IL/step_3.md new file mode 100644 index 00000000..bf9eb8ee --- /dev/null +++ b/he-IL/step_3.md @@ -0,0 +1,49 @@ +## Invent two words + + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. + +--- task --- + ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". + +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. + +--- task --- + ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- + ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". + +--- /task --- diff --git a/he-IL/step_4.md b/he-IL/step_4.md new file mode 100644 index 00000000..785b11b0 --- /dev/null +++ b/he-IL/step_4.md @@ -0,0 +1,36 @@ +## Train the model + + +
+ +
+ + +You have gathered the examples you need, now you will use these examples to train your machine learning model. + +--- task --- + ++ Click on **Back to project** in the top left-hand corner. + ++ Click on **Learn & Test**. + ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) + +--- /task --- + +Once the training has finished, you can test how well your model recognises the alien words you have invented. + +--- task --- + ++ Click the **Start listening** button, then say your alien word for "left". + +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) + ++ Test whether the model recognises your alien word for "right" as well. + +--- /task --- + +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. + + + diff --git a/he-IL/step_5.md b/he-IL/step_5.md new file mode 100644 index 00000000..c361be8e --- /dev/null +++ b/he-IL/step_5.md @@ -0,0 +1,50 @@ +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. + +--- task --- + ++ Click on the **< Back to project** link. + ++ Click on **Make**. + ++ Click on **Scratch 3**. + ++ Click on **Open in Scratch 3**. + +--- /task --- + +--- task --- + ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. + +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) + +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) + +--- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/he-IL/step_6.md b/he-IL/step_6.md new file mode 100644 index 00000000..6ca94946 --- /dev/null +++ b/he-IL/step_6.md @@ -0,0 +1,11 @@ +## Challenge + +--- challenge --- + +--- task --- + +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. + +--- /task --- + +--- /challenge --- diff --git a/he-IL/step_7.md b/he-IL/step_7.md new file mode 100644 index 00000000..d4b22e96 --- /dev/null +++ b/he-IL/step_7.md @@ -0,0 +1,3 @@ +## What can you do now? + +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/hi-IN/images/alien-language.png b/hi-IN/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/hi-IN/images/alien-language.png differ diff --git a/hi-IN/images/allow-microphone.png b/hi-IN/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/hi-IN/images/allow-microphone.png differ diff --git a/hi-IN/images/control-alien-blocks.png b/hi-IN/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/hi-IN/images/control-alien-blocks.png differ diff --git a/hi-IN/images/create-project.png b/hi-IN/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/hi-IN/images/create-project.png differ diff --git a/hi-IN/images/new-blocks.png b/hi-IN/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/hi-IN/images/new-blocks.png differ diff --git a/hi-IN/images/project-train.png b/hi-IN/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/hi-IN/images/project-train.png differ diff --git a/hi-IN/images/projects-list.png b/hi-IN/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/hi-IN/images/projects-list.png differ diff --git a/hi-IN/images/record-button.png b/hi-IN/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/hi-IN/images/record-button.png differ diff --git a/hi-IN/images/test-your-model.png b/hi-IN/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/hi-IN/images/test-your-model.png differ diff --git a/hi-IN/images/train-new-model.png b/hi-IN/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/hi-IN/images/train-new-model.png differ diff --git a/hi-IN/images/whatyouwillmake.gif b/hi-IN/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/hi-IN/images/whatyouwillmake.gif differ diff --git a/hi-IN/meta.yml b/hi-IN/meta.yml index b637e5da..38612230 100644 --- a/hi-IN/meta.yml +++ b/hi-IN/meta.yml @@ -2,7 +2,7 @@ title: एलियन भाषा hero_image: images/banner.png description: Sprite को हिलाने के लिए अपनी स्वयं की एलियन भाषा बनाएं -theme: orange +theme: नारंगी listed: true copyedit: true technologies: scratch @@ -10,15 +10,22 @@ software: scratch version: 4.0.0 last_tested: '2019-06-04' steps: -- title: भूमिका -- title: एक पूर्व प्रशिक्षित मॉडल का उपयोग करें -- title: एक नई परियोजना बनाएं - completion: - - engaged -- title: एलियन शब्द बनाएं -- title: एक नए मशीन लर्निंग मॉडल को प्रशिक्षित करें -- title: Scratch में एलियन शब्दों का प्रयोग करें - completion: - - internal -- title: 'चुनौती: नए आदेश जोड़ें' - challenge: true + - + title: आप क्या बनाएँगे + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/hi-IN/resources/NEW Alien 1.srt b/hi-IN/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/hi-IN/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/hi-IN/resources/NEW Alien 2.srt b/hi-IN/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/hi-IN/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/hi-IN/resources/NEW Alien 3.srt b/hi-IN/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/hi-IN/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/hi-IN/resources/NEW Alien 4.srt b/hi-IN/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/hi-IN/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/hi-IN/resources/readme.txt b/hi-IN/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/hi-IN/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/hi-IN/step_1.md b/hi-IN/step_1.md index 318a451c..a3eb6213 100644 --- a/hi-IN/step_1.md +++ b/hi-IN/step_1.md @@ -1,53 +1,44 @@ -## भूमिका +## आप क्या बनाएँगे -इस परियोजना में, आप एक एलियन भाषा को समझने के लिए कंप्यूटर को प्रशिक्षित करेंगे। आप एक एलियन चरित्र को नियंत्रित करने के लिए इसका उपयोग करेंगे ताकि वो समझ सके कि आप उसे क्या करने के लिए कहते हैं। +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. -### आप क्या बनाएँगे +You will need a **microphone**. ---- no-print --- - -![नए शब्दों Eeek और Bop पर एलियन बाएं और दाएं जाता है](images/journey.gif) - ---- /no-print --- - ---- print-only --- - -![संपूर्ण Scratch परियोजना का अवलोकन](images/test-new-blocks.png) - ---- /print-only --- +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) --- collapse --- + --- -title: आपको किन चीज़ों की आवश्यकता होगी +title: Where are my voice recordings stored? --- -+ एक कंप्यूटर जिसमें माइक्रोफोन हो - -+ इंटरनेट प्रवेश +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). --- /collapse --- --- collapse --- --- -title: आप क्या सीखेंगे +title: No YouTube? Download the videos! --- -+ Scratch 3 में एक पूर्व प्रशिक्षित नमूने के साथ Speech to Text extension का उपयोग कैसे करें -+ आवाज़ों को पहचानने के लिए मशीन लर्निंग मॉडल को कैसे प्रशिक्षित किया जाए -+ Scratch 3 में अपने प्रशिक्षित मशीन लर्निंग मॉडल का उपयोग कैसे करें + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + --- /collapse --- --- collapse --- --- -title: शिक्षकों के लिए अतिरिक्त जानकारी +title: License --- -अगर आपको इस परियोजना को प्रिंट करने की आवश्यकता है, तो कृप्या [प्रिंटर-अनुकूल संस्करण](https://projects.raspberrypi.org/hi-IN/projects/alien-language/print){:target="_blank"} का उपयोग करें। +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +हम इस परियोजना पर machinelearningforkids.co.uk से डेल को अपने सभी काम के लिए धन्यवाद देना चाहते हैं। --- /collapse --- -### लाइसेंस -यह परियोजना दोनों [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} और [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"} के तहत डुअल-लाइसेंस है -हम इस परियोजना पर machinelearningforkids.co.uk से डेल को अपने सभी काम के लिए धन्यवाद देना चाहते हैं। + + diff --git a/hi-IN/step_2.md b/hi-IN/step_2.md index 8c84bedc..e6930402 100644 --- a/hi-IN/step_2.md +++ b/hi-IN/step_2.md @@ -1,21 +1,42 @@ -## एक पूर्व प्रशिक्षित मॉडल का उपयोग करें +## Set up the project + + +
+ +
+ --- task --- -+ [machinelearningforkids.co.uk/scratch3](https://machinelearningforkids.co.uk/scratch3/){:target="_blank"} पर जाएं --- /task --- -**चेतावनी:** परियोजना का यह चरण केवल Google Chrome वेब ब्राउज़र का उपयोग करके पूरा किया जा सकता है। यदि यह ब्राउज़र आपके लिए उपलब्ध नहीं है, तो कृपया [चरण 3: एक नई परियोजना बनाएं](https://projects.raspberrypi.org/hi-IN/projects/alien-language/3) पर जाएं ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- --- task --- -+ आगे **Speech to Text** एक्सटेंशन को लोड करें। **Extensions** बटन पर क्लिक करें जो नीचे बाएँ हाथ के कोने में है, और फिर सूची से **Speech to Text** चुनें। **टिप्पणी:** सुनिश्चित करें कि आप **Speech to Text** एक्सटेंशन का चयन कर रहे हैं, **Text to Speech** एक्सटेंशन का नहीं। ![Extensions बटन की ओर इशारा करता हुआ तीर](images/extensions-annotated.png) -+ **Events** खंड, **Motions** खंड, और नए **Speech to Text** खंड का उपयोग करें निम्नलिखित स्क्रिप्ट बनाने के लिए। ![नई स्क्रिप्ट जोड़ने के लिए](images/S-to-T-blocks.png) ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) --- /task --- ---- task --- अपने कोड का परीक्षण करने के लिए हरे झंडे पर क्लिक करें। "left" या "right" कहें। Scratch बिल्ली को उस दिशा में आगे बढ़ना चाहिए जो आप उसे बताते हैं। Scratch बिल्ली को स्क्रीन पर आगे और पीछे ले जाने की कोशिश करने के लिए अपनी आवाज़ का उपयोग करें। शांत और स्पष्ट रूप से बोलने की कोशिश करें। +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- -इसे काम में लाना मुश्किल हो सकता है। यदि यह काम नहीं करता है, तो `say` खंड जोड़ें, ताकि आपकी स्क्रिप्ट नीचे दी गई स्क्रिप्ट की तरह दिखे, यह दिखाने के लिए कि उसके हिसाब से आप क्या कह रहे हैं। ![New scripts to see what the computer thinks you are saying](images/S-to-T-blocks-test.png) --- /task --- -अब आपने Scratch में एक चरित्र को नियंत्रित करने के लिए भाषण मान्यता का उपयोग किया है। -इस चरण में, अपने प्रोग्राम को तेज़ी से काम करने के लिए, आपने एक मशीन लर्निंग मॉडल का उपयोग किया जो आपके लिए पहले से ही प्रशिक्षित था। यह एक सामान्य मशीन लर्निंग मॉडल है जिसे अंग्रेजी शब्दकोश में शब्दों को पहचानने के लिए प्रशिक्षित किया गया था। diff --git a/hi-IN/step_3.md b/hi-IN/step_3.md index 941fd038..bf9eb8ee 100644 --- a/hi-IN/step_3.md +++ b/hi-IN/step_3.md @@ -1,20 +1,49 @@ -## एक नई परियोजना बनाएं -अगले कुछ चरणों में, आप मशीन लर्निंग मॉडल को यह देखने के लिए प्रशिक्षित करेंगे कि यह कैसे किया गया था। परियोजना के अगले भाग के लिए, आप अपनी आवाज़ का उपयोग एक एलियन चरित्र को नियंत्रित करने के लिए करेंगे जो अंग्रेजी नहीं समझता है! आप दो नए शब्दों का आविष्कार करेंगे जो एक अंग्रेजी शब्दकोश में नहीं मिलेंगे। फिर, आप एलियन चरित्र को नियंत्रित करने के लिए शब्दों का उपयोग करेंगे, और उन्हें पहचानने के लिए मशीन लर्निंग मॉडल को प्रशिक्षित करेंगे। +## Invent two words -सबसे पहले, Machine Learning for Kids वेबसाइट पर जाएं और एक परियोजना बनाएं। + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. --- task --- -+ [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} पर जाएं। -+ **Get started** पर क्लिक करें। ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". -+ **Try it now** पर क्लिक करें। --- /task --- +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. --- task --- -+ पृष्ठ के शीर्ष पर मेन्यू बार में **Projects** पर क्लिक करें। -+ **Add a new project** बटन पर क्लिक करें। ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- -+ अपनी परियोजना का नाम `Alien Language` रखें और यह निर्धारित करे कि `sounds` को पहचाना कैसे सीखा जाए। फिर, **Create** बटन पर क्लिक करें। ![एक परियोजना बनाएँ](images/create.png) ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". -+ आपको परियोजनाओं की सूची में `Alien Language` दिखना चाहिए। `Alien Language` परियोजना पर क्लिक करें। --- /task --- +--- /task --- diff --git a/hi-IN/step_4.md b/hi-IN/step_4.md index efe481c3..785b11b0 100644 --- a/hi-IN/step_4.md +++ b/hi-IN/step_4.md @@ -1,45 +1,36 @@ -## एलियन शब्द बनाएं -इस चरण में, आप अपने एलियन शब्दों का आविष्कार करेंगे। +## Train the model ---- task --- - -आपको दो शब्दों की आवश्यकता है - "left" के लिए एक एलियन शब्द और "right" के लिए एक एलियन शब्द। दो नए शब्दों का आविष्कार कीजिये जो एक अंग्रेजी शब्दकोश में नहीं मिलेंगे। वे यादृच्छिक शोर हो सकते हैं, जब तक आप उन्हें हर बार उसी तरह से दोहरा सकते हैं और वे एक दूसरे से अलग-अलग होते हैं। यदि आप अपनी आवाज के साथ शोर नहीं करना चाहते हैं, तो आप शोर करने के अन्य तरीके खोज सकते हैं। आप अपनी उंगलियों को क्लिक कर सकते हैं, अपने हाथों से ताली बजा सकते हैं, एक चीख़ता खिलौना निचोड़ सकते हैं, या ऐसा कुछ भी कर सकते हैं जिसके बारे में आप सोच सकते हैं! बस यह सुनिश्चित करें कि आप अपने नए शब्दों को याद रख सकेंगे! + +
+ +
+ ---- /task --- +You have gathered the examples you need, now you will use these examples to train your machine learning model. --- task --- -+ **Train** बटन पर क्लिक करें नमूने इकट्ठा करना शुरू करने के लिए। ![Train बटन की ओर इशारा करता हुआ तीर](images/click-train.png) ++ Click on **Back to project** in the top left-hand corner. -+ **background noise** बाल्टी में **Add example** बटन पर क्लिक करें। पृष्ठभूमि शोर की रिकॉर्डिंग आपके मशीन लर्निंग मॉडल को आवाज़ों के बीच अंतर बताने में मदद करेगी, जो आप इसे पहचानने के लिए प्रशिक्षित करेंगे, और पृष्ठभूमि शोर उस जगह का जहाँ आप हैं। ![Add example बटन की ओर इशारा करता हुआ तीर](images/background-noise-annotated.png) ++ Click on **Learn & Test**. -+ पृष्ठभूमि शोर के 2 सेकंड रिकॉर्ड करने के लिए माइक्रोफ़ोन पर क्लिक करें। ![Microphone बटन की ओर इशारा करता हुआ तीर](images/add-example-annotated.png) - -+ **Add** बटन पर क्लिक करें अपनी रिकॉर्डिंग save करने के लिए। ![Add बटन की ओर इशारा करता हुआ तीर](images/save-example-annotated.png) - -+ उन चरणों को तब तक दोहराएं जब तक आपके पास **कम से कम 8 उदाहरण** न हों पृष्ठभूमि शोर की। ![8 पृष्ठभूमि उदाहरणों से भरी बाल्टी](images/8-background.png) ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) --- /task --- +Once the training has finished, you can test how well your model recognises the alien words you have invented. + --- task --- -+ **Add new label** बटन पर क्लिक करें जो ऊपरी दायां किनारे में है, और `left` नामक एक नयी प्रशिक्षण बाल्टी बनाएँ। ![Add new label बटन की ओर इशारा करता हुआ तीर](images/8-background-annotated.png) ++ Click the **Start listening** button, then say your alien word for "left". -+ **left** बाल्टी में **Add example** बटन पर क्लिक करें। ![Add example बटन की ओर इशारा करता हुआ तीर](images/left-empty-annotated.png) +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) -+ रिकॉर्ड करें **कम से कम 8 उदाहरण** "left" के लिए अपने एलियन शब्द के। ![8 left उदाहरणों से भरी बाल्टी](images/8-left.png) ++ Test whether the model recognises your alien word for "right" as well. --- /task --- +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. ---- task --- - -+ **Add new label** बटन पर क्लिक करें जो ऊपरी दायां किनारे में है, और `right` नामक एक नयी प्रशिक्षण बाल्टी बनाएँ। - -+ **right** बाल्टी में **Add example** बटन पर क्लिक करें। -+ रिकॉर्ड करें **कम से कम 8 उदाहरण** "right" के लिए अपने एलियन शब्द के। ![8 right उदाहरणों से भरी बाल्टी](images/8-right.png) -+ **टिप्पणी:** इस चरण के अंत तक, आपके पास प्रत्येक तीन बाल्टियों में आठ उदाहरण होने चाहिए। - ---- /task --- diff --git a/hi-IN/step_5.md b/hi-IN/step_5.md index 0f96db96..c361be8e 100644 --- a/hi-IN/step_5.md +++ b/hi-IN/step_5.md @@ -1,22 +1,50 @@ -## एक नई मशीन लर्निंग मॉडल को प्रशिक्षित करें -इस चरण में, आप उन उदाहरणों का उपयोग करेंगे जो आपने पिछले चरण में कंप्यूटर को प्रशिक्षित करने के लिए एकत्र किए थे कि कैसे अपने नए शब्दों को पहचानें। +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. --- task --- -+ **Back to project** लिंक पर क्लिक करें जो ऊपरी बाएँ हाथ के कोने में है। ![Back to project बटन की ओर इशारा करता हुआ तीर](images/8-right-annotated.png) ++ Click on the **< Back to project** link. + ++ Click on **Make**. -+ **Learn & Test** बटन पर क्लिक करें। ![Learn and Test बटन की ओर इशारा करता हुआ तीर](images/learn-test-annotated.png) ++ Click on **Scratch 3**. -+ **Train new machine learning model** पर क्लिक करें। इसे पूरा होने में कुछ मिनट लग सकते हैं। ![Train new machine learning model की ओर इशारा करता हुआ तीर](images/train-annotated.png) ++ Click on **Open in Scratch 3**. --- /task --- --- task --- -+ प्रशिक्षण समाप्त होने के बाद, **Start listening** बटन पर क्लिक करें अपने मशीन लर्निंग मॉडल का परीक्षण करने के लिए। शब्दों में से एक कहें (या आवाज़ों में से एक बनाएं) जिसे आपने कंप्यूटर को "left" या "right" के रूप में पहचानने के लिए प्रशिक्षित किया है। यदि आपका मशीन लर्निंग मॉडल इसे पहचानता है, तो यह प्रदर्शित करेगा जो उसे लगता है कि आपने कहा था। ![कंप्यूटर आपके द्वारा किए गए कार्य के बारे में क्या सोचता है बताता हुआ तीर](images/start-listening-annotated.png) ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. -+ यदि आप मॉडल के काम करने के तरीके से खुश नहीं हैं, तो **Train** पृष्ठ पर वापस जाएँ और तीनों प्रशिक्षण बाल्टी में और उदाहरण जोड़ें। +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) -+ जब आप अपने मशीन लर्निंग मॉडल से खुश हों, तो अगले चरण पर जाएं। +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) --- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/hi-IN/step_6.md b/hi-IN/step_6.md index dfe85a37..6ca94946 100644 --- a/hi-IN/step_6.md +++ b/hi-IN/step_6.md @@ -1,30 +1,11 @@ -## Scratch में एलियन शब्दों का प्रयोग करें -इस चरण में, आप अपनी नई मशीन लर्निंग का उपयोग Scratch में करेंगे। +## Challenge ---- task --- - -+ **Make** बटन पर क्लिक करें। ![Make बटन की ओर इशारा करता हुआ तीर](images/make-annotated.png) - -+ **Scratch 3** बटन पर क्लिक करें, फिर **Open in Scratch 3** पर क्लिक करें। - -+ स्क्रीन के शीर्ष पर **Project templates** पर क्लिक करें, फिर **Alien Language** परियोजना का खाका खोलें। - ---- /task --- +--- challenge --- --- task --- -+ एलियन sprite के लिए स्क्रिप्ट देखें। जो स्क्रिप्ट पहले से ही हैं, वो शुरुआत में एलियन sprite को सही जगह पर डालेंगे और यह चेतन करेंगे कि यह कैसे चलता है। उन्हें ना मिटायें। नीचे दी गयी स्क्रिप्ट एलियन sprite से जोड़ें, पहले से मौजूद स्क्रिप्ट्स के नीचे। ![अपने मशीन लर्निंग मॉडल का उपयोग करने के लिए नए बटनों को जोड़ने के लिए नई स्क्रिप्ट](images/add-new-blocks.png) - -+ अब, अपने प्रोग्राम का परीक्षण करें! हरे झंडे पर क्लिक करें । एलियन को यह बताने के लिए कि "left" जाना है या "right", अपने शब्द कहें (या अपने शोर मचाये)। +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. --- /task --- -आपने अब भाषण पहचान करने के लिए अपने स्वयं के मशीन लर्निंग मॉडल को प्रशिक्षित किया है, और इसका उपयोग Scratch में एक चरित्र को नियंत्रित करने के लिए किया है। परियोजना में आपने पहले इस्तेमाल किए गए पूर्व प्रशिक्षित मॉडल के विपरीत, जिसे दसियों हज़ार शब्दों को पहचानने के लिए प्रशिक्षित किया गया था, आपने इसे केवल दो अलग-अलग शब्दों को पहचानने के लिए प्रशिक्षित किया है। हालांकि, सिद्धांत समान है। - -आपने एक निश्चित पृष्ठभूमि शोर के साथ काम करने के लिए मशीन लर्निंग मॉडल के प्रशिक्षण के महत्व को भी देखा है। - ---- task --- - -क्या आप इस तरह के एक सिस्टम के बारे में सोच सकते हैं जो आपने पहले देखा हो? उदाहरण के लिए, कुछ कारें भाषण मान्यता प्रणाली का उपयोग करती हैं जिन्हें विभिन्न आज्ञाओं को पहचानने के लिए प्रशिक्षित किया गया, है जो आप इन-कार कंप्यूटर को दे सकते हैं। आपने किन अन्य उदाहरणों का उपयोग किया है? - ---- /task --- +--- /challenge --- diff --git a/hi-IN/step_7.md b/hi-IN/step_7.md index e1e90f28..d4b22e96 100644 --- a/hi-IN/step_7.md +++ b/hi-IN/step_7.md @@ -1,17 +1,3 @@ -## चुनौती: नए आदेश जोड़ें +## What can you do now? ---- challenge --- - ---- task --- - -+ अब, आप "up" और "down" के लिए दो और प्रशिक्षण बाल्टियां जोड़ सकते हैं, ताकि आप एलियन को चारों दिशाओं में जाने के लिए नियंत्रित कर सकें। - ---- /task --- - ---- task --- - -+ क्या आप कुछ और सोच सकते हैं जिसके लिए आप मशीन लर्निंग मॉडल का उपयोग कर सकते हैं? - ---- /task --- - ---- /challenge --- +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/hu-HU/images/8-background.png b/hu-HU/images/8-background.png new file mode 100644 index 00000000..d27ef20a Binary files /dev/null and b/hu-HU/images/8-background.png differ diff --git a/hu-HU/images/add-example.png b/hu-HU/images/add-example.png new file mode 100644 index 00000000..0fa70ce6 Binary files /dev/null and b/hu-HU/images/add-example.png differ diff --git a/hu-HU/images/add-new-blocks.png b/hu-HU/images/add-new-blocks.png new file mode 100644 index 00000000..a00e4d4c Binary files /dev/null and b/hu-HU/images/add-new-blocks.png differ diff --git a/hu-HU/images/alien-language.png b/hu-HU/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/hu-HU/images/alien-language.png differ diff --git a/hu-HU/images/allow-microphone.png b/hu-HU/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/hu-HU/images/allow-microphone.png differ diff --git a/hu-HU/images/background-noise.png b/hu-HU/images/background-noise.png new file mode 100644 index 00000000..3a924b00 Binary files /dev/null and b/hu-HU/images/background-noise.png differ diff --git a/hu-HU/images/banner.png b/hu-HU/images/banner.png new file mode 100644 index 00000000..a54fe151 Binary files /dev/null and b/hu-HU/images/banner.png differ diff --git a/hu-HU/images/control-alien-blocks.png b/hu-HU/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/hu-HU/images/control-alien-blocks.png differ diff --git a/hu-HU/images/create-project.png b/hu-HU/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/hu-HU/images/create-project.png differ diff --git a/hu-HU/images/new-blocks.png b/hu-HU/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/hu-HU/images/new-blocks.png differ diff --git a/hu-HU/images/project-train.png b/hu-HU/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/hu-HU/images/project-train.png differ diff --git a/hu-HU/images/projects-list.png b/hu-HU/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/hu-HU/images/projects-list.png differ diff --git a/hu-HU/images/record-button.png b/hu-HU/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/hu-HU/images/record-button.png differ diff --git a/hu-HU/images/save-example.png b/hu-HU/images/save-example.png new file mode 100644 index 00000000..0d1a1d48 Binary files /dev/null and b/hu-HU/images/save-example.png differ diff --git a/hu-HU/images/start-listening.png b/hu-HU/images/start-listening.png new file mode 100644 index 00000000..db113d03 Binary files /dev/null and b/hu-HU/images/start-listening.png differ diff --git a/hu-HU/images/test-new-blocks.png b/hu-HU/images/test-new-blocks.png new file mode 100644 index 00000000..5c4260bc Binary files /dev/null and b/hu-HU/images/test-new-blocks.png differ diff --git a/hu-HU/images/test-your-model.png b/hu-HU/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/hu-HU/images/test-your-model.png differ diff --git a/hu-HU/images/train-new-model.png b/hu-HU/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/hu-HU/images/train-new-model.png differ diff --git a/hu-HU/images/whatyouwillmake.gif b/hu-HU/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/hu-HU/images/whatyouwillmake.gif differ diff --git a/hu-HU/meta.yml b/hu-HU/meta.yml new file mode 100644 index 00000000..ae376c3a --- /dev/null +++ b/hu-HU/meta.yml @@ -0,0 +1,31 @@ +--- +title: Alien language +hero_image: images/banner.png +description: Create your own alien language to move a sprite +theme: orange +listed: true +copyedit: true +technologies: scratch +software: scratch +version: 4.0.0 +last_tested: '2019-06-04' +steps: + - + title: What you will make + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/hu-HU/resources/NEW Alien 1.srt b/hu-HU/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/hu-HU/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/hu-HU/resources/NEW Alien 2.srt b/hu-HU/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/hu-HU/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/hu-HU/resources/NEW Alien 3.srt b/hu-HU/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/hu-HU/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/hu-HU/resources/NEW Alien 4.srt b/hu-HU/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/hu-HU/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/hu-HU/resources/readme.txt b/hu-HU/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/hu-HU/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/hu-HU/step_1.md b/hu-HU/step_1.md new file mode 100644 index 00000000..aa0540f2 --- /dev/null +++ b/hu-HU/step_1.md @@ -0,0 +1,44 @@ +## What you will make + +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. + +You will need a **microphone**. + +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) + +--- collapse --- + +--- +title: Where are my voice recordings stored? +--- + +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). + +--- /collapse --- + +--- collapse --- +--- +title: No YouTube? Download the videos! +--- + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + + +--- /collapse --- + +--- collapse --- +--- +title: License +--- + +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +We'd like to thank Dale from machinelearningforkids.co.uk for all his work on this project. + +--- /collapse --- + + + + + diff --git a/hu-HU/step_2.md b/hu-HU/step_2.md new file mode 100644 index 00000000..e6930402 --- /dev/null +++ b/hu-HU/step_2.md @@ -0,0 +1,42 @@ +## Set up the project + + +
+ +
+ + +--- task --- + ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- + +--- task --- + ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) + +--- /task --- + +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- + + + diff --git a/hu-HU/step_3.md b/hu-HU/step_3.md new file mode 100644 index 00000000..bf9eb8ee --- /dev/null +++ b/hu-HU/step_3.md @@ -0,0 +1,49 @@ +## Invent two words + + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. + +--- task --- + ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". + +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. + +--- task --- + ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- + ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". + +--- /task --- diff --git a/hu-HU/step_4.md b/hu-HU/step_4.md new file mode 100644 index 00000000..785b11b0 --- /dev/null +++ b/hu-HU/step_4.md @@ -0,0 +1,36 @@ +## Train the model + + +
+ +
+ + +You have gathered the examples you need, now you will use these examples to train your machine learning model. + +--- task --- + ++ Click on **Back to project** in the top left-hand corner. + ++ Click on **Learn & Test**. + ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) + +--- /task --- + +Once the training has finished, you can test how well your model recognises the alien words you have invented. + +--- task --- + ++ Click the **Start listening** button, then say your alien word for "left". + +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) + ++ Test whether the model recognises your alien word for "right" as well. + +--- /task --- + +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. + + + diff --git a/hu-HU/step_5.md b/hu-HU/step_5.md new file mode 100644 index 00000000..c361be8e --- /dev/null +++ b/hu-HU/step_5.md @@ -0,0 +1,50 @@ +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. + +--- task --- + ++ Click on the **< Back to project** link. + ++ Click on **Make**. + ++ Click on **Scratch 3**. + ++ Click on **Open in Scratch 3**. + +--- /task --- + +--- task --- + ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. + +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) + +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) + +--- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/hu-HU/step_6.md b/hu-HU/step_6.md new file mode 100644 index 00000000..6ca94946 --- /dev/null +++ b/hu-HU/step_6.md @@ -0,0 +1,11 @@ +## Challenge + +--- challenge --- + +--- task --- + +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. + +--- /task --- + +--- /challenge --- diff --git a/hu-HU/step_7.md b/hu-HU/step_7.md new file mode 100644 index 00000000..d4b22e96 --- /dev/null +++ b/hu-HU/step_7.md @@ -0,0 +1,3 @@ +## What can you do now? + +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/it-IT/images/8-background.png b/it-IT/images/8-background.png new file mode 100644 index 00000000..86c209b5 Binary files /dev/null and b/it-IT/images/8-background.png differ diff --git a/it-IT/images/add-example.png b/it-IT/images/add-example.png new file mode 100644 index 00000000..595fc471 Binary files /dev/null and b/it-IT/images/add-example.png differ diff --git a/it-IT/images/add-new-blocks.png b/it-IT/images/add-new-blocks.png new file mode 100644 index 00000000..e4cfefba Binary files /dev/null and b/it-IT/images/add-new-blocks.png differ diff --git a/it-IT/images/alien-language.png b/it-IT/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/it-IT/images/alien-language.png differ diff --git a/it-IT/images/allow-microphone.png b/it-IT/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/it-IT/images/allow-microphone.png differ diff --git a/it-IT/images/background-noise.png b/it-IT/images/background-noise.png new file mode 100644 index 00000000..78b200e5 Binary files /dev/null and b/it-IT/images/background-noise.png differ diff --git a/it-IT/images/banner.png b/it-IT/images/banner.png new file mode 100644 index 00000000..a54fe151 Binary files /dev/null and b/it-IT/images/banner.png differ diff --git a/it-IT/images/control-alien-blocks.png b/it-IT/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/it-IT/images/control-alien-blocks.png differ diff --git a/it-IT/images/create-project.png b/it-IT/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/it-IT/images/create-project.png differ diff --git a/it-IT/images/new-blocks.png b/it-IT/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/it-IT/images/new-blocks.png differ diff --git a/it-IT/images/project-train.png b/it-IT/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/it-IT/images/project-train.png differ diff --git a/it-IT/images/projects-list.png b/it-IT/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/it-IT/images/projects-list.png differ diff --git a/it-IT/images/record-button.png b/it-IT/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/it-IT/images/record-button.png differ diff --git a/it-IT/images/save-example.png b/it-IT/images/save-example.png new file mode 100644 index 00000000..c0082ccb Binary files /dev/null and b/it-IT/images/save-example.png differ diff --git a/it-IT/images/start-listening.png b/it-IT/images/start-listening.png new file mode 100644 index 00000000..a670e73e Binary files /dev/null and b/it-IT/images/start-listening.png differ diff --git a/it-IT/images/test-new-blocks.png b/it-IT/images/test-new-blocks.png new file mode 100644 index 00000000..8f53b6e4 Binary files /dev/null and b/it-IT/images/test-new-blocks.png differ diff --git a/it-IT/images/test-your-model.png b/it-IT/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/it-IT/images/test-your-model.png differ diff --git a/it-IT/images/train-new-model.png b/it-IT/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/it-IT/images/train-new-model.png differ diff --git a/it-IT/images/whatyouwillmake.gif b/it-IT/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/it-IT/images/whatyouwillmake.gif differ diff --git a/it-IT/meta.yml b/it-IT/meta.yml new file mode 100644 index 00000000..c3c9beed --- /dev/null +++ b/it-IT/meta.yml @@ -0,0 +1,31 @@ +--- +title: Lingua straniera +hero_image: images/banner.png +description: Crea la tua lingua aliena per spostare uno sprite +theme: orange +listed: true +copyedit: true +technologies: scratch +software: scratch +version: 4.0.0 +last_tested: '2019-06-04' +steps: + - + title: Che cosa creerai + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/it-IT/resources/NEW Alien 1.srt b/it-IT/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/it-IT/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/it-IT/resources/NEW Alien 2.srt b/it-IT/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/it-IT/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/it-IT/resources/NEW Alien 3.srt b/it-IT/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/it-IT/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/it-IT/resources/NEW Alien 4.srt b/it-IT/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/it-IT/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/it-IT/resources/readme.txt b/it-IT/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/it-IT/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/it-IT/step_1.md b/it-IT/step_1.md new file mode 100644 index 00000000..93d19cdf --- /dev/null +++ b/it-IT/step_1.md @@ -0,0 +1,44 @@ +## Che cosa creerai + +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. + +You will need a **microphone**. + +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) + +--- collapse --- + +--- +title: Where are my voice recordings stored? +--- + +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). + +--- /collapse --- + +--- collapse --- +--- +title: No YouTube? Download the videos! +--- + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + + +--- /collapse --- + +--- collapse --- +--- +title: License +--- + +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +Vorremmo ringraziare Dale di machinelearningforkids.co.uk per tutto il suo lavoro su questo progetto. + +--- /collapse --- + + + + + diff --git a/it-IT/step_2.md b/it-IT/step_2.md new file mode 100644 index 00000000..e6930402 --- /dev/null +++ b/it-IT/step_2.md @@ -0,0 +1,42 @@ +## Set up the project + + +
+ +
+ + +--- task --- + ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- + +--- task --- + ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) + +--- /task --- + +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- + + + diff --git a/it-IT/step_3.md b/it-IT/step_3.md new file mode 100644 index 00000000..bf9eb8ee --- /dev/null +++ b/it-IT/step_3.md @@ -0,0 +1,49 @@ +## Invent two words + + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. + +--- task --- + ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". + +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. + +--- task --- + ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- + ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". + +--- /task --- diff --git a/it-IT/step_4.md b/it-IT/step_4.md new file mode 100644 index 00000000..785b11b0 --- /dev/null +++ b/it-IT/step_4.md @@ -0,0 +1,36 @@ +## Train the model + + +
+ +
+ + +You have gathered the examples you need, now you will use these examples to train your machine learning model. + +--- task --- + ++ Click on **Back to project** in the top left-hand corner. + ++ Click on **Learn & Test**. + ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) + +--- /task --- + +Once the training has finished, you can test how well your model recognises the alien words you have invented. + +--- task --- + ++ Click the **Start listening** button, then say your alien word for "left". + +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) + ++ Test whether the model recognises your alien word for "right" as well. + +--- /task --- + +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. + + + diff --git a/it-IT/step_5.md b/it-IT/step_5.md new file mode 100644 index 00000000..c361be8e --- /dev/null +++ b/it-IT/step_5.md @@ -0,0 +1,50 @@ +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. + +--- task --- + ++ Click on the **< Back to project** link. + ++ Click on **Make**. + ++ Click on **Scratch 3**. + ++ Click on **Open in Scratch 3**. + +--- /task --- + +--- task --- + ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. + +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) + +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) + +--- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/it-IT/step_6.md b/it-IT/step_6.md new file mode 100644 index 00000000..6ca94946 --- /dev/null +++ b/it-IT/step_6.md @@ -0,0 +1,11 @@ +## Challenge + +--- challenge --- + +--- task --- + +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. + +--- /task --- + +--- /challenge --- diff --git a/it-IT/step_7.md b/it-IT/step_7.md new file mode 100644 index 00000000..d4b22e96 --- /dev/null +++ b/it-IT/step_7.md @@ -0,0 +1,3 @@ +## What can you do now? + +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/ja-JP/images/alien-language.png b/ja-JP/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/ja-JP/images/alien-language.png differ diff --git a/ja-JP/images/allow-microphone.png b/ja-JP/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/ja-JP/images/allow-microphone.png differ diff --git a/ja-JP/images/control-alien-blocks.png b/ja-JP/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/ja-JP/images/control-alien-blocks.png differ diff --git a/ja-JP/images/create-project.png b/ja-JP/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/ja-JP/images/create-project.png differ diff --git a/ja-JP/images/new-blocks.png b/ja-JP/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/ja-JP/images/new-blocks.png differ diff --git a/ja-JP/images/project-train.png b/ja-JP/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/ja-JP/images/project-train.png differ diff --git a/ja-JP/images/projects-list.png b/ja-JP/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/ja-JP/images/projects-list.png differ diff --git a/ja-JP/images/record-button.png b/ja-JP/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/ja-JP/images/record-button.png differ diff --git a/ja-JP/images/test-your-model.png b/ja-JP/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/ja-JP/images/test-your-model.png differ diff --git a/ja-JP/images/train-new-model.png b/ja-JP/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/ja-JP/images/train-new-model.png differ diff --git a/ja-JP/images/whatyouwillmake.gif b/ja-JP/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/ja-JP/images/whatyouwillmake.gif differ diff --git a/ja-JP/meta.yml b/ja-JP/meta.yml index c538ca3a..abe61bf7 100644 --- a/ja-JP/meta.yml +++ b/ja-JP/meta.yml @@ -10,15 +10,22 @@ software: scratch version: 4.0.0 last_tested: '2019-06-04' steps: -- title: はじめに -- title: 事前学習ずみのモデルを使用する -- title: 新しいプロジェクトを作成 (さくせい) する - completion: - - engaged -- title: エイリアン語を作る -- title: 新しい機械学習モデルをトレーニングする -- title: Scratch でエイリアン語を使う - completion: - - internal -- title: 'チャレンジ: 新しいコマンドを追加する' - challenge: true + - + title: 作るもの + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/ja-JP/resources/NEW Alien 1.srt b/ja-JP/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/ja-JP/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/ja-JP/resources/NEW Alien 2.srt b/ja-JP/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/ja-JP/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/ja-JP/resources/NEW Alien 3.srt b/ja-JP/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/ja-JP/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/ja-JP/resources/NEW Alien 4.srt b/ja-JP/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/ja-JP/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/ja-JP/resources/readme.txt b/ja-JP/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/ja-JP/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/ja-JP/step_1.md b/ja-JP/step_1.md index 8c3ff91f..73a809c5 100644 --- a/ja-JP/step_1.md +++ b/ja-JP/step_1.md @@ -1,53 +1,44 @@ -## はじめに +## 作るもの -このプロジェクトでは、コンピューターがエイリアンの言葉を理解 (りかい) できるようにトレーニングします。 それにより、エイリアンがあなたの指示 (しじ) したことを理解しているかのようにエイリアンのキャラクターを動かすことができます。 +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. -### 作るもの +You will need a **microphone**. ---- no-print --- - -![新しい単語「Eeek」と「Bop」で左右に動くエイリアン](images/journey.gif) - ---- /no-print --- - ---- print-only --- - -![Scratch プロジェクト全体の概要 (がいよう)](images/test-new-blocks.png) - ---- /print-only --- +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) --- collapse --- + --- -title: 必要(ひつよう)なもの +title: Where are my voice recordings stored? --- -+ マイク付きのコンピューター - -+ インターネットへの接続 (せつぞく) +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). --- /collapse --- --- collapse --- --- -title: 学ぶこと +title: No YouTube? Download the videos! --- -+ Scratch 3 で事前トレーニングずみモデルを使用して Speech to Text 拡張機能 (かくちょうきのう) を使用する方法 -+ 機械学習 (きかいがくしゅう) モデルが音を認識 (にんしき) するようにトレーニングする方法 -+ トレーニングした機械学習モデルをScratch 3で使用する方法 + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + --- /collapse --- --- collapse --- --- -title: 教育者向けの追加情報 +title: License --- -このプロジェクトを印刷する必要がある場合は、 [印刷用バージョン](https://projects.raspberrypi.org/ja-JP/projects/alien-language/print){:target="_blank"}を使用してください。 +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +このプロジェクトに関するすべてに対して machinelearningforkids.co.uk の Dale 氏に感謝します。 --- /collapse --- -### ライセンス -このプロジェクトは、[クリエイティブ・コモンズ 表示 - 非営利 - 継承 ライセンス](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"}および[ Apache ライセンス・バージョン2.0 ](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"} (英語) の両方の下でデュアルライセンスされています。 -このプロジェクトに関するすべてに対して machinelearningforkids.co.uk の Dale 氏に感謝します。 + + diff --git a/ja-JP/step_2.md b/ja-JP/step_2.md index 40d38af9..e6930402 100644 --- a/ja-JP/step_2.md +++ b/ja-JP/step_2.md @@ -1,21 +1,42 @@ -## 事前学習ずみのモデルを使用する +## Set up the project + + +
+ +
+ --- task --- -+ ウェブブラウザで [machinelearningforkids.co.uk/scratch3](https://machinelearningforkids.co.uk/scratch3/){:target="_blank"} を開きます。 --- /task --- -**(注意)**プロジェクトのこのステップは、Google Chrome ウェブブラウザ上でしかできません。 Google Chrome ブラウザがない場合は、[ステップ3: 新しいプロジェクトを作成する](https://projects.raspberrypi.org/ja-JP/projects/alien-language/3)に進んでください。 ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- --- task --- -+ 次に、 **Speech to Text** 拡張機能 (かくちょうきのう) を読みこみます。 左下すみの **拡張機能を追加** (ついか) ボタンをクリックし、リストから **Speech to Text** をえらびます。 **(注)** **音声合成** 拡張機能ではなく、 **Speech to Text** 拡張機能をえらびましょう。 ![拡張機能ボタンを指す矢印 (やじるし)](images/extensions-annotated.png) -+ **イベント** ブロック、 **動き** ブロック、および新しい **音声認識** (にんしき) ブロックを使って、このスクリプトを作ります。  ![追加する新しいスクリプト](images/S-to-T-blocks.png) ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) --- /task --- ---- task --- 緑の旗 (はた) をクリックしてプログラムをテストします。 マイクに向かって「左」または「右」と言いましょう。 Scratch のネコはあなたが言う方向に動くはずです。 声を使って Scratch のネコを左右に動かしてみてください。 おちついてはっきりと話すようにしましょう。 +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- -場合によってはうまく動かないことがあります。 そのときは、(音声)`と言う`ブロックを追加してみてください。スクリプトはこのようになり、声がスプライトにどう聞こえたかが表示 (ひょうじ) されます。 ![New scripts to see what the computer thinks you are saying](images/S-to-T-blocks-test.png) --- /task --- -これで、音声認識を使用して Scratch のキャラクターを操作 (そうさ) できました。 -このステップでは、プログラムがすぐにうまく動くように、すでにトレーニングされた機械学習モデルを使用しました。 これは、辞書 (じしょ) にある単語 (たんご) を認識するようにトレーニングされた、一般的 (いっぱんてき) な機械学習モデルです。 diff --git a/ja-JP/step_3.md b/ja-JP/step_3.md index 3df414f2..bf9eb8ee 100644 --- a/ja-JP/step_3.md +++ b/ja-JP/step_3.md @@ -1,20 +1,49 @@ -## 新しいプロジェクトを作成 (さくせい) する -ここからのステップでは、機械学習 (きかいがくしゅう) モデルをトレーニングして、どのように行うのかを見ていきます。 プロジェクトの次の部分では、声を使って、日本語が分からないエイリアンのキャラクターを操作 (そうさ) します。 辞書 (じしょ) にはない2つの新しい単語 (たんご) を考え出してください。 その単語を使ってエイリアンのキャラクターを操作します。また機械学習モデルがその単語を認識 (にんしき) するようにトレーニングします。 +## Invent two words -まず、Machine Learning for Kidsのウェブサイトにアクセスして、プロジェクトを作成します。 + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. --- task --- -+ ウェブブラウザで [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} を開きます。 -+ **開始**をクリックします。 ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". -+ **すぐに試す** (ためす) をクリックします。 --- /task --- +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. --- task --- -+ ページ上部のメニューバーで**プロジェクト**をクリックします。 -+ **新しいプロジェクトの追加** (ついか) ボタンをクリックします。 ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- -+ プロジェクト名に `Alien Language` (エイリアン語) と入力して、 `音声`を認識させるように設定 (せってい) します。(プロジェクト名に日本語は使えません) 次に、 **作成** ボタンをクリックします。 ![プロジェクトを作成する](images/create.png) ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". -+ プロジェクトのリストに `Alien Language` が表示 (ひょうじ) されます。 `Alien Language` プロジェクトをクリックします。 --- /task --- +--- /task --- diff --git a/ja-JP/step_4.md b/ja-JP/step_4.md index 4ad50449..785b11b0 100644 --- a/ja-JP/step_4.md +++ b/ja-JP/step_4.md @@ -1,45 +1,36 @@ -## エイリアン語を作る -このステップでは、エイリアン語を考え出します。 +## Train the model ---- task --- - -「左」を表すエイリアン語と「右」を表すエイリアン語の2つが必要です。 辞書にはない2つの新しい単語を考え出しましょう。 毎回同じようにくり返すことができて、2つの音がはっきりとちがう音だと認識されるのであれば、でたらめな音でもかまいません。 声を使いたくなくても、だいじょうぶです。ほかにも音を立てる方法があります。 指を鳴らしたり、手をたたいたり、音の出るおもちゃをにぎるなど、何でもかまいません! ただし、新しい単語 (または音) が何であるかをわすれないように気をつけましょう! + +
+ +
+ ---- /task --- +You have gathered the examples you need, now you will use these examples to train your machine learning model. --- task --- -+ **トレーニング** ボタンをクリックして、サンプルの収集 (しゅうしゅう) を開始します。 ![トレーニングボタンを指す矢印](images/click-train.png) ++ Click on **Back to project** in the top left-hand corner. -+ **background noise** (バックグラウンドノイズ - まわりのざつ音) バケットにある**例 (れい) を追加**ボタンをクリックします。 バックグラウンドノイズを録音 (ろくおん) すると、機械学習モデルが認識するようにトレーニングする音と、今いる場所のバックグラウンドノイズのちがいを区別 (くべつ) するのに役立ちます。 ![「例を追加」ボタンを指す矢印](images/background-noise-annotated.png) ++ Click on **Learn & Test**. -+ マイクをクリックして、2秒間のバックグラウンドノイズを録音します。 ![マイクボタンを指す矢印](images/add-example-annotated.png) - -+ **追加** ボタンをクリックして、録音を保存します。 ![追加ボタンを指す矢印](images/save-example-annotated.png) - -+ バックグラウンドノイズの**少なくとも8つのサンプル** ができるまで、この手順 (てじゅん) をくり返します。 ![8つのバックグラウンドノイズのサンプルが入ったバケット](images/8-background.png) ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) --- /task --- +Once the training has finished, you can test how well your model recognises the alien words you have invented. + --- task --- -+ 右上すみにある**新しいラベルを追加**ボタンをクリックし、 `left` (左) という新しいトレーニングバケットを作成します。 ![「新しいラベルを追加」ボタンを指す矢印](images/8-background-annotated.png) ++ Click the **Start listening** button, then say your alien word for "left". -+ 新しい **left**バケットの **例を追加** ボタンをクリックします。 ![「例を追加」ボタンを指す矢印](images/left-empty-annotated.png) +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) -+ 「左」を表すエイリアン語の **少なくとも8つのサンプル**を録音します。 ![8つの「左」の音のサンプルが入ったバケット](images/8-left.png) ++ Test whether the model recognises your alien word for "right" as well. --- /task --- +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. ---- task --- - -+ 右上すみにある**新しいラベルを追加**ボタンをもう一度クリックし、 `right` (右) という新しいトレーニングバケットを作成します。 - -+ 新しい **right** バケットの **例を追加** ボタンをクリックします。 -+ 「右」を表すエイリアン語の **少なくとも8つのサンプル**を録音します。 ![8つの「右」の音のサンプルが入ったバケット](images/8-right.png) -+ **(注)** このステップを終わる前に、3つのバケットのそれぞれに8つのサンプルが必要です。 - ---- /task --- diff --git a/ja-JP/step_5.md b/ja-JP/step_5.md index 68e50ed2..c361be8e 100644 --- a/ja-JP/step_5.md +++ b/ja-JP/step_5.md @@ -1,22 +1,50 @@ -## 新しい機械学習モデルをトレーニングする -このステップでは、前のステップで収集したサンプルを使用して、コンピューターが新しい単語を認識するようにトレーニングします。 +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. --- task --- -+ 左上すみにある**プロジェクトに戻る** (もどる) リンクをクリックします。 ![「プロジェクトに戻る」ボタンを指す矢印](images/8-right-annotated.png) ++ Click on the **< Back to project** link. + ++ Click on **Make**. -+ **学習 & テスト** ボタンをクリックします。 ![学習 & テストボタンを指す矢印](images/learn-test-annotated.png) ++ Click on **Scratch 3**. -+ **新しい機械学習モデルをトレーニングする**クリックします。 これには数分かかる場合があります。 ![「新しい機械学習モデルをトレーニングする」を指す矢印](images/train-annotated.png) ++ Click on **Open in Scratch 3**. --- /task --- --- task --- -+ トレーニングが終わったら、 **聞いてみよう** ボタンをクリックして、機械学習モデルをテストします。 「左」または「右」として認識するようにコンピューターをトレーニングした言葉の1つを発声します(または音を立てます)。 機械学習モデルがそれを認識すると、あなたが言ったと思うことを表示します。 ![コンピューターがあなたが言ったと思うことを指す矢印](images/start-listening-annotated.png) ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. -+ モデルの動作に満足 (まんぞく) できない場合は、 **トレーニング** ページにもどって、3つのトレーニングバケットすべてにさらにサンプルを追加してください。 +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) -+ 機械学習モデルに満足したら、次のステップに進みます。 +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) --- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/ja-JP/step_6.md b/ja-JP/step_6.md index c3e33329..6ca94946 100644 --- a/ja-JP/step_6.md +++ b/ja-JP/step_6.md @@ -1,30 +1,11 @@ -## Scratch でエイリアン語を使う -このステップでは、新しい機械学習をScratchで使用します。 +## Challenge ---- task --- - -+ **プログラム作成** ボタンをクリックします。 ![「プログラム作成」ボタンを指す矢印](images/make-annotated.png) - -+ **Scratch 3** ボタンをクリックしてから、 **Scratch 3で開く**をクリックします。 - -+ 上部の **プロジェクトテンプレート** をクリックし、 **Alien Language** プロジェクトテンプレートを開きます。 - ---- /task --- +--- challenge --- --- task --- -+ エイリアンのスプライトのスクリプトを見てください。 はじめから入っているスクリプトは、開始時にエイリアンのスプライトを真ん中に配置 (はいち) し、エイリアンの動き方を決めるものです。 このスクリプトを削除 (さくじょ) しないでください。 エイリアンのスプライトのすでにあるスクリプトの下に、このスクリプトを追加します。 ![機械学習モデルを使用するための新しいボタンをふくむ、追加する新しいスクリプト](images/add-new-blocks.png) - -+ さあ、プログラムをテストしましょう! 緑の旗 (はた) をクリックします。 「左」と「右」を表す単語を言って(または音を立てて)エイリアンにどちらの方向に歩くかをつたえます。 +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. --- /task --- -これで、音声認識を行うための機械学習モデルをトレーニングし、それを使って Scratch のキャラクターを操作できました。 プロジェクトのステップ2で使った、数万の単語を認識するようにトレーニングされた事前トレーニングモデルとはことなり、ここでは2つのちがう単語を認識するようにトレーニングしただけです。 しかし、原理は同じです。 - -また、あるバックグラウンドノイズがあっても動作するように機械学習モデルをトレーニングすることの大切さも分かりました。 - ---- task --- - -今までに見たことのあるシステムので、このようなものは思いつきますか? たとえば、自動車の中には、車載 (しゃさい) コンピューターにつたえることができるさまざまなコマンドを認識するようにトレーニングされた、音声認識システムを使用しているものがあります。 他にどのようなものを使ったことがありますか? - ---- /task --- +--- /challenge --- diff --git a/ja-JP/step_7.md b/ja-JP/step_7.md index b76a8a73..d4b22e96 100644 --- a/ja-JP/step_7.md +++ b/ja-JP/step_7.md @@ -1,17 +1,3 @@ -## チャレンジ: 新しいコマンドを追加する +## What can you do now? ---- challenge --- - ---- task --- - -+ 次に、「up」(上) と「down」(下) の2つのトレーニングバケットを追加するとエイリアンを4方向すべてに動かすことができます。 - ---- /task --- - ---- task --- - -+ 機械学習モデルを使用できるものは他にありますか? - ---- /task --- - ---- /challenge --- +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/ko-KR/images/8-background.png b/ko-KR/images/8-background.png new file mode 100644 index 00000000..d27ef20a Binary files /dev/null and b/ko-KR/images/8-background.png differ diff --git a/ko-KR/images/add-example.png b/ko-KR/images/add-example.png new file mode 100644 index 00000000..0fa70ce6 Binary files /dev/null and b/ko-KR/images/add-example.png differ diff --git a/ko-KR/images/add-new-blocks.png b/ko-KR/images/add-new-blocks.png new file mode 100644 index 00000000..a00e4d4c Binary files /dev/null and b/ko-KR/images/add-new-blocks.png differ diff --git a/ko-KR/images/alien-language.png b/ko-KR/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/ko-KR/images/alien-language.png differ diff --git a/ko-KR/images/allow-microphone.png b/ko-KR/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/ko-KR/images/allow-microphone.png differ diff --git a/ko-KR/images/background-noise.png b/ko-KR/images/background-noise.png new file mode 100644 index 00000000..3a924b00 Binary files /dev/null and b/ko-KR/images/background-noise.png differ diff --git a/ko-KR/images/banner.png b/ko-KR/images/banner.png new file mode 100644 index 00000000..a54fe151 Binary files /dev/null and b/ko-KR/images/banner.png differ diff --git a/ko-KR/images/control-alien-blocks.png b/ko-KR/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/ko-KR/images/control-alien-blocks.png differ diff --git a/ko-KR/images/create-project.png b/ko-KR/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/ko-KR/images/create-project.png differ diff --git a/ko-KR/images/new-blocks.png b/ko-KR/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/ko-KR/images/new-blocks.png differ diff --git a/ko-KR/images/project-train.png b/ko-KR/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/ko-KR/images/project-train.png differ diff --git a/ko-KR/images/projects-list.png b/ko-KR/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/ko-KR/images/projects-list.png differ diff --git a/ko-KR/images/record-button.png b/ko-KR/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/ko-KR/images/record-button.png differ diff --git a/ko-KR/images/save-example.png b/ko-KR/images/save-example.png new file mode 100644 index 00000000..0d1a1d48 Binary files /dev/null and b/ko-KR/images/save-example.png differ diff --git a/ko-KR/images/start-listening.png b/ko-KR/images/start-listening.png new file mode 100644 index 00000000..db113d03 Binary files /dev/null and b/ko-KR/images/start-listening.png differ diff --git a/ko-KR/images/test-new-blocks.png b/ko-KR/images/test-new-blocks.png new file mode 100644 index 00000000..5c4260bc Binary files /dev/null and b/ko-KR/images/test-new-blocks.png differ diff --git a/ko-KR/images/test-your-model.png b/ko-KR/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/ko-KR/images/test-your-model.png differ diff --git a/ko-KR/images/train-new-model.png b/ko-KR/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/ko-KR/images/train-new-model.png differ diff --git a/ko-KR/images/whatyouwillmake.gif b/ko-KR/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/ko-KR/images/whatyouwillmake.gif differ diff --git a/ko-KR/meta.yml b/ko-KR/meta.yml new file mode 100644 index 00000000..9c241cb8 --- /dev/null +++ b/ko-KR/meta.yml @@ -0,0 +1,31 @@ +--- +title: 외계인 언어 +hero_image: images/banner.png +description: 스프라이트를 움직일 수있는 나만의 외국어 만들기 +theme: orange +listed: true +copyedit: true +technologies: 스크래치 +software: scratch +version: 4.0.0 +last_tested: '2019-06-04' +steps: + - + title: 만들 작품 + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/ko-KR/resources/NEW Alien 1.srt b/ko-KR/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/ko-KR/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/ko-KR/resources/NEW Alien 2.srt b/ko-KR/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/ko-KR/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/ko-KR/resources/NEW Alien 3.srt b/ko-KR/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/ko-KR/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/ko-KR/resources/NEW Alien 4.srt b/ko-KR/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/ko-KR/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/ko-KR/resources/readme.txt b/ko-KR/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/ko-KR/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/ko-KR/step_1.md b/ko-KR/step_1.md new file mode 100644 index 00000000..29addabc --- /dev/null +++ b/ko-KR/step_1.md @@ -0,0 +1,44 @@ +## 만들 작품 + +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. + +You will need a **microphone**. + +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) + +--- collapse --- + +--- +title: Where are my voice recordings stored? +--- + +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). + +--- /collapse --- + +--- collapse --- +--- +title: No YouTube? Download the videos! +--- + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + + +--- /collapse --- + +--- collapse --- +--- +title: License +--- + +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +이 프로젝트에 대한 그의 모든 작업에 대해 machinelearningforkids.co.uk의 Dale에게 감사의 말씀을 전합니다. + +--- /collapse --- + + + + + diff --git a/ko-KR/step_2.md b/ko-KR/step_2.md new file mode 100644 index 00000000..e6930402 --- /dev/null +++ b/ko-KR/step_2.md @@ -0,0 +1,42 @@ +## Set up the project + + +
+ +
+ + +--- task --- + ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- + +--- task --- + ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) + +--- /task --- + +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- + + + diff --git a/ko-KR/step_3.md b/ko-KR/step_3.md new file mode 100644 index 00000000..bf9eb8ee --- /dev/null +++ b/ko-KR/step_3.md @@ -0,0 +1,49 @@ +## Invent two words + + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. + +--- task --- + ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". + +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. + +--- task --- + ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- + ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". + +--- /task --- diff --git a/ko-KR/step_4.md b/ko-KR/step_4.md new file mode 100644 index 00000000..785b11b0 --- /dev/null +++ b/ko-KR/step_4.md @@ -0,0 +1,36 @@ +## Train the model + + +
+ +
+ + +You have gathered the examples you need, now you will use these examples to train your machine learning model. + +--- task --- + ++ Click on **Back to project** in the top left-hand corner. + ++ Click on **Learn & Test**. + ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) + +--- /task --- + +Once the training has finished, you can test how well your model recognises the alien words you have invented. + +--- task --- + ++ Click the **Start listening** button, then say your alien word for "left". + +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) + ++ Test whether the model recognises your alien word for "right" as well. + +--- /task --- + +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. + + + diff --git a/ko-KR/step_5.md b/ko-KR/step_5.md new file mode 100644 index 00000000..c361be8e --- /dev/null +++ b/ko-KR/step_5.md @@ -0,0 +1,50 @@ +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. + +--- task --- + ++ Click on the **< Back to project** link. + ++ Click on **Make**. + ++ Click on **Scratch 3**. + ++ Click on **Open in Scratch 3**. + +--- /task --- + +--- task --- + ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. + +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) + +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) + +--- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/ko-KR/step_6.md b/ko-KR/step_6.md new file mode 100644 index 00000000..6ca94946 --- /dev/null +++ b/ko-KR/step_6.md @@ -0,0 +1,11 @@ +## Challenge + +--- challenge --- + +--- task --- + +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. + +--- /task --- + +--- /challenge --- diff --git a/ko-KR/step_7.md b/ko-KR/step_7.md new file mode 100644 index 00000000..d4b22e96 --- /dev/null +++ b/ko-KR/step_7.md @@ -0,0 +1,3 @@ +## What can you do now? + +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/nl-NL/meta.yml b/nl-NL/meta.yml index be2742df..a7c24277 100644 --- a/nl-NL/meta.yml +++ b/nl-NL/meta.yml @@ -2,7 +2,7 @@ title: Buitenaardse taal hero_image: images/banner.png description: Maak je eigen buitenaardse taal om een sprite te verplaatsen -theme: orange +theme: oranje listed: true copyedit: true technologies: scratch @@ -10,16 +10,22 @@ software: scratch version: 4.0.0 last_tested: '2019-06-04' steps: -- title: Wat ga je maken -- title: Het project opzetten -- title: Verzin twee woorden - completion: - - engaged -- title: Train het model -- title: Bestuur het buitenaardse wezen - completion: - - internal -- title: 'Uitdaging' - challenge: true - completion: - - external + - + title: Wat ga je maken + - + title: Het project opzetten + - + title: Verzin twee woorden + completion: + - engaged + - + title: Train het model + - + title: Bestuur het buitenaardse wezen + completion: + - internal + - + title: 'Uitdaging' + challenge: true + completion: + - external diff --git a/nl-NL/step_1.md b/nl-NL/step_1.md index 7556ec0e..7aea74c9 100644 --- a/nl-NL/step_1.md +++ b/nl-NL/step_1.md @@ -22,7 +22,7 @@ title: Waar worden mijn spraakopnames opgeslagen? title: Geen YouTube? Download de video's! --- -Je kunt [alle video's voor dit project downloaden](https://rpf.io/p/nl-NL/alien-language-go){:target="_blank"}. +Je kunt [alle video's voor dit project downloaden](https://rpf.io/p/en/alien-language-go){:target="_blank"}. --- /collapse --- @@ -32,7 +32,7 @@ Je kunt [alle video's voor dit project downloaden](https://rpf.io/p/nl-NL/alien- title: Licentie --- -Dit project heeft een dubbele licentie onder zowel een [Creative Commons Attribution Non-Commercial Share-Alike-licentie](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} en een [Apache-licentie versie 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. +Dit project heeft een dubbele licentie onder zowel een [Creative Commons Attribution Non-Commercial Share-Alike-licentie](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} en een [Apache-licentie versie 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"} We willen Dale van machinelearningforkids.co.uk graag bedanken voor al zijn werk aan dit project. diff --git a/nl-NL/step_2.md b/nl-NL/step_2.md index 345da38a..ee568f7e 100644 --- a/nl-NL/step_2.md +++ b/nl-NL/step_2.md @@ -22,18 +22,15 @@ + Klik op de knop **+ Voeg een nieuw project toe**. -+ Geef je project de naam `Buitenaardse taal` en stel het in om **geluiden** te leren herkennen en sla gegevens op **in je webbrowser**. Klik vervolgens op **Creëer**. -![Een project maken](images/create-project.png) ++ Geef je project de naam `Buitenaardse taal` en stel het in om geluiden te leren herkennen **** en sla gegevens op **in je webbrowser**. Klik vervolgens op **Creëer**. ![Een project maken](images/create-project.png) -+ Je zou nu 'Buitenaardse taal' in de projectenlijst moeten zien. Klik op dit project. -![Projectlijst met vermelding van buitenaardse taal](images/projects-list.png) ++ Je zou nu 'Buitenaardse taal' in de projectenlijst moeten zien. Klik op dit project. ![Projectlijst met vermelding van buitenaardse taal](images/projects-list.png) --- /task --- --- task --- -+ Klik op de knop **Train**. -![Project hoofdmenu met een pijl naar de train-knop](images/project-train.png) ++ Klik op de knop **Train**. ![Project hoofdmenu met een pijl naar de train-knop](images/project-train.png) + Als je een pop-upbericht ziet met de vraag om de microfoon te gebruiken, klik dan op **Toestaan bij elk bezoek**. diff --git a/nl-NL/step_3.md b/nl-NL/step_3.md index 4c5d5fb3..02f6487d 100644 --- a/nl-NL/step_3.md +++ b/nl-NL/step_3.md @@ -12,8 +12,7 @@ Eerst verzamel je voorbeelden van achtergrondgeluiden. Dit helpt je machine lear + Klik op de **+ Voeg een voorbeeld toe** knop in **background noise**. -+ Klik op de microfoon, maar zeg niets. Neem 2 seconden achtergrondgeluid op. -![Pijl wijzend naar microfoonknop](images/record-button.png) ++ Klik op de microfoon, maar zeg niets. Neem 2 seconden achtergrondgeluid op. ![Pijl wijzend naar microfoonknop](images/record-button.png) + Klik op de knop **VOEG TOE** om jouw opname op te slaan. @@ -21,8 +20,7 @@ Eerst verzamel je voorbeelden van achtergrondgeluiden. Dit helpt je machine lear --- task --- -+ Herhaal deze stappen totdat je **minimaal acht voorbeelden** van achtergrondgeluiden hebt. -![Container gevuld met 8 achtergrond voorbeelden](images/8-background.png) ++ Herhaal deze stappen totdat je **minimaal acht voorbeelden** van achtergrondgeluiden hebt. ![Container gevuld met 8 achtergrond voorbeelden](images/8-background.png) --- /task --- diff --git a/nl-NL/step_4.md b/nl-NL/step_4.md index 238eee5e..bfd6f0da 100644 --- a/nl-NL/step_4.md +++ b/nl-NL/step_4.md @@ -14,8 +14,7 @@ Je hebt de voorbeelden verzameld die je nodig hebt, nu ga je deze gebruiken om j + Klik op **Leer & Test**. -+ Klik op de knop met het label **Train nieuw machine learning model**. Dit kan enkele minuten duren. -![Pijl die naar de knop wijst met de tekst Train nieuw machine learning model](images/train-new-model.png) ++ Klik op de knop met het label **Train nieuw machine learning model**. Dit kan enkele minuten duren. ![Pijl die naar de knop wijst met de tekst Train nieuw machine learning model](images/train-new-model.png) --- /task --- @@ -25,8 +24,7 @@ Zodra het trainen is voltooid, kun je testen hoe goed jouw model jouw zelfbedach + Klik op de knop **Begin met luisteren** en zeg vervolgens het buitenaardse woord voor "links". -Als je machine learning model dit herkent, wordt weergegeven wat het model voorspelt dat jij hebt gezegd. -![Pijl die naar de knop 'Start listening' wijst](images/test-your-model.png) +Als je machine learning model dit herkent, wordt weergegeven wat het model voorspelt dat jij hebt gezegd. ![Pijl die naar de knop 'Start listening' wijst](images/test-your-model.png) + Test of het model ook jouw buitenaardse woord voor "rechts" herkent. diff --git a/nl-NL/step_5.md b/nl-NL/step_5.md index 6bc1c4bc..74402416 100644 --- a/nl-NL/step_5.md +++ b/nl-NL/step_5.md @@ -2,7 +2,7 @@
- +
@@ -34,8 +34,7 @@ Machine Learning for Kids heeft een paar speciale blokken aan Scratch toegevoegd --- task --- -+ Zorg ervoor dat je de sprite **Alien** hebt geselecteerd en klik vervolgens op het tabblad **Code** en voeg deze code toe. (Behoud de code die er al is!) -![Voeg code toe om de alien te besturen: Wanneer op groene vlag wordt geklikt start listening. Als ik links hoor, zeg dan links en loop naar links. Als ik rechts hoor, zeg dan rechts en loop naar rechts.](images/control-alien-blocks.png) ++ Zorg ervoor dat je de sprite **Alien** hebt geselecteerd en klik vervolgens op het tabblad **Code** en voeg deze code toe. (Behoud de code die er al is!) ![Voeg code toe om de alien te besturen: Wanneer op groene vlag wordt geklikt start listening. Als ik links hoor, zeg dan links en loop naar links. Als ik rechts hoor, zeg dan rechts en loop naar rechts.](images/control-alien-blocks.png) --- /task --- diff --git a/nl-NL/step_7.md b/nl-NL/step_7.md index c1f3297b..4b65a0c6 100644 --- a/nl-NL/step_7.md +++ b/nl-NL/step_7.md @@ -1,13 +1,3 @@ ## Wat kun je verder nog doen? -Er zijn nog veel meer machine learning en AI-projecten in het [Machine learning with Scratch](https://projects.raspberrypi.org/nl-NL/pathways/scratch-machine-learning)-pad. - -*** - -Dit project werd vertaald door vrijwilligers: - -iny van beuningen -Florus van der Rhee -Robert-Jan Kempenaar - -Dankzij vrijwilligers kunnen we mensen over de hele wereld de kans geven om in hun eigen taal te leren. Jij kunt ons helpen meer mensen te bereiken door vrijwillig te starten met vertalen - meer informatie op [rpf.io/translate](https://rpf.io/translate). +Er zijn nog veel meer machine learning en AI-projecten in het [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning)-pad. diff --git a/no-NO/images/8-background.png b/no-NO/images/8-background.png new file mode 100644 index 00000000..d27ef20a Binary files /dev/null and b/no-NO/images/8-background.png differ diff --git a/no-NO/images/add-example.png b/no-NO/images/add-example.png new file mode 100644 index 00000000..0fa70ce6 Binary files /dev/null and b/no-NO/images/add-example.png differ diff --git a/no-NO/images/add-new-blocks.png b/no-NO/images/add-new-blocks.png new file mode 100644 index 00000000..a00e4d4c Binary files /dev/null and b/no-NO/images/add-new-blocks.png differ diff --git a/no-NO/images/alien-language.png b/no-NO/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/no-NO/images/alien-language.png differ diff --git a/no-NO/images/allow-microphone.png b/no-NO/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/no-NO/images/allow-microphone.png differ diff --git a/no-NO/images/background-noise.png b/no-NO/images/background-noise.png new file mode 100644 index 00000000..3a924b00 Binary files /dev/null and b/no-NO/images/background-noise.png differ diff --git a/no-NO/images/banner.png b/no-NO/images/banner.png new file mode 100644 index 00000000..a54fe151 Binary files /dev/null and b/no-NO/images/banner.png differ diff --git a/no-NO/images/control-alien-blocks.png b/no-NO/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/no-NO/images/control-alien-blocks.png differ diff --git a/no-NO/images/create-project.png b/no-NO/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/no-NO/images/create-project.png differ diff --git a/no-NO/images/new-blocks.png b/no-NO/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/no-NO/images/new-blocks.png differ diff --git a/no-NO/images/project-train.png b/no-NO/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/no-NO/images/project-train.png differ diff --git a/no-NO/images/projects-list.png b/no-NO/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/no-NO/images/projects-list.png differ diff --git a/no-NO/images/record-button.png b/no-NO/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/no-NO/images/record-button.png differ diff --git a/no-NO/images/save-example.png b/no-NO/images/save-example.png new file mode 100644 index 00000000..0d1a1d48 Binary files /dev/null and b/no-NO/images/save-example.png differ diff --git a/no-NO/images/start-listening.png b/no-NO/images/start-listening.png new file mode 100644 index 00000000..db113d03 Binary files /dev/null and b/no-NO/images/start-listening.png differ diff --git a/no-NO/images/test-new-blocks.png b/no-NO/images/test-new-blocks.png new file mode 100644 index 00000000..5c4260bc Binary files /dev/null and b/no-NO/images/test-new-blocks.png differ diff --git a/no-NO/images/test-your-model.png b/no-NO/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/no-NO/images/test-your-model.png differ diff --git a/no-NO/images/train-new-model.png b/no-NO/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/no-NO/images/train-new-model.png differ diff --git a/no-NO/images/whatyouwillmake.gif b/no-NO/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/no-NO/images/whatyouwillmake.gif differ diff --git a/no-NO/meta.yml b/no-NO/meta.yml new file mode 100644 index 00000000..ae376c3a --- /dev/null +++ b/no-NO/meta.yml @@ -0,0 +1,31 @@ +--- +title: Alien language +hero_image: images/banner.png +description: Create your own alien language to move a sprite +theme: orange +listed: true +copyedit: true +technologies: scratch +software: scratch +version: 4.0.0 +last_tested: '2019-06-04' +steps: + - + title: What you will make + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/no-NO/resources/NEW Alien 1.srt b/no-NO/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/no-NO/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/no-NO/resources/NEW Alien 2.srt b/no-NO/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/no-NO/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/no-NO/resources/NEW Alien 3.srt b/no-NO/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/no-NO/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/no-NO/resources/NEW Alien 4.srt b/no-NO/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/no-NO/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/no-NO/resources/readme.txt b/no-NO/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/no-NO/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/no-NO/step_1.md b/no-NO/step_1.md new file mode 100644 index 00000000..aa0540f2 --- /dev/null +++ b/no-NO/step_1.md @@ -0,0 +1,44 @@ +## What you will make + +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. + +You will need a **microphone**. + +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) + +--- collapse --- + +--- +title: Where are my voice recordings stored? +--- + +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). + +--- /collapse --- + +--- collapse --- +--- +title: No YouTube? Download the videos! +--- + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + + +--- /collapse --- + +--- collapse --- +--- +title: License +--- + +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +We'd like to thank Dale from machinelearningforkids.co.uk for all his work on this project. + +--- /collapse --- + + + + + diff --git a/no-NO/step_2.md b/no-NO/step_2.md new file mode 100644 index 00000000..e6930402 --- /dev/null +++ b/no-NO/step_2.md @@ -0,0 +1,42 @@ +## Set up the project + + +
+ +
+ + +--- task --- + ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- + +--- task --- + ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) + +--- /task --- + +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- + + + diff --git a/no-NO/step_3.md b/no-NO/step_3.md new file mode 100644 index 00000000..bf9eb8ee --- /dev/null +++ b/no-NO/step_3.md @@ -0,0 +1,49 @@ +## Invent two words + + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. + +--- task --- + ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". + +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. + +--- task --- + ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- + ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". + +--- /task --- diff --git a/no-NO/step_4.md b/no-NO/step_4.md new file mode 100644 index 00000000..785b11b0 --- /dev/null +++ b/no-NO/step_4.md @@ -0,0 +1,36 @@ +## Train the model + + +
+ +
+ + +You have gathered the examples you need, now you will use these examples to train your machine learning model. + +--- task --- + ++ Click on **Back to project** in the top left-hand corner. + ++ Click on **Learn & Test**. + ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) + +--- /task --- + +Once the training has finished, you can test how well your model recognises the alien words you have invented. + +--- task --- + ++ Click the **Start listening** button, then say your alien word for "left". + +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) + ++ Test whether the model recognises your alien word for "right" as well. + +--- /task --- + +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. + + + diff --git a/no-NO/step_5.md b/no-NO/step_5.md new file mode 100644 index 00000000..c361be8e --- /dev/null +++ b/no-NO/step_5.md @@ -0,0 +1,50 @@ +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. + +--- task --- + ++ Click on the **< Back to project** link. + ++ Click on **Make**. + ++ Click on **Scratch 3**. + ++ Click on **Open in Scratch 3**. + +--- /task --- + +--- task --- + ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. + +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) + +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) + +--- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/no-NO/step_6.md b/no-NO/step_6.md new file mode 100644 index 00000000..6ca94946 --- /dev/null +++ b/no-NO/step_6.md @@ -0,0 +1,11 @@ +## Challenge + +--- challenge --- + +--- task --- + +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. + +--- /task --- + +--- /challenge --- diff --git a/no-NO/step_7.md b/no-NO/step_7.md new file mode 100644 index 00000000..d4b22e96 --- /dev/null +++ b/no-NO/step_7.md @@ -0,0 +1,3 @@ +## What can you do now? + +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/pl-PL/images/8-background.png b/pl-PL/images/8-background.png new file mode 100644 index 00000000..d27ef20a Binary files /dev/null and b/pl-PL/images/8-background.png differ diff --git a/pl-PL/images/add-example.png b/pl-PL/images/add-example.png new file mode 100644 index 00000000..0fa70ce6 Binary files /dev/null and b/pl-PL/images/add-example.png differ diff --git a/pl-PL/images/add-new-blocks.png b/pl-PL/images/add-new-blocks.png new file mode 100644 index 00000000..a00e4d4c Binary files /dev/null and b/pl-PL/images/add-new-blocks.png differ diff --git a/pl-PL/images/alien-language.png b/pl-PL/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/pl-PL/images/alien-language.png differ diff --git a/pl-PL/images/allow-microphone.png b/pl-PL/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/pl-PL/images/allow-microphone.png differ diff --git a/pl-PL/images/background-noise.png b/pl-PL/images/background-noise.png new file mode 100644 index 00000000..3a924b00 Binary files /dev/null and b/pl-PL/images/background-noise.png differ diff --git a/pl-PL/images/banner.png b/pl-PL/images/banner.png new file mode 100644 index 00000000..a54fe151 Binary files /dev/null and b/pl-PL/images/banner.png differ diff --git a/pl-PL/images/control-alien-blocks.png b/pl-PL/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/pl-PL/images/control-alien-blocks.png differ diff --git a/pl-PL/images/create-project.png b/pl-PL/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/pl-PL/images/create-project.png differ diff --git a/pl-PL/images/new-blocks.png b/pl-PL/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/pl-PL/images/new-blocks.png differ diff --git a/pl-PL/images/project-train.png b/pl-PL/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/pl-PL/images/project-train.png differ diff --git a/pl-PL/images/projects-list.png b/pl-PL/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/pl-PL/images/projects-list.png differ diff --git a/pl-PL/images/record-button.png b/pl-PL/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/pl-PL/images/record-button.png differ diff --git a/pl-PL/images/save-example.png b/pl-PL/images/save-example.png new file mode 100644 index 00000000..0d1a1d48 Binary files /dev/null and b/pl-PL/images/save-example.png differ diff --git a/pl-PL/images/start-listening.png b/pl-PL/images/start-listening.png new file mode 100644 index 00000000..db113d03 Binary files /dev/null and b/pl-PL/images/start-listening.png differ diff --git a/pl-PL/images/test-new-blocks.png b/pl-PL/images/test-new-blocks.png new file mode 100644 index 00000000..5c4260bc Binary files /dev/null and b/pl-PL/images/test-new-blocks.png differ diff --git a/pl-PL/images/test-your-model.png b/pl-PL/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/pl-PL/images/test-your-model.png differ diff --git a/pl-PL/images/train-new-model.png b/pl-PL/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/pl-PL/images/train-new-model.png differ diff --git a/pl-PL/images/whatyouwillmake.gif b/pl-PL/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/pl-PL/images/whatyouwillmake.gif differ diff --git a/pl-PL/meta.yml b/pl-PL/meta.yml new file mode 100644 index 00000000..ae376c3a --- /dev/null +++ b/pl-PL/meta.yml @@ -0,0 +1,31 @@ +--- +title: Alien language +hero_image: images/banner.png +description: Create your own alien language to move a sprite +theme: orange +listed: true +copyedit: true +technologies: scratch +software: scratch +version: 4.0.0 +last_tested: '2019-06-04' +steps: + - + title: What you will make + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/pl-PL/resources/NEW Alien 1.srt b/pl-PL/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/pl-PL/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/pl-PL/resources/NEW Alien 2.srt b/pl-PL/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/pl-PL/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/pl-PL/resources/NEW Alien 3.srt b/pl-PL/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/pl-PL/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/pl-PL/resources/NEW Alien 4.srt b/pl-PL/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/pl-PL/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/pl-PL/resources/readme.txt b/pl-PL/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/pl-PL/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/pl-PL/step_1.md b/pl-PL/step_1.md new file mode 100644 index 00000000..aa0540f2 --- /dev/null +++ b/pl-PL/step_1.md @@ -0,0 +1,44 @@ +## What you will make + +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. + +You will need a **microphone**. + +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) + +--- collapse --- + +--- +title: Where are my voice recordings stored? +--- + +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). + +--- /collapse --- + +--- collapse --- +--- +title: No YouTube? Download the videos! +--- + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + + +--- /collapse --- + +--- collapse --- +--- +title: License +--- + +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +We'd like to thank Dale from machinelearningforkids.co.uk for all his work on this project. + +--- /collapse --- + + + + + diff --git a/pl-PL/step_2.md b/pl-PL/step_2.md new file mode 100644 index 00000000..e6930402 --- /dev/null +++ b/pl-PL/step_2.md @@ -0,0 +1,42 @@ +## Set up the project + + +
+ +
+ + +--- task --- + ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- + +--- task --- + ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) + +--- /task --- + +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- + + + diff --git a/pl-PL/step_3.md b/pl-PL/step_3.md new file mode 100644 index 00000000..bf9eb8ee --- /dev/null +++ b/pl-PL/step_3.md @@ -0,0 +1,49 @@ +## Invent two words + + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. + +--- task --- + ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". + +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. + +--- task --- + ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- + ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". + +--- /task --- diff --git a/pl-PL/step_4.md b/pl-PL/step_4.md new file mode 100644 index 00000000..785b11b0 --- /dev/null +++ b/pl-PL/step_4.md @@ -0,0 +1,36 @@ +## Train the model + + +
+ +
+ + +You have gathered the examples you need, now you will use these examples to train your machine learning model. + +--- task --- + ++ Click on **Back to project** in the top left-hand corner. + ++ Click on **Learn & Test**. + ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) + +--- /task --- + +Once the training has finished, you can test how well your model recognises the alien words you have invented. + +--- task --- + ++ Click the **Start listening** button, then say your alien word for "left". + +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) + ++ Test whether the model recognises your alien word for "right" as well. + +--- /task --- + +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. + + + diff --git a/pl-PL/step_5.md b/pl-PL/step_5.md new file mode 100644 index 00000000..c361be8e --- /dev/null +++ b/pl-PL/step_5.md @@ -0,0 +1,50 @@ +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. + +--- task --- + ++ Click on the **< Back to project** link. + ++ Click on **Make**. + ++ Click on **Scratch 3**. + ++ Click on **Open in Scratch 3**. + +--- /task --- + +--- task --- + ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. + +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) + +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) + +--- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/pl-PL/step_6.md b/pl-PL/step_6.md new file mode 100644 index 00000000..6ca94946 --- /dev/null +++ b/pl-PL/step_6.md @@ -0,0 +1,11 @@ +## Challenge + +--- challenge --- + +--- task --- + +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. + +--- /task --- + +--- /challenge --- diff --git a/pl-PL/step_7.md b/pl-PL/step_7.md new file mode 100644 index 00000000..d4b22e96 --- /dev/null +++ b/pl-PL/step_7.md @@ -0,0 +1,3 @@ +## What can you do now? + +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/pt-BR/images/alien-language.png b/pt-BR/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/pt-BR/images/alien-language.png differ diff --git a/pt-BR/images/allow-microphone.png b/pt-BR/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/pt-BR/images/allow-microphone.png differ diff --git a/pt-BR/images/control-alien-blocks.png b/pt-BR/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/pt-BR/images/control-alien-blocks.png differ diff --git a/pt-BR/images/create-project.png b/pt-BR/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/pt-BR/images/create-project.png differ diff --git a/pt-BR/images/new-blocks.png b/pt-BR/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/pt-BR/images/new-blocks.png differ diff --git a/pt-BR/images/project-train.png b/pt-BR/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/pt-BR/images/project-train.png differ diff --git a/pt-BR/images/projects-list.png b/pt-BR/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/pt-BR/images/projects-list.png differ diff --git a/pt-BR/images/record-button.png b/pt-BR/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/pt-BR/images/record-button.png differ diff --git a/pt-BR/images/test-your-model.png b/pt-BR/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/pt-BR/images/test-your-model.png differ diff --git a/pt-BR/images/train-new-model.png b/pt-BR/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/pt-BR/images/train-new-model.png differ diff --git a/pt-BR/images/whatyouwillmake.gif b/pt-BR/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/pt-BR/images/whatyouwillmake.gif differ diff --git a/pt-BR/meta.yml b/pt-BR/meta.yml index c11b8258..70c4a1a3 100644 --- a/pt-BR/meta.yml +++ b/pt-BR/meta.yml @@ -2,23 +2,30 @@ title: Linguagem alienígena hero_image: images/banner.png description: Crie sua própria linguagem alienígena para mover um ator -theme: orange +theme: laranja listed: true copyedit: true technologies: scratch software: scratch -version: 4.0.0 +version: 3 last_tested: '2019-06-04' steps: -- title: Introdução -- title: Use um modelo pré-treinado -- title: Crie um novo projeto - completion: - - engaged -- title: Crie palavras alienígenas -- title: Treine um novo modelo de aprendizado de máquina -- title: Use palavras alienígenas no Scratch - completion: - - internal -- title: 'Desafio: adicionar novos comandos' - challenge: true + - + title: O que você vai fazer + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/pt-BR/resources/NEW Alien 1.srt b/pt-BR/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/pt-BR/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/pt-BR/resources/NEW Alien 2.srt b/pt-BR/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/pt-BR/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/pt-BR/resources/NEW Alien 3.srt b/pt-BR/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/pt-BR/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/pt-BR/resources/NEW Alien 4.srt b/pt-BR/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/pt-BR/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/pt-BR/resources/readme.txt b/pt-BR/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/pt-BR/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/pt-BR/step_1.md b/pt-BR/step_1.md index 2b9ef454..91e50046 100644 --- a/pt-BR/step_1.md +++ b/pt-BR/step_1.md @@ -1,53 +1,44 @@ -## Introdução +## O que você vai fazer -Neste projeto, você treinará o computador para entender uma língua alienígena. Você a usará para controlar um personagem alienígena, para que ele possa entender o que você manda fazer. +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. -### O que você vai fazer +You will need a **microphone**. ---- no-print --- - -![Alienígena se movendo para a esquerda e direita para novas palavras, Eeek e Bop](images/journey.gif) - ---- /no-print --- - ---- print-only --- - -![Visão geral de todo o projeto Scratch](images/test-new-blocks.png) - ---- /print-only --- +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) --- collapse --- + --- -title: O que você vai precisar +title: Where are my voice recordings stored? --- -+ Um computador com microfone - -+ Acesso à internet +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). --- /collapse --- --- collapse --- --- -title: O que você vai aprender +title: No YouTube? Download the videos! --- -+ Como usar a extensão Fala para texto no Scratch 3 com um modelo pré-treinado -+ Como treinar um modelo de aprendizado de máquina para reconhecer sons -+ Como usar o modelo de aprendizado de máquina treinado no Scratch 3 + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + --- /collapse --- --- collapse --- --- -title: Informações adicionais para educadores +title: License --- -Se você precisar imprimir este projeto, por favor, use a [versão para impressão](https://projects.raspberrypi.org/pt-BR/projects/alien-language/print){:target="_blank"}. +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +Gostaríamos de agradecer a Dale do machinelearningforkids.co.uk por todo o seu trabalho neste projeto. --- /collapse --- -### Licença -Este projeto tem duas licenças sob uma licença [para compartilhamento não comercial de atribuição Creative Commons](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} e uma [licença Apache versão 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"} -Gostaríamos de agradecer a Dale do machinelearningforkids.co.uk por todo o seu trabalho neste projeto. + + diff --git a/pt-BR/step_2.md b/pt-BR/step_2.md index 6277bc87..e6930402 100644 --- a/pt-BR/step_2.md +++ b/pt-BR/step_2.md @@ -1,27 +1,42 @@ -## Use um modelo pré-treinado +## Set up the project + + +
+ +
+ --- task --- -+ Vá para [machinelearningforkids.co.uk/scratch3](https://machinelearningforkids.co.uk/scratch3/){:target="_blank"} ---- /task --- -**Aviso:** Esta etapa do projeto só pode ser concluída usando o navegador Google Chrome. Se este navegador não estiver disponível para você, por favor, pule para [etapa 3: Criar um novo projeto](https://projects.raspberrypi.org/pt-BR/projects/alien-language/3) ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- --- task --- -+ Em seguida, carregue a extensão **Fala para Texto**. Clique no botão **Extensões** no canto inferior esquerdo e, em seguida, escolha **Fala para texto** na lista. **Nota:** Certifique-se de selecionar a extensão **Fala para texto**, não a extensão **Texto para fala**. -![Seta apontando para o botão de extensões](images/extensions-annotated.png) -+ Use blocos de **Eventos**, blocos de **Movimento** e os novos blocos **Fala para Texto** para criar os seguintes scripts. -![Novos scripts a serem adicionados](images/S-to-T-blocks.png) ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) --- /task --- --- task --- -Clique na bandeira verde para testar seu programa. Diga "esquerda" ou "direita". O gato do Scratch deve se mover na direção que você disser para ele ir. Use sua voz para tentar mover o gato do Scratch para frente e para trás na tela. Tente falar com calma e clareza. -Pode ser difícil fazer funcionar. Se não funcionar, adicione os blocos `diga` para que seu código se pareça com o código abaixo, para mostrar o que ele acha que você está dizendo. -![New scripts to see what the computer thinks you are saying](images/S-to-T-blocks-test.png) ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + --- /task --- -Você agora usou o reconhecimento de fala para controlar um personagem no Scratch. -Nesta etapa, para que seu programa funcione rapidamente, você utilizou um modelo de aprendizado de máquina que já havia sido treinado para você. É um modelo geral de aprendizado de máquina que foi treinado para reconhecer palavras no dicionário inglês. + diff --git a/pt-BR/step_3.md b/pt-BR/step_3.md index b99e7dd4..bf9eb8ee 100644 --- a/pt-BR/step_3.md +++ b/pt-BR/step_3.md @@ -1,23 +1,49 @@ -## Crie um novo projeto -Nas próximas etapas, você treinará um modelo de aprendizado de máquina para ver como isso foi feito. Para a próxima parte do projeto, você usará sua voz para controlar um personagem alienígena que não entende inglês! Você irá inventar duas novas palavras que não seriam encontradas em um dicionário de inglês. Então, você usará as palavras para controlar o personagem alienígena e treinará um modelo de aprendizado de máquina para reconhecê-lo. +## Invent two words -Primeiro, acesse o site Machine Learning for Kids e crie um projeto. + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. + +--- task --- + ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". + +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. --- task --- -+ Vá para [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"}. -+ Clique em **Primeiros passos**. ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. -+ Clique em **Experimente agora**. --- /task --- --- task --- -+ Clique em **Projetos** na barra de menus na parte superior da página. -+ Clique no botão **Adicionar um novo projeto**. ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- -+ Nomeie seu projeto como `Idioma Alienígena` e defina-o para aprender a reconhecer `sons`. Em seguida, clique no botão **Criar**. -![Criando um projeto](images/create.png) ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". -+ Você deve ver `Idioma Alienígena` na lista de projetos. Clique no projeto `Idioma Alienígena`. --- /task --- diff --git a/pt-BR/step_4.md b/pt-BR/step_4.md index 8d4e4ebe..785b11b0 100644 --- a/pt-BR/step_4.md +++ b/pt-BR/step_4.md @@ -1,53 +1,36 @@ -## Crie palavras alienígenas -Nesta etapa, você irá inventar suas palavras alienígenas. +## Train the model ---- task --- - -Você precisa de duas palavras - uma palavra alienígena para "esquerda" e uma palavra alienígena para "direita". Invente duas novas palavras que não estariam em um dicionário de inglês. Eles podem ser barulhos aleatórios, desde que você possa repeti-los da mesma maneira todas as vezes e eles sejam reconhecidamente diferentes um do outro. Se você não quiser fazer barulhos com a sua voz, tudo bem - você pode encontrar outras maneiras de fazer barulhos. Você pode clicar nos dedos, bater palmas, apertar um brinquedo estridente ou fazer qualquer outra coisa que puder imaginar! Tenha certeza que você vai lembrar de suas novas palavras! + +
+ +
+ ---- /task --- +You have gathered the examples you need, now you will use these examples to train your machine learning model. --- task --- -+ Clique no botão **Treinar** para começar a coletar exemplos. ![Seta apontando para o botão de treinamento](images/click-train.png) ++ Click on **Back to project** in the top left-hand corner. -+ Clique no botão **Adicionar exemplo** na caixa **background noise**. A gravação do ruído de fundo ajudará seu modelo de aprendizado de máquina a diferenciar os sons que você o treinará para reconhecer e o ruído de fundo onde você está. -![Seta apontando para o botão adicionar exemplo](images/background-noise-annotated.png) ++ Click on **Learn & Test**. -+ Clique no microfone para gravar 2 segundos de ruído de fundo. -![Seta apontando para o botão do microfone](images/add-example-annotated.png) - -+ Clique no botão **Adicionar** para salvar sua gravação. -![Seta apontando para o botão adicionar](images/save-example-annotated.png) - -+ Repita essas etapas até ter **pelo menos 8 exemplos** de ruído de fundo. -![caixa cheia de 8 exemplos de fundo](images/8-background.png) ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) --- /task --- +Once the training has finished, you can test how well your model recognises the alien words you have invented. + --- task --- -+ Clique no botão **Adicionar um novo rótulo** no canto superior direito e crie uma nova caixa de treinamento chamada `esquerda`. -![Seta apontando para o botão adicionar novo rótulo](images/8-background-annotated.png) ++ Click the **Start listening** button, then say your alien word for "left". -+ Clique no botão **Adicionar exemplo** na nova **caixa esquerda**. -![Seta apontando para o botão adicionar exemplo](images/left-empty-annotated.png) +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) -+ Registre **pelo menos 8 exemplos** da sua palavra alienígena para "esquerda". -![caixa preenchida com 8 exemplos de esquerda](images/8-left.png) ++ Test whether the model recognises your alien word for "right" as well. --- /task --- +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. ---- task --- - -+ Clique no botão **Adicionar novo rótulo** no canto superior direito novamente e crie uma nova caixa de treinamento chamado `direita`. - -+ Clique no botão **Adicionar exemplo** na nova caixa **direita**. -+ Registre **pelo menos 8 exemplos** da sua palavra estrangeira para “direita”. -![caixa preenchida com 8 exemplos de direita](images/8-right.png) -+ **Nota:** No final desta etapa, você deve ter oito exemplos em cada uma das caixas. - ---- /task --- diff --git a/pt-BR/step_5.md b/pt-BR/step_5.md index 610f330d..5ff322c9 100644 --- a/pt-BR/step_5.md +++ b/pt-BR/step_5.md @@ -1,26 +1,50 @@ -## Treine um novo modelo de aprendizado de máquina -Nesta etapa, você usará os exemplos que você coletou na última etapa para treinar o computador a reconhecer suas novas palavras. +## Control the alien ---- task --- + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. + +--- task --- + ++ Click on the **< Back to project** link. + ++ Click on **Make**. -+ Clique no link **Voltar ao projeto** no canto superior esquerdo. -![Seta apontando para o botão de voltar ao projeto](images/8-right-annotated.png) ++ Click on **Scratch 3**. + ++ Click on **Open in Scratch 3**. + +--- /task --- + +--- task --- -+ Clique no botão **Aprendizado & Teste**. -![Seta apontando para o botão Aprender e Testar](images/learn-test-annotated.png) ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. -+ Clique em **Treinar um novo modelo de aprendizado de máquina**. Isso pode levar alguns minutos para ser concluído. -![Seta apontando para Treinar novo modelo de aprendizado de máquina](images/train-annotated.png) +![Alien language project is selected in the Scratch templates](images/alien-language.png) --- /task --- +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. + +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) + --- task --- -+ Depois que o treinamento terminar, clique no botão **Começar a ouvir** para testar seu modelo de aprendizado de máquina. Diga uma das palavras (ou faça um dos sons) que você treinou no computador para reconhecer como "esquerda" ou "direita". Se o seu modelo de aprendizado de máquina o reconhecer, ele exibirá o que acha que você disse. -![Seta apontando para o que o computador pensa que você fez](images/start-listening-annotated.png) ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) -+ Se você não estiver satisfeito com o funcionamento do modelo, volte à página **Treinar** e adicione mais exemplos aos três intervalos de treinamento. +--- /task --- + +--- task --- -+ Quando estiver satisfeito com seu modelo de aprendizado de máquina, passe para a próxima etapa. ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. --- /task --- + + + + + diff --git a/pt-BR/step_6.md b/pt-BR/step_6.md index 5afd0343..6ca94946 100644 --- a/pt-BR/step_6.md +++ b/pt-BR/step_6.md @@ -1,32 +1,11 @@ -## Use palavras alienígenas no Scratch -Nesta etapa, você usará seu novo aprendizado de máquina no Scratch. +## Challenge ---- task --- - -+ Clique no botão **Faça**. -![Seta apontando para o botão faça](images/make-annotated.png) - -+ Clique no botão **Scratch 3** e clique em **Abrir no Scratch 3**. - -+ Clique em **Modelos de projeto** na parte superior da tela e abra o modelo do projeto **Idioma Alienígena**. - ---- /task --- +--- challenge --- --- task --- -+ Veja os códigos para o ator alienígena. Os códigos que já estão lá colocarão o ator alienígena no lugar certo no início e animarão como ele caminha. Não os apague. Adicione o código abaixo ao ator alienígena, abaixo dos códigos que já estão lá. -![Novos códigos a serem adicionados, incluindo novos botões para usar seu modelo de aprendizado de máquina](images/add-new-blocks.png) - -+ Agora, teste seu programa! Clique na bandeira verde. Diga suas palavras (ou faça barulhos) para "esquerda" e "direita" para dizer ao alienígena que caminho seguir. +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. --- /task --- -Agora você treinou seu próprio modelo de aprendizado de máquina para reconhecimento de fala e o usou para controlar um personagem no Scratch. Diferente do modelo pré-treinado usado anteriormente no projeto, que foi treinado para reconhecer dezenas de milhares de palavras, você o treinou apenas para reconhecer duas palavras diferentes. No entanto, o princípio é o mesmo. - -Você também viu a importância de treinar o modelo de aprendizado de máquina para trabalhar com um certo ruído de fundo. - ---- task --- - -Você pode pensar em um exemplo de um sistema como esse que você já viu antes? Por exemplo, alguns carros usam sistemas de reconhecimento de fala que foram treinados para reconhecer os diferentes comandos que você pode dar ao computador de bordo. Que outros exemplos você já usou? - ---- /task --- +--- /challenge --- diff --git a/pt-BR/step_7.md b/pt-BR/step_7.md index 689a9569..d4b22e96 100644 --- a/pt-BR/step_7.md +++ b/pt-BR/step_7.md @@ -1,17 +1,3 @@ -## Desafio: adicionar novos comandos +## What can you do now? ---- challenge --- - ---- task --- - -+ Agora, você pode adicionar mais duas caixas de treinamento para "para cima" e "para baixo", para poder controlar o alienígena a se mover nas quatro direções. - ---- /task --- - ---- task --- - -+ Você consegue pensar em outra coisa para a qual poderia usar um modelo de aprendizado de máquina? - ---- /task --- - ---- /challenge --- +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/pt-PT/meta.yml b/pt-PT/meta.yml index 93e3070d..b4e616ce 100644 --- a/pt-PT/meta.yml +++ b/pt-PT/meta.yml @@ -10,16 +10,22 @@ software: scratch version: 4.0.0 last_tested: '2019-06-04' steps: - - title: O que vais fazer - - title: Prepara o teu projeto - - title: Inventa duas palavras + - + title: O que vais fazer + - + title: Prepara o teu projeto + - + title: Inventa duas palavras completion: - engaged - - title: Treina o modelo - - title: Controla o extraterrestre + - + title: Treina o modelo + - + title: Controla o extraterrestre completion: - internal - - title: 'Desafio' + - + title: 'Desafio' challenge: true completion: - external diff --git a/pt-PT/step_1.md b/pt-PT/step_1.md index 981e0640..044e45f5 100644 --- a/pt-PT/step_1.md +++ b/pt-PT/step_1.md @@ -22,7 +22,7 @@ title: Onde ficam guardadas as minhas gravações de voz? title: Não tens Youtube? Descarrega estes vídeos! --- -Podes [descarregar todos os vídeos para este projeto](https://rpf.io/p/pt-PT/alien-language-go){:target="_blank"}. +Podes [descarregar todos os vídeos para este projeto](https://rpf.io/p/en/alien-language-go){:target="_blank"}. --- /collapse --- diff --git a/pt-PT/step_7.md b/pt-PT/step_7.md index 6566708f..0e0cb72b 100644 --- a/pt-PT/step_7.md +++ b/pt-PT/step_7.md @@ -1,12 +1,3 @@ ## O que se segue? -Existem muitos outros projetos de machine learning e IA em [Machine learning com Scratch](https://projects.raspberrypi.org/pt-PT/pathways/scratch-machine-learning). - -*** -Este projeto foi traduzido por voluntários: - -[Beatriz Gomes] - -[Homero Cardoso] - -Graças a voluntários, podemos dar às pessoas de todo o mundo a possibilidade de aprender no seu próprio idioma. Tu podes ajudar-nos a alcançar mais pessoas oferecendo-te para traduzir - mais informações em [rpf.io/translate](https://rpf.io/translate). +Existem muitos outros projetos de machine learning e IA em [Machine learning com Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning). diff --git a/ro-RO/images/8-background.png b/ro-RO/images/8-background.png new file mode 100644 index 00000000..d27ef20a Binary files /dev/null and b/ro-RO/images/8-background.png differ diff --git a/ro-RO/images/add-example.png b/ro-RO/images/add-example.png new file mode 100644 index 00000000..0fa70ce6 Binary files /dev/null and b/ro-RO/images/add-example.png differ diff --git a/ro-RO/images/add-new-blocks.png b/ro-RO/images/add-new-blocks.png new file mode 100644 index 00000000..a00e4d4c Binary files /dev/null and b/ro-RO/images/add-new-blocks.png differ diff --git a/ro-RO/images/alien-language.png b/ro-RO/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/ro-RO/images/alien-language.png differ diff --git a/ro-RO/images/allow-microphone.png b/ro-RO/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/ro-RO/images/allow-microphone.png differ diff --git a/ro-RO/images/background-noise.png b/ro-RO/images/background-noise.png new file mode 100644 index 00000000..3a924b00 Binary files /dev/null and b/ro-RO/images/background-noise.png differ diff --git a/ro-RO/images/banner.png b/ro-RO/images/banner.png new file mode 100644 index 00000000..a54fe151 Binary files /dev/null and b/ro-RO/images/banner.png differ diff --git a/ro-RO/images/control-alien-blocks.png b/ro-RO/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/ro-RO/images/control-alien-blocks.png differ diff --git a/ro-RO/images/create-project.png b/ro-RO/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/ro-RO/images/create-project.png differ diff --git a/ro-RO/images/new-blocks.png b/ro-RO/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/ro-RO/images/new-blocks.png differ diff --git a/ro-RO/images/project-train.png b/ro-RO/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/ro-RO/images/project-train.png differ diff --git a/ro-RO/images/projects-list.png b/ro-RO/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/ro-RO/images/projects-list.png differ diff --git a/ro-RO/images/record-button.png b/ro-RO/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/ro-RO/images/record-button.png differ diff --git a/ro-RO/images/save-example.png b/ro-RO/images/save-example.png new file mode 100644 index 00000000..0d1a1d48 Binary files /dev/null and b/ro-RO/images/save-example.png differ diff --git a/ro-RO/images/start-listening.png b/ro-RO/images/start-listening.png new file mode 100644 index 00000000..db113d03 Binary files /dev/null and b/ro-RO/images/start-listening.png differ diff --git a/ro-RO/images/test-new-blocks.png b/ro-RO/images/test-new-blocks.png new file mode 100644 index 00000000..5c4260bc Binary files /dev/null and b/ro-RO/images/test-new-blocks.png differ diff --git a/ro-RO/images/test-your-model.png b/ro-RO/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/ro-RO/images/test-your-model.png differ diff --git a/ro-RO/images/train-new-model.png b/ro-RO/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/ro-RO/images/train-new-model.png differ diff --git a/ro-RO/images/whatyouwillmake.gif b/ro-RO/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/ro-RO/images/whatyouwillmake.gif differ diff --git a/ro-RO/meta.yml b/ro-RO/meta.yml new file mode 100644 index 00000000..ae376c3a --- /dev/null +++ b/ro-RO/meta.yml @@ -0,0 +1,31 @@ +--- +title: Alien language +hero_image: images/banner.png +description: Create your own alien language to move a sprite +theme: orange +listed: true +copyedit: true +technologies: scratch +software: scratch +version: 4.0.0 +last_tested: '2019-06-04' +steps: + - + title: What you will make + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/ro-RO/resources/NEW Alien 1.srt b/ro-RO/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/ro-RO/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/ro-RO/resources/NEW Alien 2.srt b/ro-RO/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/ro-RO/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/ro-RO/resources/NEW Alien 3.srt b/ro-RO/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/ro-RO/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/ro-RO/resources/NEW Alien 4.srt b/ro-RO/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/ro-RO/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/ro-RO/resources/readme.txt b/ro-RO/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/ro-RO/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/ro-RO/step_1.md b/ro-RO/step_1.md new file mode 100644 index 00000000..aa0540f2 --- /dev/null +++ b/ro-RO/step_1.md @@ -0,0 +1,44 @@ +## What you will make + +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. + +You will need a **microphone**. + +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) + +--- collapse --- + +--- +title: Where are my voice recordings stored? +--- + +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). + +--- /collapse --- + +--- collapse --- +--- +title: No YouTube? Download the videos! +--- + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + + +--- /collapse --- + +--- collapse --- +--- +title: License +--- + +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +We'd like to thank Dale from machinelearningforkids.co.uk for all his work on this project. + +--- /collapse --- + + + + + diff --git a/ro-RO/step_2.md b/ro-RO/step_2.md new file mode 100644 index 00000000..e6930402 --- /dev/null +++ b/ro-RO/step_2.md @@ -0,0 +1,42 @@ +## Set up the project + + +
+ +
+ + +--- task --- + ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- + +--- task --- + ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) + +--- /task --- + +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- + + + diff --git a/ro-RO/step_3.md b/ro-RO/step_3.md new file mode 100644 index 00000000..bf9eb8ee --- /dev/null +++ b/ro-RO/step_3.md @@ -0,0 +1,49 @@ +## Invent two words + + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. + +--- task --- + ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". + +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. + +--- task --- + ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- + ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". + +--- /task --- diff --git a/ro-RO/step_4.md b/ro-RO/step_4.md new file mode 100644 index 00000000..785b11b0 --- /dev/null +++ b/ro-RO/step_4.md @@ -0,0 +1,36 @@ +## Train the model + + +
+ +
+ + +You have gathered the examples you need, now you will use these examples to train your machine learning model. + +--- task --- + ++ Click on **Back to project** in the top left-hand corner. + ++ Click on **Learn & Test**. + ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) + +--- /task --- + +Once the training has finished, you can test how well your model recognises the alien words you have invented. + +--- task --- + ++ Click the **Start listening** button, then say your alien word for "left". + +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) + ++ Test whether the model recognises your alien word for "right" as well. + +--- /task --- + +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. + + + diff --git a/ro-RO/step_5.md b/ro-RO/step_5.md new file mode 100644 index 00000000..c361be8e --- /dev/null +++ b/ro-RO/step_5.md @@ -0,0 +1,50 @@ +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. + +--- task --- + ++ Click on the **< Back to project** link. + ++ Click on **Make**. + ++ Click on **Scratch 3**. + ++ Click on **Open in Scratch 3**. + +--- /task --- + +--- task --- + ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. + +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) + +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) + +--- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/ro-RO/step_6.md b/ro-RO/step_6.md new file mode 100644 index 00000000..6ca94946 --- /dev/null +++ b/ro-RO/step_6.md @@ -0,0 +1,11 @@ +## Challenge + +--- challenge --- + +--- task --- + +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. + +--- /task --- + +--- /challenge --- diff --git a/ro-RO/step_7.md b/ro-RO/step_7.md new file mode 100644 index 00000000..d4b22e96 --- /dev/null +++ b/ro-RO/step_7.md @@ -0,0 +1,3 @@ +## What can you do now? + +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/sr-SP/images/8-background.png b/sr-SP/images/8-background.png new file mode 100644 index 00000000..d27ef20a Binary files /dev/null and b/sr-SP/images/8-background.png differ diff --git a/sr-SP/images/add-example.png b/sr-SP/images/add-example.png new file mode 100644 index 00000000..0fa70ce6 Binary files /dev/null and b/sr-SP/images/add-example.png differ diff --git a/sr-SP/images/add-new-blocks.png b/sr-SP/images/add-new-blocks.png new file mode 100644 index 00000000..a00e4d4c Binary files /dev/null and b/sr-SP/images/add-new-blocks.png differ diff --git a/sr-SP/images/alien-language.png b/sr-SP/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/sr-SP/images/alien-language.png differ diff --git a/sr-SP/images/allow-microphone.png b/sr-SP/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/sr-SP/images/allow-microphone.png differ diff --git a/sr-SP/images/background-noise.png b/sr-SP/images/background-noise.png new file mode 100644 index 00000000..3a924b00 Binary files /dev/null and b/sr-SP/images/background-noise.png differ diff --git a/sr-SP/images/banner.png b/sr-SP/images/banner.png new file mode 100644 index 00000000..a54fe151 Binary files /dev/null and b/sr-SP/images/banner.png differ diff --git a/sr-SP/images/control-alien-blocks.png b/sr-SP/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/sr-SP/images/control-alien-blocks.png differ diff --git a/sr-SP/images/create-project.png b/sr-SP/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/sr-SP/images/create-project.png differ diff --git a/sr-SP/images/new-blocks.png b/sr-SP/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/sr-SP/images/new-blocks.png differ diff --git a/sr-SP/images/project-train.png b/sr-SP/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/sr-SP/images/project-train.png differ diff --git a/sr-SP/images/projects-list.png b/sr-SP/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/sr-SP/images/projects-list.png differ diff --git a/sr-SP/images/record-button.png b/sr-SP/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/sr-SP/images/record-button.png differ diff --git a/sr-SP/images/save-example.png b/sr-SP/images/save-example.png new file mode 100644 index 00000000..0d1a1d48 Binary files /dev/null and b/sr-SP/images/save-example.png differ diff --git a/sr-SP/images/start-listening.png b/sr-SP/images/start-listening.png new file mode 100644 index 00000000..db113d03 Binary files /dev/null and b/sr-SP/images/start-listening.png differ diff --git a/sr-SP/images/test-new-blocks.png b/sr-SP/images/test-new-blocks.png new file mode 100644 index 00000000..5c4260bc Binary files /dev/null and b/sr-SP/images/test-new-blocks.png differ diff --git a/sr-SP/images/test-your-model.png b/sr-SP/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/sr-SP/images/test-your-model.png differ diff --git a/sr-SP/images/train-new-model.png b/sr-SP/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/sr-SP/images/train-new-model.png differ diff --git a/sr-SP/images/whatyouwillmake.gif b/sr-SP/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/sr-SP/images/whatyouwillmake.gif differ diff --git a/sr-SP/meta.yml b/sr-SP/meta.yml new file mode 100644 index 00000000..ae376c3a --- /dev/null +++ b/sr-SP/meta.yml @@ -0,0 +1,31 @@ +--- +title: Alien language +hero_image: images/banner.png +description: Create your own alien language to move a sprite +theme: orange +listed: true +copyedit: true +technologies: scratch +software: scratch +version: 4.0.0 +last_tested: '2019-06-04' +steps: + - + title: What you will make + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/sr-SP/resources/NEW Alien 1.srt b/sr-SP/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/sr-SP/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/sr-SP/resources/NEW Alien 2.srt b/sr-SP/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/sr-SP/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/sr-SP/resources/NEW Alien 3.srt b/sr-SP/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/sr-SP/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/sr-SP/resources/NEW Alien 4.srt b/sr-SP/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/sr-SP/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/sr-SP/resources/readme.txt b/sr-SP/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/sr-SP/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/sr-SP/step_1.md b/sr-SP/step_1.md new file mode 100644 index 00000000..aa0540f2 --- /dev/null +++ b/sr-SP/step_1.md @@ -0,0 +1,44 @@ +## What you will make + +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. + +You will need a **microphone**. + +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) + +--- collapse --- + +--- +title: Where are my voice recordings stored? +--- + +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). + +--- /collapse --- + +--- collapse --- +--- +title: No YouTube? Download the videos! +--- + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + + +--- /collapse --- + +--- collapse --- +--- +title: License +--- + +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +We'd like to thank Dale from machinelearningforkids.co.uk for all his work on this project. + +--- /collapse --- + + + + + diff --git a/sr-SP/step_2.md b/sr-SP/step_2.md new file mode 100644 index 00000000..e6930402 --- /dev/null +++ b/sr-SP/step_2.md @@ -0,0 +1,42 @@ +## Set up the project + + +
+ +
+ + +--- task --- + ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- + +--- task --- + ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) + +--- /task --- + +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- + + + diff --git a/sr-SP/step_3.md b/sr-SP/step_3.md new file mode 100644 index 00000000..bf9eb8ee --- /dev/null +++ b/sr-SP/step_3.md @@ -0,0 +1,49 @@ +## Invent two words + + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. + +--- task --- + ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". + +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. + +--- task --- + ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- + ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". + +--- /task --- diff --git a/sr-SP/step_4.md b/sr-SP/step_4.md new file mode 100644 index 00000000..785b11b0 --- /dev/null +++ b/sr-SP/step_4.md @@ -0,0 +1,36 @@ +## Train the model + + +
+ +
+ + +You have gathered the examples you need, now you will use these examples to train your machine learning model. + +--- task --- + ++ Click on **Back to project** in the top left-hand corner. + ++ Click on **Learn & Test**. + ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) + +--- /task --- + +Once the training has finished, you can test how well your model recognises the alien words you have invented. + +--- task --- + ++ Click the **Start listening** button, then say your alien word for "left". + +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) + ++ Test whether the model recognises your alien word for "right" as well. + +--- /task --- + +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. + + + diff --git a/sr-SP/step_5.md b/sr-SP/step_5.md new file mode 100644 index 00000000..c361be8e --- /dev/null +++ b/sr-SP/step_5.md @@ -0,0 +1,50 @@ +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. + +--- task --- + ++ Click on the **< Back to project** link. + ++ Click on **Make**. + ++ Click on **Scratch 3**. + ++ Click on **Open in Scratch 3**. + +--- /task --- + +--- task --- + ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. + +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) + +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) + +--- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/sr-SP/step_6.md b/sr-SP/step_6.md new file mode 100644 index 00000000..6ca94946 --- /dev/null +++ b/sr-SP/step_6.md @@ -0,0 +1,11 @@ +## Challenge + +--- challenge --- + +--- task --- + +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. + +--- /task --- + +--- /challenge --- diff --git a/sr-SP/step_7.md b/sr-SP/step_7.md new file mode 100644 index 00000000..d4b22e96 --- /dev/null +++ b/sr-SP/step_7.md @@ -0,0 +1,3 @@ +## What can you do now? + +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/sv-SE/images/8-background.png b/sv-SE/images/8-background.png new file mode 100644 index 00000000..d27ef20a Binary files /dev/null and b/sv-SE/images/8-background.png differ diff --git a/sv-SE/images/add-example.png b/sv-SE/images/add-example.png new file mode 100644 index 00000000..0fa70ce6 Binary files /dev/null and b/sv-SE/images/add-example.png differ diff --git a/sv-SE/images/add-new-blocks.png b/sv-SE/images/add-new-blocks.png new file mode 100644 index 00000000..a00e4d4c Binary files /dev/null and b/sv-SE/images/add-new-blocks.png differ diff --git a/sv-SE/images/alien-language.png b/sv-SE/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/sv-SE/images/alien-language.png differ diff --git a/sv-SE/images/allow-microphone.png b/sv-SE/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/sv-SE/images/allow-microphone.png differ diff --git a/sv-SE/images/background-noise.png b/sv-SE/images/background-noise.png new file mode 100644 index 00000000..3a924b00 Binary files /dev/null and b/sv-SE/images/background-noise.png differ diff --git a/sv-SE/images/banner.png b/sv-SE/images/banner.png new file mode 100644 index 00000000..a54fe151 Binary files /dev/null and b/sv-SE/images/banner.png differ diff --git a/sv-SE/images/control-alien-blocks.png b/sv-SE/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/sv-SE/images/control-alien-blocks.png differ diff --git a/sv-SE/images/create-project.png b/sv-SE/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/sv-SE/images/create-project.png differ diff --git a/sv-SE/images/new-blocks.png b/sv-SE/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/sv-SE/images/new-blocks.png differ diff --git a/sv-SE/images/project-train.png b/sv-SE/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/sv-SE/images/project-train.png differ diff --git a/sv-SE/images/projects-list.png b/sv-SE/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/sv-SE/images/projects-list.png differ diff --git a/sv-SE/images/record-button.png b/sv-SE/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/sv-SE/images/record-button.png differ diff --git a/sv-SE/images/save-example.png b/sv-SE/images/save-example.png new file mode 100644 index 00000000..0d1a1d48 Binary files /dev/null and b/sv-SE/images/save-example.png differ diff --git a/sv-SE/images/start-listening.png b/sv-SE/images/start-listening.png new file mode 100644 index 00000000..db113d03 Binary files /dev/null and b/sv-SE/images/start-listening.png differ diff --git a/sv-SE/images/test-new-blocks.png b/sv-SE/images/test-new-blocks.png new file mode 100644 index 00000000..5c4260bc Binary files /dev/null and b/sv-SE/images/test-new-blocks.png differ diff --git a/sv-SE/images/test-your-model.png b/sv-SE/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/sv-SE/images/test-your-model.png differ diff --git a/sv-SE/images/train-new-model.png b/sv-SE/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/sv-SE/images/train-new-model.png differ diff --git a/sv-SE/images/whatyouwillmake.gif b/sv-SE/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/sv-SE/images/whatyouwillmake.gif differ diff --git a/sv-SE/meta.yml b/sv-SE/meta.yml new file mode 100644 index 00000000..ae376c3a --- /dev/null +++ b/sv-SE/meta.yml @@ -0,0 +1,31 @@ +--- +title: Alien language +hero_image: images/banner.png +description: Create your own alien language to move a sprite +theme: orange +listed: true +copyedit: true +technologies: scratch +software: scratch +version: 4.0.0 +last_tested: '2019-06-04' +steps: + - + title: What you will make + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/sv-SE/resources/NEW Alien 1.srt b/sv-SE/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/sv-SE/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/sv-SE/resources/NEW Alien 2.srt b/sv-SE/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/sv-SE/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/sv-SE/resources/NEW Alien 3.srt b/sv-SE/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/sv-SE/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/sv-SE/resources/NEW Alien 4.srt b/sv-SE/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/sv-SE/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/sv-SE/resources/readme.txt b/sv-SE/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/sv-SE/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/sv-SE/step_1.md b/sv-SE/step_1.md new file mode 100644 index 00000000..aa0540f2 --- /dev/null +++ b/sv-SE/step_1.md @@ -0,0 +1,44 @@ +## What you will make + +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. + +You will need a **microphone**. + +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) + +--- collapse --- + +--- +title: Where are my voice recordings stored? +--- + +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). + +--- /collapse --- + +--- collapse --- +--- +title: No YouTube? Download the videos! +--- + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + + +--- /collapse --- + +--- collapse --- +--- +title: License +--- + +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +We'd like to thank Dale from machinelearningforkids.co.uk for all his work on this project. + +--- /collapse --- + + + + + diff --git a/sv-SE/step_2.md b/sv-SE/step_2.md new file mode 100644 index 00000000..e6930402 --- /dev/null +++ b/sv-SE/step_2.md @@ -0,0 +1,42 @@ +## Set up the project + + +
+ +
+ + +--- task --- + ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- + +--- task --- + ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) + +--- /task --- + +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- + + + diff --git a/sv-SE/step_3.md b/sv-SE/step_3.md new file mode 100644 index 00000000..bf9eb8ee --- /dev/null +++ b/sv-SE/step_3.md @@ -0,0 +1,49 @@ +## Invent two words + + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. + +--- task --- + ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". + +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. + +--- task --- + ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- + ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". + +--- /task --- diff --git a/sv-SE/step_4.md b/sv-SE/step_4.md new file mode 100644 index 00000000..785b11b0 --- /dev/null +++ b/sv-SE/step_4.md @@ -0,0 +1,36 @@ +## Train the model + + +
+ +
+ + +You have gathered the examples you need, now you will use these examples to train your machine learning model. + +--- task --- + ++ Click on **Back to project** in the top left-hand corner. + ++ Click on **Learn & Test**. + ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) + +--- /task --- + +Once the training has finished, you can test how well your model recognises the alien words you have invented. + +--- task --- + ++ Click the **Start listening** button, then say your alien word for "left". + +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) + ++ Test whether the model recognises your alien word for "right" as well. + +--- /task --- + +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. + + + diff --git a/sv-SE/step_5.md b/sv-SE/step_5.md new file mode 100644 index 00000000..c361be8e --- /dev/null +++ b/sv-SE/step_5.md @@ -0,0 +1,50 @@ +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. + +--- task --- + ++ Click on the **< Back to project** link. + ++ Click on **Make**. + ++ Click on **Scratch 3**. + ++ Click on **Open in Scratch 3**. + +--- /task --- + +--- task --- + ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. + +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) + +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) + +--- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/sv-SE/step_6.md b/sv-SE/step_6.md new file mode 100644 index 00000000..6ca94946 --- /dev/null +++ b/sv-SE/step_6.md @@ -0,0 +1,11 @@ +## Challenge + +--- challenge --- + +--- task --- + +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. + +--- /task --- + +--- /challenge --- diff --git a/sv-SE/step_7.md b/sv-SE/step_7.md new file mode 100644 index 00000000..d4b22e96 --- /dev/null +++ b/sv-SE/step_7.md @@ -0,0 +1,3 @@ +## What can you do now? + +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/tr-TR/images/8-background.png b/tr-TR/images/8-background.png new file mode 100644 index 00000000..d27ef20a Binary files /dev/null and b/tr-TR/images/8-background.png differ diff --git a/tr-TR/images/add-example.png b/tr-TR/images/add-example.png new file mode 100644 index 00000000..0fa70ce6 Binary files /dev/null and b/tr-TR/images/add-example.png differ diff --git a/tr-TR/images/add-new-blocks.png b/tr-TR/images/add-new-blocks.png new file mode 100644 index 00000000..a00e4d4c Binary files /dev/null and b/tr-TR/images/add-new-blocks.png differ diff --git a/tr-TR/images/alien-language.png b/tr-TR/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/tr-TR/images/alien-language.png differ diff --git a/tr-TR/images/allow-microphone.png b/tr-TR/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/tr-TR/images/allow-microphone.png differ diff --git a/tr-TR/images/background-noise.png b/tr-TR/images/background-noise.png new file mode 100644 index 00000000..3a924b00 Binary files /dev/null and b/tr-TR/images/background-noise.png differ diff --git a/tr-TR/images/banner.png b/tr-TR/images/banner.png new file mode 100644 index 00000000..a54fe151 Binary files /dev/null and b/tr-TR/images/banner.png differ diff --git a/tr-TR/images/control-alien-blocks.png b/tr-TR/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/tr-TR/images/control-alien-blocks.png differ diff --git a/tr-TR/images/create-project.png b/tr-TR/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/tr-TR/images/create-project.png differ diff --git a/tr-TR/images/new-blocks.png b/tr-TR/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/tr-TR/images/new-blocks.png differ diff --git a/tr-TR/images/project-train.png b/tr-TR/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/tr-TR/images/project-train.png differ diff --git a/tr-TR/images/projects-list.png b/tr-TR/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/tr-TR/images/projects-list.png differ diff --git a/tr-TR/images/record-button.png b/tr-TR/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/tr-TR/images/record-button.png differ diff --git a/tr-TR/images/save-example.png b/tr-TR/images/save-example.png new file mode 100644 index 00000000..0d1a1d48 Binary files /dev/null and b/tr-TR/images/save-example.png differ diff --git a/tr-TR/images/start-listening.png b/tr-TR/images/start-listening.png new file mode 100644 index 00000000..db113d03 Binary files /dev/null and b/tr-TR/images/start-listening.png differ diff --git a/tr-TR/images/test-new-blocks.png b/tr-TR/images/test-new-blocks.png new file mode 100644 index 00000000..5c4260bc Binary files /dev/null and b/tr-TR/images/test-new-blocks.png differ diff --git a/tr-TR/images/test-your-model.png b/tr-TR/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/tr-TR/images/test-your-model.png differ diff --git a/tr-TR/images/train-new-model.png b/tr-TR/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/tr-TR/images/train-new-model.png differ diff --git a/tr-TR/images/whatyouwillmake.gif b/tr-TR/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/tr-TR/images/whatyouwillmake.gif differ diff --git a/tr-TR/meta.yml b/tr-TR/meta.yml new file mode 100644 index 00000000..ae376c3a --- /dev/null +++ b/tr-TR/meta.yml @@ -0,0 +1,31 @@ +--- +title: Alien language +hero_image: images/banner.png +description: Create your own alien language to move a sprite +theme: orange +listed: true +copyedit: true +technologies: scratch +software: scratch +version: 4.0.0 +last_tested: '2019-06-04' +steps: + - + title: What you will make + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/tr-TR/resources/NEW Alien 1.srt b/tr-TR/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/tr-TR/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/tr-TR/resources/NEW Alien 2.srt b/tr-TR/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/tr-TR/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/tr-TR/resources/NEW Alien 3.srt b/tr-TR/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/tr-TR/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/tr-TR/resources/NEW Alien 4.srt b/tr-TR/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/tr-TR/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/tr-TR/resources/readme.txt b/tr-TR/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/tr-TR/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/tr-TR/step_1.md b/tr-TR/step_1.md new file mode 100644 index 00000000..aa0540f2 --- /dev/null +++ b/tr-TR/step_1.md @@ -0,0 +1,44 @@ +## What you will make + +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. + +You will need a **microphone**. + +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) + +--- collapse --- + +--- +title: Where are my voice recordings stored? +--- + +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). + +--- /collapse --- + +--- collapse --- +--- +title: No YouTube? Download the videos! +--- + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + + +--- /collapse --- + +--- collapse --- +--- +title: License +--- + +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +We'd like to thank Dale from machinelearningforkids.co.uk for all his work on this project. + +--- /collapse --- + + + + + diff --git a/tr-TR/step_2.md b/tr-TR/step_2.md new file mode 100644 index 00000000..e6930402 --- /dev/null +++ b/tr-TR/step_2.md @@ -0,0 +1,42 @@ +## Set up the project + + +
+ +
+ + +--- task --- + ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- + +--- task --- + ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) + +--- /task --- + +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- + + + diff --git a/tr-TR/step_3.md b/tr-TR/step_3.md new file mode 100644 index 00000000..bf9eb8ee --- /dev/null +++ b/tr-TR/step_3.md @@ -0,0 +1,49 @@ +## Invent two words + + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. + +--- task --- + ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". + +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. + +--- task --- + ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- + ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". + +--- /task --- diff --git a/tr-TR/step_4.md b/tr-TR/step_4.md new file mode 100644 index 00000000..785b11b0 --- /dev/null +++ b/tr-TR/step_4.md @@ -0,0 +1,36 @@ +## Train the model + + +
+ +
+ + +You have gathered the examples you need, now you will use these examples to train your machine learning model. + +--- task --- + ++ Click on **Back to project** in the top left-hand corner. + ++ Click on **Learn & Test**. + ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) + +--- /task --- + +Once the training has finished, you can test how well your model recognises the alien words you have invented. + +--- task --- + ++ Click the **Start listening** button, then say your alien word for "left". + +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) + ++ Test whether the model recognises your alien word for "right" as well. + +--- /task --- + +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. + + + diff --git a/tr-TR/step_5.md b/tr-TR/step_5.md new file mode 100644 index 00000000..c361be8e --- /dev/null +++ b/tr-TR/step_5.md @@ -0,0 +1,50 @@ +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. + +--- task --- + ++ Click on the **< Back to project** link. + ++ Click on **Make**. + ++ Click on **Scratch 3**. + ++ Click on **Open in Scratch 3**. + +--- /task --- + +--- task --- + ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. + +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) + +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) + +--- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/tr-TR/step_6.md b/tr-TR/step_6.md new file mode 100644 index 00000000..6ca94946 --- /dev/null +++ b/tr-TR/step_6.md @@ -0,0 +1,11 @@ +## Challenge + +--- challenge --- + +--- task --- + +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. + +--- /task --- + +--- /challenge --- diff --git a/tr-TR/step_7.md b/tr-TR/step_7.md new file mode 100644 index 00000000..d4b22e96 --- /dev/null +++ b/tr-TR/step_7.md @@ -0,0 +1,3 @@ +## What can you do now? + +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/uk-UA/meta.yml b/uk-UA/meta.yml index 8b658730..645356e3 100644 --- a/uk-UA/meta.yml +++ b/uk-UA/meta.yml @@ -10,16 +10,22 @@ software: scratch version: 4.0.0 last_tested: '2019-06-04' steps: -- title: Що ти зробиш -- title: Створи проєкт -- title: Вигадай два слова - completion: - - engaged -- title: Натренуй модель -- title: Контролюй інопланетянина - completion: - - internal -- title: 'Додаткове завдання' - challenge: true - completion: - - external + - + title: Що ти зробиш + - + title: Створи проєкт + - + title: Вигадай два слова + completion: + - engaged + - + title: Натренуй модель + - + title: Контролюй інопланетянина + completion: + - internal + - + title: 'Додаткове завдання' + challenge: true + completion: + - external diff --git a/uk-UA/step_1.md b/uk-UA/step_1.md index 7acb0d44..d7b32e04 100644 --- a/uk-UA/step_1.md +++ b/uk-UA/step_1.md @@ -22,7 +22,7 @@ title: Де зберігатимуться записи мого голосу? title: Немає доступу до YouTube? Завантаж відео! --- -Ти можеш [завантажити усі відео для цього проєкту](https://rpf.io/p/uk-UA/alien-language-go){:target="_blank"}. +Ти можеш [завантажити усі відео для цього проєкту](https://rpf.io/p/en/alien-language-go){:target="_blank"}. --- /collapse --- diff --git a/uk-UA/step_7.md b/uk-UA/step_7.md index f0a5bbac..a0de5f0c 100644 --- a/uk-UA/step_7.md +++ b/uk-UA/step_7.md @@ -1,3 +1,3 @@ ## Що робити далі? -Є багато інших моделей машинного навчання і проєктів штучного інтелекту в напрямку [Машинне навчання зі Скретчем](https://projects.raspberrypi.org/uk-UA/pathways/scratch-machine-learning). +Є багато інших моделей машинного навчання і проєктів штучного інтелекту в напрямку [Машинне навчання зі Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning). diff --git a/vi-VN/images/8-background.png b/vi-VN/images/8-background.png new file mode 100644 index 00000000..d27ef20a Binary files /dev/null and b/vi-VN/images/8-background.png differ diff --git a/vi-VN/images/add-example.png b/vi-VN/images/add-example.png new file mode 100644 index 00000000..0fa70ce6 Binary files /dev/null and b/vi-VN/images/add-example.png differ diff --git a/vi-VN/images/add-new-blocks.png b/vi-VN/images/add-new-blocks.png new file mode 100644 index 00000000..a00e4d4c Binary files /dev/null and b/vi-VN/images/add-new-blocks.png differ diff --git a/vi-VN/images/alien-language.png b/vi-VN/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/vi-VN/images/alien-language.png differ diff --git a/vi-VN/images/allow-microphone.png b/vi-VN/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/vi-VN/images/allow-microphone.png differ diff --git a/vi-VN/images/background-noise.png b/vi-VN/images/background-noise.png new file mode 100644 index 00000000..3a924b00 Binary files /dev/null and b/vi-VN/images/background-noise.png differ diff --git a/vi-VN/images/banner.png b/vi-VN/images/banner.png new file mode 100644 index 00000000..a54fe151 Binary files /dev/null and b/vi-VN/images/banner.png differ diff --git a/vi-VN/images/control-alien-blocks.png b/vi-VN/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/vi-VN/images/control-alien-blocks.png differ diff --git a/vi-VN/images/create-project.png b/vi-VN/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/vi-VN/images/create-project.png differ diff --git a/vi-VN/images/new-blocks.png b/vi-VN/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/vi-VN/images/new-blocks.png differ diff --git a/vi-VN/images/project-train.png b/vi-VN/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/vi-VN/images/project-train.png differ diff --git a/vi-VN/images/projects-list.png b/vi-VN/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/vi-VN/images/projects-list.png differ diff --git a/vi-VN/images/record-button.png b/vi-VN/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/vi-VN/images/record-button.png differ diff --git a/vi-VN/images/save-example.png b/vi-VN/images/save-example.png new file mode 100644 index 00000000..0d1a1d48 Binary files /dev/null and b/vi-VN/images/save-example.png differ diff --git a/vi-VN/images/start-listening.png b/vi-VN/images/start-listening.png new file mode 100644 index 00000000..db113d03 Binary files /dev/null and b/vi-VN/images/start-listening.png differ diff --git a/vi-VN/images/test-new-blocks.png b/vi-VN/images/test-new-blocks.png new file mode 100644 index 00000000..5c4260bc Binary files /dev/null and b/vi-VN/images/test-new-blocks.png differ diff --git a/vi-VN/images/test-your-model.png b/vi-VN/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/vi-VN/images/test-your-model.png differ diff --git a/vi-VN/images/train-new-model.png b/vi-VN/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/vi-VN/images/train-new-model.png differ diff --git a/vi-VN/images/whatyouwillmake.gif b/vi-VN/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/vi-VN/images/whatyouwillmake.gif differ diff --git a/vi-VN/meta.yml b/vi-VN/meta.yml new file mode 100644 index 00000000..ae376c3a --- /dev/null +++ b/vi-VN/meta.yml @@ -0,0 +1,31 @@ +--- +title: Alien language +hero_image: images/banner.png +description: Create your own alien language to move a sprite +theme: orange +listed: true +copyedit: true +technologies: scratch +software: scratch +version: 4.0.0 +last_tested: '2019-06-04' +steps: + - + title: What you will make + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/vi-VN/resources/NEW Alien 1.srt b/vi-VN/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/vi-VN/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/vi-VN/resources/NEW Alien 2.srt b/vi-VN/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/vi-VN/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/vi-VN/resources/NEW Alien 3.srt b/vi-VN/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/vi-VN/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/vi-VN/resources/NEW Alien 4.srt b/vi-VN/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/vi-VN/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/vi-VN/resources/readme.txt b/vi-VN/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/vi-VN/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/vi-VN/step_1.md b/vi-VN/step_1.md new file mode 100644 index 00000000..aa0540f2 --- /dev/null +++ b/vi-VN/step_1.md @@ -0,0 +1,44 @@ +## What you will make + +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. + +You will need a **microphone**. + +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) + +--- collapse --- + +--- +title: Where are my voice recordings stored? +--- + +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). + +--- /collapse --- + +--- collapse --- +--- +title: No YouTube? Download the videos! +--- + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + + +--- /collapse --- + +--- collapse --- +--- +title: License +--- + +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +We'd like to thank Dale from machinelearningforkids.co.uk for all his work on this project. + +--- /collapse --- + + + + + diff --git a/vi-VN/step_2.md b/vi-VN/step_2.md new file mode 100644 index 00000000..e6930402 --- /dev/null +++ b/vi-VN/step_2.md @@ -0,0 +1,42 @@ +## Set up the project + + +
+ +
+ + +--- task --- + ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- + +--- task --- + ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) + +--- /task --- + +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- + + + diff --git a/vi-VN/step_3.md b/vi-VN/step_3.md new file mode 100644 index 00000000..bf9eb8ee --- /dev/null +++ b/vi-VN/step_3.md @@ -0,0 +1,49 @@ +## Invent two words + + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. + +--- task --- + ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". + +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. + +--- task --- + ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- + ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". + +--- /task --- diff --git a/vi-VN/step_4.md b/vi-VN/step_4.md new file mode 100644 index 00000000..785b11b0 --- /dev/null +++ b/vi-VN/step_4.md @@ -0,0 +1,36 @@ +## Train the model + + +
+ +
+ + +You have gathered the examples you need, now you will use these examples to train your machine learning model. + +--- task --- + ++ Click on **Back to project** in the top left-hand corner. + ++ Click on **Learn & Test**. + ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) + +--- /task --- + +Once the training has finished, you can test how well your model recognises the alien words you have invented. + +--- task --- + ++ Click the **Start listening** button, then say your alien word for "left". + +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) + ++ Test whether the model recognises your alien word for "right" as well. + +--- /task --- + +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. + + + diff --git a/vi-VN/step_5.md b/vi-VN/step_5.md new file mode 100644 index 00000000..c361be8e --- /dev/null +++ b/vi-VN/step_5.md @@ -0,0 +1,50 @@ +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. + +--- task --- + ++ Click on the **< Back to project** link. + ++ Click on **Make**. + ++ Click on **Scratch 3**. + ++ Click on **Open in Scratch 3**. + +--- /task --- + +--- task --- + ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. + +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) + +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) + +--- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/vi-VN/step_6.md b/vi-VN/step_6.md new file mode 100644 index 00000000..6ca94946 --- /dev/null +++ b/vi-VN/step_6.md @@ -0,0 +1,11 @@ +## Challenge + +--- challenge --- + +--- task --- + +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. + +--- /task --- + +--- /challenge --- diff --git a/vi-VN/step_7.md b/vi-VN/step_7.md new file mode 100644 index 00000000..d4b22e96 --- /dev/null +++ b/vi-VN/step_7.md @@ -0,0 +1,3 @@ +## What can you do now? + +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/zh-CN/images/8-background.png b/zh-CN/images/8-background.png new file mode 100644 index 00000000..d27ef20a Binary files /dev/null and b/zh-CN/images/8-background.png differ diff --git a/zh-CN/images/add-example.png b/zh-CN/images/add-example.png new file mode 100644 index 00000000..0fa70ce6 Binary files /dev/null and b/zh-CN/images/add-example.png differ diff --git a/zh-CN/images/add-new-blocks.png b/zh-CN/images/add-new-blocks.png new file mode 100644 index 00000000..a00e4d4c Binary files /dev/null and b/zh-CN/images/add-new-blocks.png differ diff --git a/zh-CN/images/alien-language.png b/zh-CN/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/zh-CN/images/alien-language.png differ diff --git a/zh-CN/images/allow-microphone.png b/zh-CN/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/zh-CN/images/allow-microphone.png differ diff --git a/zh-CN/images/background-noise.png b/zh-CN/images/background-noise.png new file mode 100644 index 00000000..3a924b00 Binary files /dev/null and b/zh-CN/images/background-noise.png differ diff --git a/zh-CN/images/banner.png b/zh-CN/images/banner.png new file mode 100644 index 00000000..a54fe151 Binary files /dev/null and b/zh-CN/images/banner.png differ diff --git a/zh-CN/images/control-alien-blocks.png b/zh-CN/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/zh-CN/images/control-alien-blocks.png differ diff --git a/zh-CN/images/create-project.png b/zh-CN/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/zh-CN/images/create-project.png differ diff --git a/zh-CN/images/new-blocks.png b/zh-CN/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/zh-CN/images/new-blocks.png differ diff --git a/zh-CN/images/project-train.png b/zh-CN/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/zh-CN/images/project-train.png differ diff --git a/zh-CN/images/projects-list.png b/zh-CN/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/zh-CN/images/projects-list.png differ diff --git a/zh-CN/images/record-button.png b/zh-CN/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/zh-CN/images/record-button.png differ diff --git a/zh-CN/images/save-example.png b/zh-CN/images/save-example.png new file mode 100644 index 00000000..0d1a1d48 Binary files /dev/null and b/zh-CN/images/save-example.png differ diff --git a/zh-CN/images/start-listening.png b/zh-CN/images/start-listening.png new file mode 100644 index 00000000..db113d03 Binary files /dev/null and b/zh-CN/images/start-listening.png differ diff --git a/zh-CN/images/test-new-blocks.png b/zh-CN/images/test-new-blocks.png new file mode 100644 index 00000000..5c4260bc Binary files /dev/null and b/zh-CN/images/test-new-blocks.png differ diff --git a/zh-CN/images/test-your-model.png b/zh-CN/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/zh-CN/images/test-your-model.png differ diff --git a/zh-CN/images/train-new-model.png b/zh-CN/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/zh-CN/images/train-new-model.png differ diff --git a/zh-CN/images/whatyouwillmake.gif b/zh-CN/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/zh-CN/images/whatyouwillmake.gif differ diff --git a/zh-CN/meta.yml b/zh-CN/meta.yml new file mode 100644 index 00000000..ae376c3a --- /dev/null +++ b/zh-CN/meta.yml @@ -0,0 +1,31 @@ +--- +title: Alien language +hero_image: images/banner.png +description: Create your own alien language to move a sprite +theme: orange +listed: true +copyedit: true +technologies: scratch +software: scratch +version: 4.0.0 +last_tested: '2019-06-04' +steps: + - + title: What you will make + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/zh-CN/resources/NEW Alien 1.srt b/zh-CN/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/zh-CN/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/zh-CN/resources/NEW Alien 2.srt b/zh-CN/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/zh-CN/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/zh-CN/resources/NEW Alien 3.srt b/zh-CN/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/zh-CN/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/zh-CN/resources/NEW Alien 4.srt b/zh-CN/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/zh-CN/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/zh-CN/resources/readme.txt b/zh-CN/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/zh-CN/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/zh-CN/step_1.md b/zh-CN/step_1.md new file mode 100644 index 00000000..aa0540f2 --- /dev/null +++ b/zh-CN/step_1.md @@ -0,0 +1,44 @@ +## What you will make + +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. + +You will need a **microphone**. + +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) + +--- collapse --- + +--- +title: Where are my voice recordings stored? +--- + +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). + +--- /collapse --- + +--- collapse --- +--- +title: No YouTube? Download the videos! +--- + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + + +--- /collapse --- + +--- collapse --- +--- +title: License +--- + +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +We'd like to thank Dale from machinelearningforkids.co.uk for all his work on this project. + +--- /collapse --- + + + + + diff --git a/zh-CN/step_2.md b/zh-CN/step_2.md new file mode 100644 index 00000000..e6930402 --- /dev/null +++ b/zh-CN/step_2.md @@ -0,0 +1,42 @@ +## Set up the project + + +
+ +
+ + +--- task --- + ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- + +--- task --- + ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) + +--- /task --- + +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- + + + diff --git a/zh-CN/step_3.md b/zh-CN/step_3.md new file mode 100644 index 00000000..bf9eb8ee --- /dev/null +++ b/zh-CN/step_3.md @@ -0,0 +1,49 @@ +## Invent two words + + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. + +--- task --- + ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". + +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. + +--- task --- + ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- + ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". + +--- /task --- diff --git a/zh-CN/step_4.md b/zh-CN/step_4.md new file mode 100644 index 00000000..785b11b0 --- /dev/null +++ b/zh-CN/step_4.md @@ -0,0 +1,36 @@ +## Train the model + + +
+ +
+ + +You have gathered the examples you need, now you will use these examples to train your machine learning model. + +--- task --- + ++ Click on **Back to project** in the top left-hand corner. + ++ Click on **Learn & Test**. + ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) + +--- /task --- + +Once the training has finished, you can test how well your model recognises the alien words you have invented. + +--- task --- + ++ Click the **Start listening** button, then say your alien word for "left". + +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) + ++ Test whether the model recognises your alien word for "right" as well. + +--- /task --- + +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. + + + diff --git a/zh-CN/step_5.md b/zh-CN/step_5.md new file mode 100644 index 00000000..c361be8e --- /dev/null +++ b/zh-CN/step_5.md @@ -0,0 +1,50 @@ +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. + +--- task --- + ++ Click on the **< Back to project** link. + ++ Click on **Make**. + ++ Click on **Scratch 3**. + ++ Click on **Open in Scratch 3**. + +--- /task --- + +--- task --- + ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. + +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) + +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) + +--- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/zh-CN/step_6.md b/zh-CN/step_6.md new file mode 100644 index 00000000..6ca94946 --- /dev/null +++ b/zh-CN/step_6.md @@ -0,0 +1,11 @@ +## Challenge + +--- challenge --- + +--- task --- + +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. + +--- /task --- + +--- /challenge --- diff --git a/zh-CN/step_7.md b/zh-CN/step_7.md new file mode 100644 index 00000000..d4b22e96 --- /dev/null +++ b/zh-CN/step_7.md @@ -0,0 +1,3 @@ +## What can you do now? + +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/zh-TW/images/8-background.png b/zh-TW/images/8-background.png new file mode 100644 index 00000000..d27ef20a Binary files /dev/null and b/zh-TW/images/8-background.png differ diff --git a/zh-TW/images/add-example.png b/zh-TW/images/add-example.png new file mode 100644 index 00000000..0fa70ce6 Binary files /dev/null and b/zh-TW/images/add-example.png differ diff --git a/zh-TW/images/add-new-blocks.png b/zh-TW/images/add-new-blocks.png new file mode 100644 index 00000000..a00e4d4c Binary files /dev/null and b/zh-TW/images/add-new-blocks.png differ diff --git a/zh-TW/images/alien-language.png b/zh-TW/images/alien-language.png new file mode 100644 index 00000000..17c4c626 Binary files /dev/null and b/zh-TW/images/alien-language.png differ diff --git a/zh-TW/images/allow-microphone.png b/zh-TW/images/allow-microphone.png new file mode 100644 index 00000000..ea434669 Binary files /dev/null and b/zh-TW/images/allow-microphone.png differ diff --git a/zh-TW/images/background-noise.png b/zh-TW/images/background-noise.png new file mode 100644 index 00000000..3a924b00 Binary files /dev/null and b/zh-TW/images/background-noise.png differ diff --git a/zh-TW/images/banner.png b/zh-TW/images/banner.png new file mode 100644 index 00000000..a54fe151 Binary files /dev/null and b/zh-TW/images/banner.png differ diff --git a/zh-TW/images/control-alien-blocks.png b/zh-TW/images/control-alien-blocks.png new file mode 100644 index 00000000..03346767 Binary files /dev/null and b/zh-TW/images/control-alien-blocks.png differ diff --git a/zh-TW/images/create-project.png b/zh-TW/images/create-project.png new file mode 100644 index 00000000..3f97c43e Binary files /dev/null and b/zh-TW/images/create-project.png differ diff --git a/zh-TW/images/new-blocks.png b/zh-TW/images/new-blocks.png new file mode 100644 index 00000000..2fece8f9 Binary files /dev/null and b/zh-TW/images/new-blocks.png differ diff --git a/zh-TW/images/project-train.png b/zh-TW/images/project-train.png new file mode 100644 index 00000000..1b67cd70 Binary files /dev/null and b/zh-TW/images/project-train.png differ diff --git a/zh-TW/images/projects-list.png b/zh-TW/images/projects-list.png new file mode 100644 index 00000000..a9f2320c Binary files /dev/null and b/zh-TW/images/projects-list.png differ diff --git a/zh-TW/images/record-button.png b/zh-TW/images/record-button.png new file mode 100644 index 00000000..4db43f09 Binary files /dev/null and b/zh-TW/images/record-button.png differ diff --git a/zh-TW/images/save-example.png b/zh-TW/images/save-example.png new file mode 100644 index 00000000..0d1a1d48 Binary files /dev/null and b/zh-TW/images/save-example.png differ diff --git a/zh-TW/images/start-listening.png b/zh-TW/images/start-listening.png new file mode 100644 index 00000000..db113d03 Binary files /dev/null and b/zh-TW/images/start-listening.png differ diff --git a/zh-TW/images/test-new-blocks.png b/zh-TW/images/test-new-blocks.png new file mode 100644 index 00000000..5c4260bc Binary files /dev/null and b/zh-TW/images/test-new-blocks.png differ diff --git a/zh-TW/images/test-your-model.png b/zh-TW/images/test-your-model.png new file mode 100644 index 00000000..84c66521 Binary files /dev/null and b/zh-TW/images/test-your-model.png differ diff --git a/zh-TW/images/train-new-model.png b/zh-TW/images/train-new-model.png new file mode 100644 index 00000000..62ce33f7 Binary files /dev/null and b/zh-TW/images/train-new-model.png differ diff --git a/zh-TW/images/whatyouwillmake.gif b/zh-TW/images/whatyouwillmake.gif new file mode 100644 index 00000000..daf455fb Binary files /dev/null and b/zh-TW/images/whatyouwillmake.gif differ diff --git a/zh-TW/meta.yml b/zh-TW/meta.yml new file mode 100644 index 00000000..85acbc33 --- /dev/null +++ b/zh-TW/meta.yml @@ -0,0 +1,31 @@ +--- +title: 外星語 +hero_image: images/banner.png +description: 創建自己的外星語來移動精靈 +theme: orange +listed: true +copyedit: true +technologies: scratch +software: scratch +version: 4.0.0 +last_tested: '2019-06-04' +steps: + - + title: 你會做出: + - + title: Set up the project + - + title: Invent two words + completion: + - engaged + - + title: Train the model + - + title: Control the alien + completion: + - internal + - + title: 'Challenge' + challenge: true + completion: + - external diff --git a/zh-TW/resources/NEW Alien 1.srt b/zh-TW/resources/NEW Alien 1.srt new file mode 100644 index 00000000..1d35e240 --- /dev/null +++ b/zh-TW/resources/NEW Alien 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,760 --> 00:00:11,520 +Go to rpf.io/ml4k and click 'Get started'. + +2 +00:00:11,520 --> 00:00:15,560 +Click 'Try it now'. + +3 +00:00:15,560 --> 00:00:20,560 +Add a new project called 'Alien language'. + +4 +00:00:20,560 --> 00:00:28,280 +Set the project type to 'recognising sound,'  +and the storage to 'in your browser'. + +5 +00:00:28,280 --> 00:00:34,840 +Create the project, then  +click on the project title. + +6 +00:00:34,840 --> 00:00:40,000 +Now click on 'Train'. + diff --git a/zh-TW/resources/NEW Alien 2.srt b/zh-TW/resources/NEW Alien 2.srt new file mode 100644 index 00000000..a1d756b0 --- /dev/null +++ b/zh-TW/resources/NEW Alien 2.srt @@ -0,0 +1,25 @@ +1 +00:00:03,600 --> 00:00:07,160 +Allow the site to access  +your microphone if it asks. + +2 +00:00:07,160 --> 00:00:12,440 +Record a sample of background  +noise - so just don't say anything. + +3 +00:00:12,440 --> 00:00:17,800 +Now repeat that until you have  +eight samples of background noise. + +4 +00:00:17,800 --> 00:00:27,040 +Add a label for left, and record your  +made up alien word for left, eight times. + +5 +00:00:27,040 --> 00:00:38,120 +Next, add a label for right and record  +a different made up word, eight times. + diff --git a/zh-TW/resources/NEW Alien 3.srt b/zh-TW/resources/NEW Alien 3.srt new file mode 100644 index 00000000..5a822bf9 --- /dev/null +++ b/zh-TW/resources/NEW Alien 3.srt @@ -0,0 +1,16 @@ +1 +00:00:04,160 --> 00:00:11,320 +Click 'Back', then click on 'Learn & Test'. + +2 +00:00:11,320 --> 00:00:15,520 +It's time to train your model! + +3 +00:00:15,520 --> 00:00:19,160 +Test the model by saying one of your words: + +4 +00:00:19,160 --> 00:00:27,520 +Bloop! + diff --git a/zh-TW/resources/NEW Alien 4.srt b/zh-TW/resources/NEW Alien 4.srt new file mode 100644 index 00000000..4571f30d --- /dev/null +++ b/zh-TW/resources/NEW Alien 4.srt @@ -0,0 +1,35 @@ +1 +00:00:04,680 --> 00:00:08,640 +Now click 'Back' again, and  +this time choose 'Make'. + +2 +00:00:08,640 --> 00:00:14,160 +Let's use the model in Scratch! + +3 +00:00:14,160 --> 00:00:21,920 +Go to 'Project templates' and select  +the template for 'Alien language'. + +4 +00:00:21,920 --> 00:00:24,360 +Some code has been added for you. + +5 +00:00:24,360 --> 00:00:29,960 +Drag the code blocks to make  +the alien move when you speak. + +6 +00:00:36,800 --> 00:00:40,800 +Let's test it out. + +7 +00:00:40,800 --> 00:00:43,840 +Bloop! + +8 +00:00:43,840 --> 00:00:50,200 +Wow! + diff --git a/zh-TW/resources/readme.txt b/zh-TW/resources/readme.txt new file mode 100644 index 00000000..0e0956ce --- /dev/null +++ b/zh-TW/resources/readme.txt @@ -0,0 +1 @@ +To watch a video with subtitles on VLC (videolan.org), ensure the video file and subtitle file are in the same folder and have the exact same name (e.g., video.mp4 and video.srt). Open the video in VLC, and it will automatically load the subtitles. If the subtitles don’t appear, right-click the video screen, go to **Subtitle**, then **Add Subtitle File**, and select the correct .srt file. Enjoy watching with subtitles! \ No newline at end of file diff --git a/zh-TW/step_1.md b/zh-TW/step_1.md new file mode 100644 index 00000000..904290a3 --- /dev/null +++ b/zh-TW/step_1.md @@ -0,0 +1,44 @@ +## 你會做出: + +Train a machine learning model to recognise an alien language and use it in Scratch to control an alien. + +You will need a **microphone**. + +![An alien moving left and right with the commands Eek and Bop](images/whatyouwillmake.gif) + +--- collapse --- + +--- +title: Where are my voice recordings stored? +--- + +- This project uses a technology called 'machine learning'. Machine learning systems are trained using a large amount of data. +- This project does not require you to create an account or log in. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). + +--- /collapse --- + +--- collapse --- +--- +title: No YouTube? Download the videos! +--- + +You can [download all the videos for this project](https://rpf.io/p/en/alien-language-go){:target="_blank"}. + + +--- /collapse --- + +--- collapse --- +--- +title: License +--- + +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +我們要感謝 machinelearningforkids.co.uk 的 Dale 在此專案上所做的所有工作。 + +--- /collapse --- + + + + + diff --git a/zh-TW/step_2.md b/zh-TW/step_2.md new file mode 100644 index 00000000..e6930402 --- /dev/null +++ b/zh-TW/step_2.md @@ -0,0 +1,42 @@ +## Set up the project + + +
+ +
+ + +--- task --- + ++ Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + ++ Click on **Get started**. + ++ Click on **Try it now**. + +--- /task --- + +--- task --- + ++ Click on **Projects** in the menu bar at the top. + ++ Click on the **+ Add a new project** button. + ++ Name your project `Alien language` and set it to learn to recognise **sounds**, and store data **in your web browser**. Then click on **Create**. ![Creating a project](images/create-project.png) + ++ You should now see 'Alien language' in the projects list. Click on the project. ![Project list with alien language listed](images/projects-list.png) + +--- /task --- + +--- task --- + ++ Click on the **Train** button. ![Project main menu with an arrow pointing to the train button](images/project-train.png) + ++ If you see a pop-up message asking to use the microphone, click on **Allow on every visit**. + +![Popup asking you to allow the microphone, with an arrow pointing to allow every visit](images/allow-microphone.png) + +--- /task --- + + + diff --git a/zh-TW/step_3.md b/zh-TW/step_3.md new file mode 100644 index 00000000..bf9eb8ee --- /dev/null +++ b/zh-TW/step_3.md @@ -0,0 +1,49 @@ +## Invent two words + + +
+ +
+ + +First, you will collect samples of background noise. This will help your machine learning model to tell the difference between the sounds that you will train it to recognise, and the background noise where you are. + +--- task --- + ++ Click the **+ Add example** button in **background noise**. + ++ Click on the microphone, but don't say anything. Record 2 seconds of background noise. ![Arrow pointing to microphone button](images/record-button.png) + ++ Click the **Add** button to save your recording. + +--- /task --- + +--- task --- + ++ Repeat those steps until you have **at least eight examples** of background noise. ![Bucket filled with 8 background examples](images/8-background.png) + +--- /task --- + +Invent two alien words — a word that means "left" and a word that means "right". + +Now you will record eight examples of each word so that your machine learning model can learn to recognise them. + +--- task --- + ++ Click on **+ Add new label** on the top right of the screen and add a label called `left`. + +--- /task --- + +--- task --- + ++ Click on **+ Add example** inside the box for the new `left` label, and record yourself saying your alien word for "left". + ++ Repeat until you have recorded **at least eight examples**. + +--- /task --- + +--- task --- + ++ Click on **+ Add new label** to create another label called `right` and record eight examples of your alien word for "right". + +--- /task --- diff --git a/zh-TW/step_4.md b/zh-TW/step_4.md new file mode 100644 index 00000000..785b11b0 --- /dev/null +++ b/zh-TW/step_4.md @@ -0,0 +1,36 @@ +## Train the model + + +
+ +
+ + +You have gathered the examples you need, now you will use these examples to train your machine learning model. + +--- task --- + ++ Click on **Back to project** in the top left-hand corner. + ++ Click on **Learn & Test**. + ++ Click on the button labelled **Train new machine learning model**. This may take a few minutes to complete. ![Arrow pointing to button saying Train new machine learning model](images/train-new-model.png) + +--- /task --- + +Once the training has finished, you can test how well your model recognises the alien words you have invented. + +--- task --- + ++ Click the **Start listening** button, then say your alien word for "left". + +If your machine learning model recognises it, it will display what it predicts you said. ![Arrow pointing to the start listening button](images/test-your-model.png) + ++ Test whether the model recognises your alien word for "right" as well. + +--- /task --- + +If you are not happy with how the model is working, go back to the **Train** page and add more examples, then train your model again. + + + diff --git a/zh-TW/step_5.md b/zh-TW/step_5.md new file mode 100644 index 00000000..c361be8e --- /dev/null +++ b/zh-TW/step_5.md @@ -0,0 +1,50 @@ +## Control the alien + + +
+ +
+ + +Now that your model can distinguish between words, you can use it in a Scratch program to control an alien. + +--- task --- + ++ Click on the **< Back to project** link. + ++ Click on **Make**. + ++ Click on **Scratch 3**. + ++ Click on **Open in Scratch 3**. + +--- /task --- + +--- task --- + ++ Click on **Project templates** at the top and select the 'Alien language' project to load the alien sprite, which already has some code added. + +![Alien language project is selected in the Scratch templates](images/alien-language.png) + +--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. This project template also contains special 'walk left' and 'walk right' blocks inside "My Blocks". Find both at the bottom of the blocks list. + +![Alien language blocks shown in the menu underneath My Blocks and Images](images/new-blocks.png) + +--- task --- + ++ Make sure you have the **Alien** sprite selected, then click on the **Code** tab and add this code. (Keep the code that is already there!) ![Add code to control the alien: When flag clicked, start listening. When I hear left, say left and walk left. When I hear right, say right and walk right.](images/control-alien-blocks.png) + +--- /task --- + +--- task --- + ++ Click the **green flag** and say your alien words for "left" and "right". Check that the alien moves the way you expected. + +--- /task --- + + + + + diff --git a/zh-TW/step_6.md b/zh-TW/step_6.md new file mode 100644 index 00000000..6ca94946 --- /dev/null +++ b/zh-TW/step_6.md @@ -0,0 +1,11 @@ +## Challenge + +--- challenge --- + +--- task --- + +**Move up and down**: Go back to your model and add two more labels for "up" and "down", then modify your Scratch code so that you can move the alien in all four directions. + +--- /task --- + +--- /challenge --- diff --git a/zh-TW/step_7.md b/zh-TW/step_7.md new file mode 100644 index 00000000..d4b22e96 --- /dev/null +++ b/zh-TW/step_7.md @@ -0,0 +1,3 @@ +## What can you do now? + +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway.