Description:
Allow HiveInside to record audio through the buildin PDM microphone and send the recording back to HiveHub.
Audio will be stored as plain files on the backend and can be played back by the user through the HiveHub dashboard
Useful for investigating issues raised by the insights module, or just for listening to the bees!
Could be exposed through the API as well for integration with HivePal
API should at least implement functions to
- Request a recording from the hive. Parameters: Hive, duration (default 10 seconds) and maybe recording level
- Download the raw recording to play back through HivePal or other applications
- Delete recordings
- List recordings - all and by hive
Ideas on how this could be implemented
-
Record, store, send
Hivehub connect to HiveInside using GATT and requests a recording
HiveInside records the requested audio and then sends it back
Will require memory to store the audio
HiveHub remains connected while recording
-
Stream over BLE
Hivehub connect to HiveInside using GATT and requests a recording
HiveInside records the requested audio and concurrently streams the audio back to HiveInside
No memory required for storing the audio - stream could potential go on forever, as long as the battery last.
-
Record, store, request
Hivehub connect to HiveInside using GATT and requests a recording
HiveInside records the requested audio and stores it
Will require memory to store the audio
When Hivehub wakes up after the next deepsleep it connects back to HiveInside and downloads the recording
Description:
Allow HiveInside to record audio through the buildin PDM microphone and send the recording back to HiveHub.
Audio will be stored as plain files on the backend and can be played back by the user through the HiveHub dashboard
Useful for investigating issues raised by the insights module, or just for listening to the bees!
Could be exposed through the API as well for integration with HivePal
API should at least implement functions to
Ideas on how this could be implemented
Record, store, send
Hivehub connect to HiveInside using GATT and requests a recording
HiveInside records the requested audio and then sends it back
Will require memory to store the audio
HiveHub remains connected while recording
Stream over BLE
Hivehub connect to HiveInside using GATT and requests a recording
HiveInside records the requested audio and concurrently streams the audio back to HiveInside
No memory required for storing the audio - stream could potential go on forever, as long as the battery last.
Record, store, request
Hivehub connect to HiveInside using GATT and requests a recording
HiveInside records the requested audio and stores it
Will require memory to store the audio
When Hivehub wakes up after the next deepsleep it connects back to HiveInside and downloads the recording