sound recording on a microphone and sending to dropbox or google disk
A local microphone is used where the code is executed. You can set recording duration. File name consists of current datetime.
To upload recording to Dropbox, you should have dropbox access token. How to get you can read here.
To upload recording to Google Disk, you should turn on Drive API and get client_secrets.json
, then upload it to src/main/resources
. How to get you can read here.
Then, fill the app.properties:
- cloud -
dropbox
orgoogle
- duration - one recording duration, in milliseconds
- deleteAfter - delete local file after uploading to cloud,
true
orfalse
- iterationsCount - how many times it will make recording and send file to cloud
- dropbox_access_token - if use Dropbox