@@ -38,13 +38,21 @@ Content-Type: application/json
3838 "created": "2014-01-28T21:25:10Z",
3939 "updated": "2014-01-28T21:25:10Z",
4040 "audioUrl": "https://api.itslanguage.nl/download/YsjdG37bUGseu8-bsJ",
41+ "resultSet": {
42+ "id": "923848397208945",
43+ "combinedAudioUrl": "https://api.itslanguage.nl/download/lhsdb78333y78d"
44+ },
4145 "userId": "24"
4246 },
4347 {
4448 "id": "14",
4549 "created": "2014-01-28T21:25:10Z",
4650 "updated": "2014-01-28T21:25:10Z",
4751 "audioUrl": "https://api.itslanguage.nl/download/YsjdG37bUGseu8-Xaq",
52+ "resultSet": {
53+ "id": "923848397208945",
54+ "combinedAudioUrl": "https://api.itslanguage.nl/download/ksd83gdiuhs7cs"
55+ },
4856 "userId": "24"
4957 }
5058]
@@ -80,6 +88,10 @@ Content-Type: application/json
8088 "created": "2014-01-28T21:25:10Z",
8189 "updated": "2014-01-28T21:25:10Z",
8290 "audioUrl": "https://api.itslanguage.nl/download/YsjdG37bUGseu8-bsJ",
91+ "resultSet": {
92+ "id": "923848397208945",
93+ "combinedAudioUrl": "https://api.itslanguage.nl/download/lhsdb78333y78d"
94+ },
8395 "userId": "24"
8496}
8597```
@@ -100,10 +112,11 @@ POST /challenges/speech/:challenge/recordings HTTP/1.1
100112
101113### Request parameters
102114
103- Name | Type | Description
104- ----------|----------|------------
105- id | ` string ` | ** Optional** The recording identifier. If none is given, one is generated.
106- audio | ` blob ` | ** Required** The actual audio. (Ogg Opus or WAV)
115+ Name | Type | Description
116+ ------------|----------|------------
117+ id | ` string ` | ** Optional** The recording identifier. If none is given, one is generated.
118+ audio | ` blob ` | ** Required** The actual audio. (Ogg Opus or WAV)
119+ resultSetId | ` string ` | ** Required** The id of the result set the recording belongs to. If this doesn't exist one is created.
107120
108121### Request
109122
@@ -119,6 +132,10 @@ Content-Disposition: form-data; name="audio"; filename="blob"
119132Content-Type: audio/ogg
120133
121134<audio blob>
135+ --YvHKkjjzXfysYJVHMoOAoNczae
136+ Content-Disposition: form-data; name="resultSetId"
137+
138+ iohfg78h37fgy3ho84
122139--YvHKkjjzXfysYJVHMoOAoNczae--
123140```
124141
@@ -135,6 +152,10 @@ Content-Type: application/json
135152 "updated": "2014-02-13T09:39:40Z",
136153 "created": "2014-02-13T09:39:37Z",
137154 "audioUrl": "https://api.itslanguage.nl/download/YsjdG37bUGseu8-bsJ",
155+ "resultSet": {
156+ "id": "iohfg78h37fgy3ho84",
157+ "combinedAudioUrl": "https://api.itslanguage.nl/download/kljhiusdhwhe811"
158+ },
138159 "userId": "24"
139160}
140161```
0 commit comments