Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Tasks completed: Difference between revisions

From MoodleDocs
m (template removed)
(Note about plan not to migrate this page to the new developer resources. See template for more info.)
 
Line 1: Line 1:
{{Template:WillNotMigrate}}
{{Voice}}
{{Voice}}



Latest revision as of 13:50, 24 June 2022


Warning: This page is no longer in use. The information contained on the page should NOT be seen as relevant or reliable.



Tasks Completed

Initial Setup

1. Read All Coding guidelines.

2. Read through the Moodle Developer Information

3. Setup of the php-eclipse environment done.

4. Downloaded and installed moodle code from CVS

  Repository used : eu.cvs.moodle.org

5. Setup of Opera done

  Tested and Learnt opera browser voice support commands(opera 9.01)

6. Read Understood and Tested all Voice Examples on Opera Website

7. Read on voicexml intricacies - needed to analyse moodle output to identify what could be converted and what not.

8. Added an experimental option called "VoiceXML" so only when this variable is checked, VoiceXML code is generated.

9. Created a php lib for VoiceXML to put all functionality of VoiceXML and to be used by the rest of the code (lib/voicexml/voicexmllib.php).

10. Created a unit test for voicexmllib to test all functionality in voicexmllib.php in (lib/simpletest/testvoicexmllib.php).

11. Take the HTML output of a page in Moodle and change all its link tags to make it Voice enabled.

   Check out the page @ Navigation Test Page
   - Keywords are "Login", "Course FullName 101", "Moodle", "June"
   - All links do not work :) !! this just tests the navigation code.
   
   FileName: index.php
   Condition: User not logged in.
   Steps to Convert
   ----------------
   - Source Code saved.
   - Additions to html Tag
   		xmlns:ev="http://www.w3.org/2001/xml-events" 
   		xmlns:ss="http://www.w3.org/2001/10/synthesis" 
   		xmlns:xv="http://www.voicexml.org/2002/xhtml+voice"
   - Added voicexml code to page
   		- voice xml form
   		- code to body section
   - Voice XML working on page
   - Keywords for page selected
   	      - Login
   	      - Course Fullname 101
   - Write Code for above keywords
   - Test
   Navigation possiblities to be considered
   ----------------------------------------
       - External page
       - Internal page
       - new window
       - same window
       - javascript

12. Take the HTML output of a page in Moodle and change a form to make it Voice enabled.

   Check out the page @ Form Test Page
   - All the form elements are checkboxes here for simplicity.
   
   FileName: admin/settings.php?section=experimental
   Condition: User logged in.
   Steps to Convert
   ----------------
   - Source Code saved.
   - Additions to html Tag
   		xmlns:ev="http://www.w3.org/2001/xml-events" 
   		xmlns:ss="http://www.w3.org/2001/10/synthesis" 
   		xmlns:xv="http://www.voicexml.org/2002/xhtml+voice"
   - Select a form
   - Write voice xml code corresponding to that form
   - Identify all fields that need to be converted
   - Write voice xml code for each field for that form
   - Sync all voicexml form's fields with corresponding xhtml form fields
           - In case of multiple forms sync with form ids
   - All code goes into head section
   - Test
   - Main problem encountered was debugging due to multiple forms on page. Did the mistake of not 
     linking the id of the form while "sync"ing the form fields. So if multiple forms are present 
     field should be synced with form ids.