Record audio question type

Question types ::: qtype_recordrtc
Maintained by Tim at Lone Pine Koala SanctuaryTim Hunt, Chris Nelson, at the OU (Perry building)Mahmoud Kassaei
A manually graded Moodle question type, where the student records a short audio response to answer the question asked.
Latest release:
915 sites
35 fans
Current versions available: 3
This question type is like the standard essay question type, but instead of writing some text, students have a recording widget where they can record some audio (in future, we plan to also add video recording). We've basically taken RecordRTC ( and implemented it as a question type. 

We consider this an evolution of an Essay question with RecordRTC buttons available to students. We have essentially taken the existing parts and distilled them into a specific question type for the ease and convenience of teachers designing quiz questions and for the students taking them.

Like the standard essay question type, it still requires human grading.

While this question type has obvious uses in Moodle Quiz, it has been primarily designed to be used in an embedded question context (see

This question type has two behaviours: deferred feedback, for use in formal Moodle Quiz tests where a tutor would mark the students' recordings; and a new self-rating behaviour, where students mark themselves.

The self-rating behaviour is used essentially whenever the behaviour is interactive or immediate. We have assumed two use-cases: 1) the student listens to a 'model' audio clip and then records their attempt to follow it. They compare the two clips, and then rate their mimicry. Or 2) the student attempts to pronounce a written sentence verbally, and the feedback contains a model pronunciation clip, allowing the student to then compare the clips and self-rate their accuracy.

This plugin was created by The Open University UK, specifically for its School of Languages and Applied Linguistics.

(We hope that we could look at giving Essay a self-rating behaviour next, which could be used in a similar embedded fashion as an alternative to Pattern Matching sentences. Although if you're thinking about that area already, you might find Gordon Bateson's essay auto-grade plugin of interest.)

Potential privacy issues

You should consider the fact that under GDPR, a recording of a user's voice is personally identifiable data (it is arguably also biometric data). Such 'Special category data' requires extra protection.


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3


Tim at Lone Pine Koala Sanctuary
Tim Hunt (Lead maintainer)
Chris Nelson: Product owner
at the OU (Perry building)
Mahmoud Kassaei: Developer
Please login to view contributors details and/or to contact them

Comments RSS


  • Tue, Jun 9, 2020, 1:29 AM
    I have installed the plugin on our moodle with version : Moodle 3.5.3+ (Build: 20181120), After that U have created a question as this type but when I clicked on preview moodle show the following errro:
    Call to undefined method question_attempt::get_outer_question_div_unique_id()

    Would you please help me?
  • Tim at Lone Pine Koala Sanctuary
    Tue, Jun 9, 2020, 2:22 AM
    I'm sorry. This plugin type is not acutally compatible with Moodle 3.5. I have updated the information.
  • Fri, Aug 28, 2020, 11:14 PM
    Hi, Chris!
    Congrats on your great work with this plugin.
    Is there any progress or news about RecordRTC compatibility with iOS on iPhone and iPad?
  • Sat, Aug 29, 2020, 2:15 AM
    Hi Juan,
    It's more an issue of Apple's full support of WebRTC - although some RTC-related settings are hidden under 'experimental features' in desktop Safari, so it might be soon(?)
    Some initial testing has suggested that the open-source codecs are not supported very well on iOS. For audio, we are investigating an option of saving to MP3 instead (as the patents expired, and is fully supported on all devices), which will assist in playback on any device, if not actual recording.
    We're also looking at ensuring that this question type will work on the Moodle App in the near future, which may also help get this working on iOS (as it seems to be easier for specific iOS apps to have microphone access compared to a website in a general-purpose web browser). However, that also depends on how good the 'normal Atto RecordRTC technology is implemented in the Moodle App already.
    But in general feature news: Mahmoud and Tim are working on video recording, so keep an eye out for the next release.
  • Sun, Aug 30, 2020, 1:53 AM
    Hi, Chris!
    Thank you for your quick and illustrating answer.
    I'll keep on waiting smile
    Again, great work!
    Best, Juan.
  • Thu, Oct 8, 2020, 11:12 PM
    Hi Chris,
    I'm interested in video recording plugin, do you have any information about release date?
  • Thu, Oct 8, 2020, 11:15 PM
    @V B: Mahmoud is literally working on it now. Give us a couple of weeks? smile
  • Fri, Nov 20, 2020, 12:56 PM

    Tried doing editing quiz and suddenly getting error message below.

    Exception - syntax error, unexpected '?'

    More information about this error (

    Debug info:
    Error code: generalexceptionmessage

    Stack trace:
    * line 135 of /question/type/recordrtc/question.php: ParseError thrown
    * line 100 of /question/engine/bank.php: call to include_once()
    * line 154 of /question/engine/bank.php: call to question_bank::get_qtype()
    * line 1171 of /mod/quiz/classes/output/edit_renderer.php: call to question_bank::get_all_qtypes()
    * line 97 of /mod/quiz/classes/output/edit_renderer.php: call to mod_quiz\output\edit_renderer->initialise_editing_javascript()
    * line 211 of /mod/quiz/edit.php: call to mod_quiz\output\edit_renderer->edit_page()

    I'm using Moodle 3.6.6 (Build: 20190909) and PHP 7.0.33.

    Any advise is deeply appreciated.
  • Sun, Dec 13, 2020, 1:33 AM
    Hi @Chris Nelson

    any news about video recording plugin?
  • Tim at Lone Pine Koala Sanctuary
    Sun, Dec 13, 2020, 5:39 AM
    The code is done, and we are running it at the OU. I must find time to upload it.
  • Sun, Feb 7, 2021, 2:42 AM
    I've just tried this plugin and thought I would place an update here. It seems that iDevices can now record and save to an assignment, however, when using an iDevice there is no way to see or hear your recording. I think this must be down to the format things are saved in. Is it possible to have an option to save audio as MP3 and video as MP4?
  • Tim at Lone Pine Koala Sanctuary
    Sun, Feb 7, 2021, 5:41 PM
    Anyone would think that Apple has a strong business incentive to keep people using apps sold through the app store, rather that HTML 5 web pages that just work wink Every other browser supports .ogg (completely open format). Meanwhile, other browser can't record in MP3.

    Yes, we plan do to something about this, when we can work out what, and how.
  • Tue, Feb 16, 2021, 12:28 AM
    Hello sir,
    i have installed but when i want to add new assessment it show this error
    This page isn’t working right now can't currently handle this request.
    HTTP ERROR 500
  • Tim at Lone Pine Koala Sanctuary
    Tue, Feb 16, 2021, 12:49 AM
    That is not the most helpful error message ever. If you can turn on debugging output ( that might give more clues.
  • Thu, May 6, 2021, 8:09 AM
    este error me salio: Call to undefined method question_attempt::get_outer_question_div_unique_id(), para solucionarlo editar,
    $PAGE->requires->js_call_amd('qtype_recordrtc/avrecording', 'init', [$qa->get_outer_question_div_unique_id(), $setting]);
    $qid = 'q'.$qa->get_slot();
    $PAGE->requires->js_call_amd('qtype_recordrtc/avrecording', 'init',[$qid, $setting]);

    Para mi funciono en moodle 3.5.1

Please login to post comments