Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created New Schema And Specifications For Phone Audio Input Plugin #383

Merged
merged 9 commits into from
Sep 5, 2024
24 changes: 24 additions & 0 deletions commons/passive/phone/phone_audio_input.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"namespace": "org.radarcns.passive.phone",
this-Aditya marked this conversation as resolved.
Show resolved Hide resolved
"type": "record",
"name": "PhoneAudioInput",
"doc": "Uncompressed high-quality audio data collected by the PhoneAudioInput plugin, making use of low-level classes that interact directly with hardware.",
"fields": [
{ "name": "time", "type": "double", "doc": "Device timestamp in UTC (s)." },
{ "name": "timeReceived", "type": "double", "doc": "Device receiver timestamp in UTC (s)." },
{ "name": "fileName", "type": "string", "doc": "Name of the audio file after it is saved to S3." },
{ "name": "filePath", "type": "string", "doc": "Path of the audio file retrieved after uploading to S3 storage." },
{ "name": "deviceName", "type": "string", "doc": "Name of the input audio device used for routing during this recording." },
{ "name": "deviceId", "type": "string", "doc": "Identifier associated with the input device used for audio recording." },
{ "name": "deviceSampleRates", "type": "string", "doc": "Supported sample rates of the input audio device." },
{ "name": "deviceEncodings", "type": "string", "doc": "Supported encodings of the input audio device." },
{ "name": "deviceType", "type": "string", "doc": "Type of the input audio device used for recording." },
{ "name": "deviceChannelCounts", "type": "string", "doc": "Supported channel counts of the input audio device." },
{ "name": "audioLength", "type": "long", "doc": "Length of the audio recording (in milliseconds)." },
{ "name": "audioFileSize", "type": "long", "doc": "Size of the audio file (in bytes)." },
{ "name": "hadPlayback", "type": "boolean", "doc": "Whether the recorded audio file was played before uploading to s3 storage." },
{ "name": "audioFileExtension", "type": "string", "doc": "Extension of the audio file." },
{ "name": "configuredSampleRate", "type": "int", "doc": "Sample rate for audio recording configured by firebase remote configs in application."},
{ "name": "configuredEncoding", "type": "string", "doc": "Encoding for audio recording configured by firebase remote configs in application." }
]
}
8 changes: 8 additions & 0 deletions specifications/passive/android_phone-1.0.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,11 @@ data:
value_schema: .passive.phone.PhoneUserInteraction
sample_rate:
dynamic: true
# Phone Audio Input
- type: PHONE_AUDIO_INPUT
this-Aditya marked this conversation as resolved.
Show resolved Hide resolved
app_provider: .phone.PhoneAudioInputProvider
processing_state: RADAR
topic: android_phone_audio_input
value_schema: .passive.phone.PhoneAudioInput
sample_rate:
dynamic: true
Loading