Plugins/care scribe
From OHC Network Wiki
More languages
More actions
Development: All plugins follow the Plugin development cycle. Ensure the repository has a develop branch — feature and fix branches merge there after review.
care_scribe adds voice auto-fill support to CARE consultation forms using external speech-to-text services.
Backend
The backend plug is a Django app that exposes transcription endpoints. Configured via plug_config.py:
from plugs.manager import PlugManager
from plugs.plug import Plug
scribe_plug = Plug(
name="care_scribe",
package_name="git+https://github.com/10bedicu/care_scribe.git",
version="@master",
configs={
"SCRIBE_API_PROVIDER": "openai",
"SCRIBE_OPENAI_API_KEY": "my-api-key",
"SCRIBE_GOOGLE_PROJECT_ID": "my-gcp-project",
"SCRIBE_TNC": "<p>Terms...</p>",
},
)
plugs = [scribe_plug]
manager = PlugManager(plugs)
Supports OpenAI Whisper, Azure OpenAI, and Google Cloud Speech-to-Text.
Frontend
The frontend Care App provides the voice recording UI, audio visualization, and transcription display. Loaded as a federated React bundle in care_fe.
Configuration
| Variable | Description |
|---|---|
SCRIBE_API_PROVIDER |
openai, azure, or google
|
SCRIBE_OPENAI_API_KEY |
OpenAI API key |
SCRIBE_AZURE_API_KEY |
Azure OpenAI API key |
SCRIBE_GOOGLE_PROJECT_ID |
GCP project ID |
SCRIBE_TNC |
Terms & conditions (HTML) |