Configuration of the NanoGong Applet Using Applet Parameters
If you are going to use NanoGong in Moodle 1, you can simply ignore this page. Just follow the installation instructions here and everything will be handled for you.
The NanoGong applet can be configured using several applet parameters. Some of these parameters are used to alter the appearance of the user interface, some others are used to adjust the quality of the recording and one is used to load a pre-recorded voice file for the NanoGong applet.
Below is the list of the parameters that can be configured:
-
ShowRecordButtonYou can optionally hide the Record button from the NanoGong interface. The button can be hidden by setting this parameter to "false".
The NanoGong Applet
without the Record ButtonThe following is an example of the HTML code to hide the Record button:
-
ShowSaveButtonYou can also optionally hide the Save button from the NanoGong interface. By setting this parameter to "false" the button would be hidden from the applet.
The NanoGong Applet
without the Save ButtonThe following is an example of the HTML code to hide the Save button:
-
ShowSpeedButtonSimilarly you can optionally hide the Speed buttons from the NanoGong interface. The speed up/slow down buttons are hidden if the parameter is set to "false".
The NanoGong Applet
without the Speed ButtonsThe following is an example of the HTML code to hide the speed buttons:
-
ShowAudioLevelThe last user interface item that can be hidden is the audio level indicator. Again you can hide the item by setting the corresponding parameter to "false".
The NanoGong Applet without
the Audio Level IndicatorThe following is an example of the HTML code to hide the audio level indicator:
-
ShowTimeYou can optionally show a time display in the NanoGong interface. By setting the parameter to "true" the time display would be shown in the applet when the mouse hovers over the timeline.
The NanoGong Applet with
the Time DisplayThe following is an example of the HTML code to show the time display:
-
ColorThe color of the NanoGong applet can be changed using this parameter so that the applet can use a colour in your web page style. The color is specified in this form, #rrggbb, where rr, gg and bb are hexadecimal values in the range of 00 to FF.
The NanoGong Applet in
a Different Color (Light Red)The following is an example of the HTML code to change the color to light red:
-
SoundFileURLThis parameter sets a pre-recorded sound file to be loaded in the NanoGong applet when it starts. That means the applet can be used as a playback component by providing an appropriate sound file. This parameter can be a relative location or absolute URL. For example, by using a relative URL you can load a file from a directory (or any sub-directory) where the applet is located.
-
StartTimeThis parameter specifies the time of the pre-recorded sound file to start loading in the NanoGong applet. Together with the EndTime parameter, a section of the pre-recorded sound file, given by the SoundFileURL parameter, can be extracted and loaded into the NanoGong applet when it starts. The value of the start time is expressed in seconds.
This parameter can be used together with the SoundFileURL parameter without specifying the end time. In this case, the end time is the end of the pre-recorded sound file.
-
EndTimeThis parameter specifies the time of the pre-recorded sound file to stop loading in the NanoGong applet. Together with the StartTime parameter, a section of the pre-recorded sound file, given by the SoundFileURL parameter, can be extracted and loaded into the NanoGong applet when it starts. The value of the end time is expressed in seconds.
This parameter can be used together with the SoundFileURL parameter without specifying the start time. In this case, the start time is the start of the pre-recorded sound file.
-
AudioFormatThis parameter controls the audio format used when a new recording is created using the applet. Two types of audio format, Speex and ImaADPCM, can be selected. Speex is a format with a very high compression ratio and therefore it uses less space/time when saving or transmitting the recording. ImaADPCM is not as highly compressed as Speex but it can be saved using the WAV file format, which means it can be played back using any of the common audio player programs.
The following is an example of the HTML code to change the audio format to ImaADPCM:
-
SamplingRateThis parameter sets the sampling rate when a new recording is created using the applet. The sampling rate represents the number of audio data used for each second of sound. A larger sampling rate produces a recording with a better quality but uses more space. By default, the sampling rate has a value of 44100, which produces an excellent audio quality. Common values for sampling rate are (from poor quality to excellent quality) 8000, 11025, 16000, 22050, 32000 and 44100.
The following is an example of the HTML code to change the sampling rate to 32000:
-
MaxDurationThis parameter sets the maximum duration, in seconds, a recording could be recorded by the NanoGong applet. By default, the applet has a 5 minutes maximum duration for recording. The duration can be set to at most 20 minutes, i.e. 1200 seconds.
The following is an example of the HTML code to change the maximum duration to 1 minute:
Proceed to try out the NanoGong applet with various parameters »
The Gong Project