XLSForm / pyxform

A Python package to create XForms for ODK Collect.
BSD 2-Clause "Simplified" License
77 stars 134 forks source link

Add background-audio type #517

Closed lognaturel closed 3 years ago

lognaturel commented 3 years ago

As described in https://forum.getodk.org/t/form-spec-proposal-add-background-audio-recording/31889.

type name parameters
background-audio my_recording quality=low

Will result in a my_recording node in the instance with no corresponding body element.

In the model (the action doesn't have to be close to the corresponding bind; wherever actions usually land is fine):

<bind nodeset="/data/audio_recording" type="binary"/>
<odk:recordaudio event="odk-instance-load" ref="/data/my_recording" odk:quality="low"/>

The quality parameter is optional. Valid values are low, normal, voice-only. Unlike with foreground recording, external should result in an error.