735718512c
This script provides a command-line interface for recording dictations, uploading them to a server, and retrieving transcripts. It allows for continuing an existing case, starting a new one, or refreshing the status of the current case. The script uses `ffmpeg` for audio recording and `curl` for server communication. It manages the current case state using a temporary file `/tmp/doctate-current-case`. Configuration details like `DATA_PATH` and `API_KEY` are read from the server's `.env` and `users.toml` files.