Is it possible to change the audio-recorder algorithm?

When I click "retry" on the audio-recorder,  it opens a new view, and asks if I want to save the current recording. 

I am hoping to find a way to disable that step.

In the application I am using it for, there is no need to save recordings.

Thanks, -Eric

0
0
Supporter votes Members of the Supporter Network can vote for feature requests. When the supporter network has generated sufficient funding for the top voted feature request it will normally be implemented and released. More about the H5P Supporter Network
BV52's picture

Hi Eric,

It should be possible with some changes to the code. Thank you for contributing your ideas on how to make H5P better! We’re now working on something called the H5P supporter program allowing the H5P community to vote for and fund the top voted H5P features. Also there are developers in the community who every now and then works on a feature they find interesting or useful.

-BV52

otacke's picture

Hi Eric!

I have not looked at the code, but it should be as simple as adding an option to switch off the dialog to the editor and to skip the dialog when the retry button is hit.

Best,

Oliver 

Thanks for the suggestion, but I have no idea where the code lives in the wordpress plugin.  I was able to find some code here on github, but I was unable to find the VUE file.   Seems like an easy fix if I had any idea how or where to make the modification.  *Thanks in advance*

otacke's picture

Hi mirgcire!

Please don't thank me in advance: I don't have the time to guide you through the code. Maybe someone else has.

Best,
Oliver

Sorry to bother you again, but, could you point me to any relevant documentation?  

otacke's picture

Hi mirgcire!

Not sure what kind of documentation you're looking for that you shouldn't have found already:

Best,
Oliver

Hi Otacke,

I searched all the files in the documents you referenced and did not find any expanation of a VUE file.  It appears to me that that the VUE file contains the algorythms of the audio recorder.  Please help me find the documentation for ".vue" files. 

Thanks, Eric

otacke's picture

Hi Eric!

I am really sorry. I really don't understand what you're expecting me to do. The templates for the view that utilize Vue are in https://github.com/h5p/h5p-audio-recorder/tree/master/src/views - you are not expecting me to find you some tutorials on Vue, are you?

Best,
Oliver

I am having problem locating the file which contains the state-machine for the code that drives the user interace.  I found the code on github (https://github.com/h5p/h5p-audio-recorder/blob/master/src/views/AudioRec...) but I can not find it on my website.  In fact, I am not able to find any VUE file on my site.  The code is working just fine, but I can't find the *.vue file.  

papi Jo's picture

Hi Eric!

The answer is very simple... for developers who understand how h5p contents are developed. But it's not at all obvious for end-users.

Like some (but not all) other h5p contents, the complete files for h5p-audio-recorder reside here: https://github.com/h5p/h5p-audio-recorder. But when that content is compiled and made available to h5p users, most of the files are compiled into a unique file here: yourwebsite\...\h5p\libraries\H5P.AudioRecorder-1.0\dist\h5p-audio-recorder.js file. Which explains that you will not find any *.vue file on your wordpress server!

Hi Papi Jo,  thank you for explaining this conundrum.  I am a software developer with 30 years of experience in a variety of languages.  Admittedly, I have not done much js coding, but I don't suck at it.  Is there any documentation for this procedure?  I would like to make a slight change to the algorithm that will make it easier for my students to learn Mandarin Chinese.  The change would allow the student to alternate between recording and listening.  Thanks