Skip to content

Feature request - request audio sample from the hive #71

Description

@janchrillesen

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

  1. 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

  2. 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.

  3. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions