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.
Example
In the example below, we set the model
parameter to precision_medical
.
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()
Run
python3 configure_model_medical.py
Output
He 180 60
was 420 60
two 660 60
...
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}`);
}
})();
Run
node configure_model_medical.js
Output
He 180 60
was 420 60
two 660 60
...