I have successfully installed this module, which works well with the default codec settings.
However, when I try to configure it to use Speex encoding, which requires for the framerate to be set at 8000, I get an error that says that Speex encoding cannot use a framerate of 22,000 (the default).
I am trying to set the parameters like this:
frameRate|8000
format|speex
Any ideas why the framerate parameter does not register? Thanks!
Comments
Comment #1
pburk commentedHello,
I am taking over the development of this module from the original developer. We developed ListenUp so I understand it well. But I am a Drupal newbie. So please bear with me as I learn Drupal.
I edited the ListenUp content parameters and added:
frameRate|8000
format|speex
Then I viewed the HTML source when the recorder appeared and it had:
Those are the correct parameters in HTML. I was able to record in Speex format. So it worked for me. What does your HTML source code look like for the recorder page?
It may have worked because I am using a development version. The only significant change I can think of that I have made is a fix for this bug: #324886: Error: Missing argument 2 to file_create_filename()
But I don't think it will solve your problem.
Anyway, I changed the call to file_create_filename as follows:
$candidate_name = 'lup_' . time() . '.wav';
// FIXED file_create_filename() was originally passed only one parameter. Needs two.
$new_name = file_create_filename($candidate_name, $upload_dir );
If you are using Speex you may want to change the file suffix to '.spx' because it is not a WAV file.
Also note that you will need to add the Speex JAR to the player if you are using Speex.
In AudioRecordingField_player_applet_markup() change the ARCHIVE to:
' archive="JavaSonicsListenUp.jar,OggXiphSpeexJS.jar"'.
Comment #2
simonmd commentedWell, it started working suddenly with no modifications on my part...I wish I could offer some debugging feedback but I really didn't change anything!
Thanks for your reply, though! I' had been waiting for an audio recording solution in drupal for over a year now, and this seems to fit my needs just right.