Similar to the clock face worksheet, here’s a simple generator for a measuring tube homework worksheet. Every time you click on the link below, you will download a new randomly-generated measuring tube worksheet with 6 questions on it. The measuring tubes are drawn with vector graphics to make sure they look good when printed.
With a little extra effort the clock face generator can produce a worksheet with several different clock faces on a page. The page is produced with Freemarker / LaTeX. Producing vector graphics for inclusion in the LaTeX document instead of bitmaps is done with FreeHEP.
Just in case you missed it, this link will download a PDF document for you with different times every time!
Yet another homework-inspired addition to the API – a clock face image generator. My son brought home a worksheet from school with badly-drawn clock faces on it. On some clock faces the minute hand was pointing to the “6” (half-past) while the hour hand pointed directly at the 3, when it should have pointed either half way between 2-3 or half way between 3-4.
The clock-face image URL creates a random clock face if no arguments are present. Query arguments are ‘time’ to specify time in milliseconds since midnight. A ‘resolution’ argument controls the resolution of randomly-generated times and also to hide the seconds hand for anything greater than second. Values for ‘resolution’ are one of [second, minute, fives, quarter, half, hour]. The ‘width’ argument is a 3-digit size in pixels of the generated image.
A .json API URL returns some data useful for embedding the clock face as an interactive test:
What is the time?
Another homework-inspired application. My daughter brings home lists of words to learn for spelling tests. I help her practice by reading out the words and giving an example just in case the word alone isn’t clear or the word has homophones. We’ve been checking words at wiktionary and even uploading audio where a pronunciation file is wanted.
Once you’ve applied for a token and username, you ‘login’ to the spelling test editor by providing your email address and the token sent to you. For each spelling word, provide an example text containing the word and two files: one of the word spoken alone and one of it spoken in your example phrase.
I use audacity to record and edit my sound files. An example work flow is:
- Write down all words and example phrases in a text editor.
- Start recording
- Allow a few seconds of silence
- Speak the word
- Be silent for a second or so
- Speak the example text
- Be silent for a second or so
- Repeat from 4 for the next word
- Be silent for a few seconds
- Stop recording
- Select one of the longer silences
- (in Audacity) use Effects…Noise Removal to set the selection as the noise profile
- Select the whole recording
- (in Audacity) use Effects…Noise Removal to remove noise.
- If the silences in your recording are still noisy, repeat from 11 with the other long silence
- Select a word with at least 0.5 seconds of silence either side
- (in Audacity) use File…Export Selection to create a mp3 file like ‘theword.mp3’
- Select the example sound with at least 0.5 seconds of silence either side
- (in Audacity) use File…Export Selection to create an mp3 file like ‘theword-example.mp3’
- Repeat from 16 for all the words you’ve recorded
Once you have your audio file, uploading them is a simple matter of copy-pasting from the text file and selecting the audio files from where you saved them. When you ‘Update a word’ you’ll get a link like Sean:sequence which you can use to check the audio files uploaded OK and the word occurs in the example text.
Embedding in a web page.
To create each spelling test, all I have to do is copy a small amount of HTML and change the JSON object to include the new spellings. There’s a search facility for existing spellings – feel free to add your own and use the spellings already uploaded.
Here’s a sample in this WordPress blog: