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/audio/phone_audio_input.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"namespace": "org.radarcns.passive.audio",
"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." }
]
}
13 changes: 13 additions & 0 deletions specifications/passive/android_phone_audio-1.0.0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#====================================== Android Phone Audio =======================================#
vendor: ANDROID
model: PHONE
version: 1.0.0
data:
# Phone Audio Input
- type: PHONE_AUDIO_INPUT
app_provider: .phone.PhoneAudioInputProvider
processing_state: RADAR
topic: android_phone_audio_input
value_schema: .passive.audio.PhoneAudioInput
sample_rate:
dynamic: true
Loading