Hi!
thanks for considering my request.
I'm working on a unique approach to capture user voice recordings in my survey and then upload them to Google Cloud Storage through the Uppy uploader with Transloadit. Here's a brief overview of my methodology:
Survey Structure: I'm using LimeSurvey Community Edition Version 6.2.11+231007 hosted on my OVH server.
My questions have both an HTML and a script tab where I can embed HTML and JavaScript respectively.
Voice Recording: I utilize the
MediaRecorder
API for voice recording, triggered by the user. This process involves real-time visualization and controls like 'record', 'pause', and 'stop'.
File Naming: After recording, the audio file is automatically named based on various identifiers like date, time, and specific survey-related variables like ids_survey.NAOK, ids_gid.NAOK, and others.
User Control: Post-recording, users can listen to their recording, rename it, or even choose to re-record.
File Uploading: Rather than immediately uploading the file post-recording, I've introduced an "Validate my recording" button. Only upon clicking this will the file be uploaded. This ensures users have full control and satisfaction with their recording before it's uploaded.
The audio file present in the DOM is intended for this upload.
Uppy Integration: I'm attempting to integrate Uppy to facilitate the upload to Google Cloud Storage via Transloadit after the user validates their recording.
However, I'm encountering issues with the Uppy integration and the external scripts not being loaded, resulting in a "Uppy not defined" error in the console.
I've detailed the process above to highlight
that this isn't a standard “file upload” but a more involved process tailored to the user experience. Given this unique approach, could you provide guidance on integrating Uppy and ensuring the external scripts are loaded correctly?
Thank you for your assistance!
Best regards,