Skip to content

10bedicu/care_scribe

Repository files navigation

Care Scribe

Release Status Build Status

Care Scribe is a plugin for care to add voice auto fill support using external services like OpenAI whisper and Google Speech to Text.

Features

  • Voice auto fill support for care
  • Support for OpenAI whisper and Google Speech to Text

Installation

https://care-be-docs.ohc.network/pluggable-apps/configuration.html

https://github.com/ohcnetwork/care/blob/develop/plug_config.py

To install care scribe, you can add the plugin config in care/plug_config.py as follows:

...

scribe_plug = Plug(
    name="care_scribe",
    package_name="git+https://github.com/ohcnetwork/care_scribe.git",
    version="@master",
    configs={
        "SCRIBE_API_PROVIDER": "openai",  # or "azure" or "google"
=       "SCRIBE_PROVIDER_API_KEY": "my-api-key" # not required if API_PROVIDER is "google"
        "SCRIBE_AUDIO_MODEL_NAME": "",  # model name for speech to text - Not required for Google
        "SCRIBE_CHAT_MODEL_NAME": "",  # model name for chat completion

        # Azure OpenAI Configs
        "SCRIBE_AZURE_API_VERSION": "",
        "SCRIBE_AZURE_ENDPOINT": "",

        # Google Configs
        "SCRIBE_GOOGLE_PROJECT_ID": "my-gcp-project",
        "SCRIBE_GOOGLE_LOCATION": "us-central1",
        
    },
)
plugs = [scribe_plug]
...

The plugin will try to find the API key from the config first and then from the environment variable.

License

This project is licensed under the terms of the MIT license.


This plugin was created with Cookiecutter using the ohcnetwork/care-plugin-cookiecutter.

About

AI autofill plug for care

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 6