voice recording

59 views
Skip to first unread message

shahin....@gmail.com

unread,
Mar 14, 2022, 1:14:58 PM3/14/22
to oTree help & discussion
Hi all,

Has anyone tried embedding a microphone with an on&off switch in an experiment? I need to gather a voice record of two sentences from each participant.

Best regards,
Sahin

Chris @ oTree

unread,
Mar 14, 2022, 6:46:19 PM3/14/22
to oTree help & discussion
If it's just 2 sentences, then it might be small enough to store in the database. You can use the JavaScript microphone API to record the sound, and base64 encode the data and store it in a LongStringField. But if you need to record large amounts of audio or from many participants, it could quickly overload the database, so you would need to embed some widget that uploads the data to a 3rd party server (since you can't upload files to oTree).
Reply all
Reply to author
Forward
0 new messages