Archive

Archive for the ‘sourcecode’ Category

How to get rid of “Questions completed” feedback in Hot Potatoes quizzes

  1. If you dig into the JavaScript in the HTML, looking for the default feedback t4ext (“Questions completed so far”), you see (as I have done here manually; this could be relatively easily done also for an entire batch of course quizzes with a global replacement) that you turn this option off:
    1. var CompletedSoFar = ‘Questions completed so far: ‘;
    2. var ShowCompletedSoFar = false;
  2. But that does not get rid of the #/# being displayed.
  3. There is an option to get rid of the Feedback text: image
  4. If I read the options correctly, there is no such setting (we tried the obvious suspects here): image
  5. function CheckQuestionsCompleted(){
        // trp: trying to disable showing to student QuestionsCompleted 
    // (entire function  even if somebody changes the variable ShowCompletedSoFar) 
        // if i understand correctly, what users really do not want to show 
    // is a misleading completed correctly for completed 
    // (which leads to students not know that they have finished?) - \
    // is there no better way? 
        // was: if (ShowCompletedSoFar == false )){return '';} 
    // trp: cannot find a gui to set ShowCompletedSoFar  to false
        var QsCompleted = 0;
        for (var QNum=0; QNum<State.length; QNum++){         if (State[QNum] != null){             if (State[QNum][0] &gt;= 0){
                    QsCompleted++;
                }
            }
        }
    //Fixes for 6.2.2.2
        if (QsCompleted >= QArray.length){
            return ExerciseCompleted;
        }
        else{
            return ''; // trp: CompletedSoFar + ' ' + QsCompleted + '/' + QArray.length + '.';
        }
    }
    
  6. Since you can edit the sourcefiles of a HotPotatoes installation, you can turn it also off for a machine permanently:
  7. If this variable is there in the underlying code, shouldn’t there be also an option in the GUI (not necessarily, maybe was never implemented – or maybe I just have not found it…).
  8. For what the output will look like, see here.

Request to download the digital audio lab classroom audio configuration on the fly, program and source for Windows 7

Go back

Your message has been sent

Warning
Warning
Warning
Warning
Warning
Warning
Warning
Warning

Warning.

Request to download the Sanako Study 1200 licensing server, student and classroom name reset, program and source

Go back

Your message has been sent

Warning
Warning
Warning
Warning
Warning
Warning
Warning
Warning

Warning.

Back to description for reset of server reset program.

Request to download the Sanako Study 1200 Recorder Installer source

(Please be advised that there is no compiled code download for this software program since any implementation is institution-specific. The source code (written in AutoIT) download is for demonstration purposes only and  not ready to run without you making the necessary adaptations to your environment).

Go back

Your message has been sent

Warning
Warning
Warning
Warning
Warning
Warning
Warning
Warning

Warning.

Back to description of sanako recorder install faculty program

Protected: How you can automate giving your teachers access to your Sanako language lab in the offices and from home

2013/04/26 Enter your password to view comments.

This content is password-protected. To view it, please enter the password below.

Automating language learning listening material creation with Google Translate text-to-speech: The technology

  1. A digital audio lab heavily depends on the availability of, but does not usually come with digital learning materials (and recent exceptions are exceptions for a reason)  Some digital audio materials that come with your textbook may be adaptable. “Rolling your own” has all kinds of advantages (allows for personalization, for both teachers to express themselves, and for students to learn), but can be a chore.
  2. Can the LRC find a workaround?  Here is one attempt: making Google translate (too often abused by students in its original interface) text-to-speech (unusable for learning material in its original interface since severely crippled) usable for digital audio learning material production, provided you have a source text in the target language. image
  3. GoogleTTS can serve as the gateway to better suiting Google Translate text-to-speech features to the needs of the LRC:
    1. imageGoogleTTS allows for arbitrary-length input text (it chunks it automatically).
    2. GoogleTTS produces intermediate local audio files which we can postprocess.
    3. Google Translate’s automatic language recognition remains a sore point: it is not reliable. Unlike Google Translate, GoogleTTS has no interface to set the language manually when the automatic recognition fails.
  4. Batch-download the files from Google Translate, using MS-PowerShell: <
    $global:folder = 'G:\Temporary Internet Files\Content.IE5'
    $filter = '*.mp3' # &lt;-- set this according to your requirements
    $global:destination = 'G:\conf\programs\GoogleTTS\mp3'
    $global:path
    $global:path1
    $currenttimeFunction MonitorAndMoveFile{
    $fsw = New-Object IO.FileSystemWatcher $folder, $filter -Property @{
    IncludeSubdirectories = $true # ja, brauch ich für googletts i&lt;-- set this according to your requirements
    NotifyFilter = [IO.NotifyFilters]'FileName, LastWrite'
    }
    $onCreated = Register-ObjectEvent $fsw Created -SourceIdentifier FileCreated -Action { # the even monitored is file created - to force recreation of files by googletts, you may have to clear watched folder of all mp3 &lt; 100kb first
    $global:path = $Event.SourceEventArgs.FullPath
    Write-Host $global:path -ForegroundColor Magenta # this works also
    $name = $Event.SourceEventArgs.Name
    $changeType = $Event.SourceEventArgs.ChangeType
    start-sleep -Seconds 2 # The OnCreated event is raised as soon as a file is created.
    if ($global:path -ne $global:path1) # it is a createdevent on a different file from last time - just in caseon oncreated not firing clear cut, but it seems to
    {
    $currenttime = Get-Date -Format yyyy-MM-dd-hhmmss
    Write-Host "attempt copy $global:path1 to $cuurrenttime" # try copying the past file
    # Copy-Item -Path $global:path1 -Destination "G:\conf\programs\GoogleTTS\mp3\$currenttime.mp3" -Force # that worked with the last generated file, wait: the last one is the one that remaisn behind, earlier ones get overwritten
    Copy-Item -LiteralPath $global:path1 -Destination "G:\conf\programs\GoogleTTS\mp3\$currenttime.mp3" -Force # that worked with the last generated file, wait: the last one is the one that remaisn behind, earlier ones get overwritten
    # use parameter -literalPath because files in the temp folder have usually [ and ] inside the name which acts as wildcards characters
    $global:path1 = $global:path
    }}
    while (1) {
    sleep -Milliseconds 100
    write-host $global:path # this works
    }}
    MonitorAndMoveFile
    #Unregister-Event -SourceIdentifier FileCreated
    
    
  5. Merge the downloaded files (wisely numbered sequentially):
  6. image
  7. Fix minor errors in your audio editor:
  8. image
  9. Done:
    1. Here I have a lot of questions for a speaking exam in ESL, and with a much better accent than my own.
    2. Nifty, plus output sounds even better for German than for English. Note, there is no attempt to parse sentences semantically. Some languages chunk better than others (I made some little improvements in this regard to the original program). Other common problems include numbers and in German I find myself, when listening, tending to look up once in a while and shake a high school students by the shoulders, asking him: “Do you actually understand what you are reading?!” Smile– which in my eyes is an indicator to the progress made in speech-synthesis.
    3. Other examples include French,
    4. Hindi,
    5. Italian,
    6. Spanish.
  10. So can the LRC relieve teachers from recording their cue files for the digital audio lab listening comprehension and exam? Within limitiations.

Code documentation for a job ticket assignment and reporting application

  1. JobAssignments allows for managing job tickets with easy tagging and filtering of task assignments, and for aggregate analysis and reporting. 
  2. Originally developed only for simple tag aggregation reports (watch a demo), JobAssignments  can now also analyze the tag graph: jobassignments_tags_keyneighbours
  3. Click the table of contents on the right to browse the VBA documentation built with Aivosto.
  4. imageimage

Source code samples