MARAGI microservice to provide audio clips for other services such as speech recognition and NLP. Allows services to subscribe. This service will POST detected sounds to given URL (IP or hostname, port, API endpoint).
Any computer microphone device
Serialized list of frames of audio samples compatible with PyAudio
- python3
- flask
- time
- json
- threading
- pyaudio
- collections
- audioop
Endpoint | Method | Request | Response |
---|---|---|---|
/mic | GET | '' |
{time: unix epoch, hex: 20 seconds of hex encoded samples } |
/mic | POST | subscribe or unsubscribe {action: (un)subscribe, url: http://blah:9999/api/endpoint} |
acknowledgement of subscription status, subscription messages same format as GET response |