Group 1 Nathaniel Kanhai
https://youtu.be/XdhtD44SPkE
Group 2 Rahul Kissoon
https://youtu.be/dDOvZUCAdSE
Group 3 Isreal Cox
https://youtu.be/lBGwQxb7OgQ
https://youtu.be/XdhtD44SPkE
https://youtu.be/dDOvZUCAdSE
https://youtu.be/lBGwQxb7OgQ
Whisper AI is a powerful speech-to-text model by OpenAI that allows for high-quality transcription. This guide walks you through the step-by-step installation process.
Whisper AI requires Python to run.
python --versionWhisper AI depends on PyTorch for deep learning functionalities.
pip install torch torchvision torchaudiopython -c "import torch; print(torch.__version__)"Chocolatey is a package manager for Windows.
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))choco --versionFFmpeg is required for handling audio files.
choco install ffmpegbrew install ffmpegsudo apt update && sudo apt install ffmpegffmpeg -versionpip install -U openai-whisperpip install git+https://github.com/openai/whisper.gitpip install --upgrade --no-deps --force-reinstall git+https://github.com/openai/whisper.gitwhisper --helpTo check if Whisper AI is working, run:
whisper example.mp3 --model small
This will generate a transcription of example.mp3.
whisper example.mp3 --model mediumwhisper file1.mp3 file2.mp3whisper example.mp3 --language Englishwhisper example.mp3 --task translateIf you have an NVIDIA GPU, you can speed up transcription with CUDA:
whisper example.mp3 --model large --device cudaCongratulations! 🎉 You have successfully installed and set up Whisper AI for transcription. For further details, visit the Whisper GitHub repository.
ffmpeg -i "PresentationVideo.mp4" -filter_complex "select=gt(scene\,0.2)" "slides/%04d.jpg" -vsync vfr
ffmpeg-i "PresentationVideo.mp4"PresentationVideo.mp4 (the recorded PowerPoint or slide presentation).-filter_complex "select=gt(scene\,0.2)"-filter_complex: Enables complex filtering.select=gt(scene,0.2):
scene is a built-in metric that detects the difference between consecutive frames.gt(scene,0.2):
gt() (greater than) selects frames where the scene change metric exceeds 20% (0.2)."slides/%04d.jpg".jpg images in the slides/ directory. You must create this directory before using the command, or it will not work%04d ensures images are numbered sequentially (e.g., 0001.jpg, 0002.jpg).-vsync vfrscene value)| Scene Change Threshold | Effect |
|---|---|
0.05 (5%) | Many frames extracted, including minor slide changes (animations, small transitions). |
0.1 (10%) | Fewer frames, capturing most major slide changes. |
0.2 (20%) | Extracts only clear slide transitions, ignoring minor visual changes. |
0.3 (30%) | Very few frames, capturing only the most drastic slide transitions. |
ffmpeg -i "PresentationVideo.mp4" -filter_complex "select=gt(scene\,0.1)" "slides/%04d.jpg" -vsync vfr
scene values (e.g., 0.05–0.1) → Extract more frames, including small slide changes.scene values (e.g., 0.2–0.3) → Extract fewer frames, focusing on major slide transitions.See the example below
Problem: Create a solution to find the area of a circle.
Problem Definition: Create a program which prompts the user to enter the radius of a circle, and outputs its area.
Algorithm in narrative form:
1. Welcome the user and proceed to prompt the user to enter the radius of the circle.
2. Store the entered radius in a variable.
3. Use the formula for the area of a circle: Area = π × radius² (where π is approximately 3.14159).
4. Calculate the area by squaring the radius and multiplying the result by π.
5. Output the calculated area of the circle to the user.
6. End the program with a thank you message.
Algorithm in Pseudocode:
START
R ← 0
AREA ← 0
pi ← 3.14159
OUTPUT "Welcome to the Area of a Circle Calculator"
OUTPUT "Please enter the radius of the circle:"
INPUT R
AREA ← pi * (R * R)
OUTPUT "The area of the circle is: ", AREA
OUTPUT "Thank you for using the calculator!"
STOP
See Flowgorithm File And flowchart graphic here: https://drive.google.com/drive/folders/1Lbf_A-SdV5F4P1YEFui1scGLc3FGVFG1?usp=sharing
© 2024 Vedesh Kungebeharry. All rights reserved.
| Criteria | Marks | Description |
| Storyboard Visuals | 5 | |
| 5 | All four scenes are clearly sketched with detailed visual descriptions. Each scene includes backgrounds, characters, and important objects. | |
| 4 | Three scenes are clearly sketched with detailed visual descriptions. One scene may lack minor details. | |
| 3 | Two scenes are clearly sketched with detailed visual descriptions. Two scenes may lack minor details. | |
| 2 | One scene is clearly sketched with detailed visual descriptions. Three scenes lack details. | |
| 1 | Minimal effort in sketching. Most scenes lack details. | |
| 0 | No visual descriptions provided. | |
| Character Positioning & Text Narration | 5 | |
| 5 | Each scene includes clear positioning of characters with accurate text narration of at least 4 sentences per scene. Dialogues are coherent and contribute to the story. | |
| 4 | Each scene includes clear positioning of characters with accurate text narration of at least 3 sentences per scene. Dialogues are mostly coherent. | |
| 3 | Each scene includes clear positioning of characters with accurate text narration of at least 2 sentences per scene. Dialogues are partially coherent. | |
| 2 | Scenes have characters and text narration, but positioning is unclear or text is less than 2 sentences per scene. | |
| 1 | Minimal effort in character positioning and text narration. | |
| 0 | No character positioning or text narration provided. | |
| Animation Description | 3 | |
| 3 | Two animations are clearly described across the four scenes, including details on how and when they occur. | |
| 2 | Two animations are mentioned but lack detail on how and when they occur. | |
| 1 | One animation is described with some detail. | |
| 0 | No animations described. | |
| Implementation in Scratch | 2 | |
| 2 | The Scratch project closely follows the storyboard, with all scenes, dialogues, and animations accurately implemented. | |
| 1 | The Scratch project follows the storyboard with minor deviations. Most scenes, dialogues, and animations are accurately implemented. | |
| 0 | The Scratch project does not follow the storyboard or is not implemented. | |
| Creativity & Coherence | 1 | |
| 1 | The story is creative, coherent, and engaging. It shows originality and thoughtful integration of elements. | |
| 0 | The story lacks creativity, coherence, or engagement. It appears rushed or poorly thought out. | |
| Total | 15 |
© 2024 Vedesh Kungebeharry. All rights reserved.
Practice the tutorial shown here:
Create a scratch Script/Program which uses the pen tool to draw a rectangle
slanted at a 45 degree angle. Ensure that the rectangle occupies a large portion of the stage.
Submit a link to you scratch project for marking
1 – When Green flag is clicked
1 – Immediately erasing all pen activity before drawing the rectangle
2 – orienting the pen to 45 degrees
2 – Correct use of a loop
2 – correctly drawing the length
2 – correctly drawing width
2 – correct use of the turn block
3 – Good positioning of the rectangle withing the stage
© 2024 Vedesh Kungebeharry. All rights reserved.
Scratch Project: https://scratch.mit.edu/projects/999695955/editor/
See video below:
© 2024 Vedesh Kungebeharry. All rights reserved.