Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kschuler committed Nov 16, 2024
1 parent ca5f552 commit 2cfbe8d
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions task.html
Original file line number Diff line number Diff line change
Expand Up @@ -347,18 +347,19 @@
jsPsych.setProgressBar(proportion_complete += 0.01);

// also upload the recording to our s3 bucket!
fetch('https://api.childlanglab.com/v1/upload', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
base64Data: data.response,
fileName: `recording_trial_n_${TRIAL_N}`,
mimeType: 'audio/webm',
}),
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error))
childlanglabClient.uploadRecording(TRIAL_N)
// fetch('https://api.childlanglab.com/v1/upload', {
// method: 'POST',
// headers: { 'Content-Type': 'application/json' },
// body: JSON.stringify({
// base64Data: data.response,
// fileName: `recording_trial_n_${TRIAL_N}`,
// mimeType: 'audio/webm',
// }),
// })
// .then(response => response.json())
// .then(data => console.log(data))
// .catch(error => console.error(error))

},
data: {
Expand Down

0 comments on commit 2cfbe8d

Please sign in to comment.