Skip to content

Commit

Permalink
Merge pull request #383 from RADAR-base/audio-input
Browse files Browse the repository at this point in the history
Created New Schema And Specifications For Phone Audio Input Plugin
  • Loading branch information
yatharthranjan committed Sep 5, 2024
2 parents 3cfba20 + 3a86883 commit 3db3171
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
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

0 comments on commit 3db3171

Please sign in to comment.