Medical Domain Model

We offer a medical domain model for recognition of words that are common in the medical settings, such as diagnoses, medications, symptoms, treatments, diseases and anatomical parts.

Use the medical domain model for medical conversations between providers and patients.

The medical model is based on the precision model to achieve the highest level of accuracy.

Example

In the example below, we set the model parameter to precision_medical.

configure_model_medical.py

from soniox.transcribe_file import transcribe_file_short
from soniox.speech_service import SpeechClient, set_api_key

set_api_key("<YOUR-API-KEY>")


def main():
    with SpeechClient() as client:
        result = transcribe_file_short(
            "../test_data/test_audio.flac", client, model="precision_medical"
        )
        for word in result.words:
            print(f"{word.text} {word.start_ms} {word.duration_ms}")


if __name__ == "__main__":
    main()

configure_model_medical.js

const { SpeechClient } = require("@soniox/soniox-node");

// Do not forget to set your Soniox API key.
const speechClient = new SpeechClient();

(async function () {
    const result = await speechClient.transcribeFileShort(
        "../test_data/test_audio.flac",
        {
            model: "precision_medical"
        }
    );

    for (const word of result.words) {
        console.log(`${word.text} ${word.start_ms} ${word.duration_ms}`);
    }
})();
cookie Change your cookie preferences