brew install portaudiobrew install ffmpegpython -m venv env(>=3.9 and <3.13)source env/bin/activate(Linux)pip install -r requirements.txt- Download a whisper model from
https://github.com/openai/whisper/blob/main/whisper/__init__.py - .env variables needed
OPENAI_API_KEYRECORDING_FOLDER(relative file location)WHISPER_MODEL(relative file location)FHIR_SERVER_URL(optional)
python backend/manage.py migratepython backend/manage.py runserver
synthea/src/main/resources/synthea.properties
# HackHarvard 2024 custom settings
exporter.fhir.use_us_core_ig = true
exporter.fhir.transaction_bundle = true
# exporter.fhir.bulk_data = true
exporter.fhir.server_url = http://localhost:8080/fhir
Ensure file is executable chmod +x ./gen_and_upload.sh
Ensure ./run_synthea is pointing to the correct synthea directory
/create_patient/[id]/ -> {success}
/update_patient/[id]/ -> {success}
/initialize_patient/[id]/ -> {success}
/get_patient/[id]/ -> {data}
/start_recording/ -> {recorder_id}
/stop_recording/[id]/ -> {filename}
/get_suggestion/[filename]/ -> {suggestion, transcription}