Listen โ From audio file
POST/listen
Generate a transcript and a structured clinical note from an audio file. Only audio/* mime types are supported. The maximum duration is 10 minutes. If you have longer files, please use the asynchronous equivalent.
Requestโ
- multipart/form-data
Body
required
request_parameters
objectrequired
Specifies which items you want us to send you back. In other words, which feature(s) you want to use, transcription and/or note generation.
Possible values: [transcript_item, note]
Language spoken in the audio ('fr' and 'en' are deprecated, and correspond to 'fr-FR' and 'en-US' respectively. Generating a note in 'es-ES' and 'es-MX' is not supported and will be soon removed).
Possible values: [fr, en, en-US, en-GB, fr-FR, es-ES, es-MX]
en-USIndicates whether to segment transcription results at sentence boundaries. Default is false, meaning that a single transcript item may encompass multiple sentences, provided they are not delineated by pauses (silence) in the audio.
falseChoose a desired style for note sections:
โข paragraphs: Prioritizes generating paragraphs;
โข bullet_points: Prioritizes structuring content using bullet points.
โข auto: Automatically picks the most natural formatting option.
Default is auto.
Possible values: [auto, paragraphs, bullet_points]
paragraphsFlag to structure the content of the note sections according to distinct clinical problems or topics addressed during the consultation.
When this flag is enabled, the text within some sections of the clinical note is organized into subsections, each corresponding to a specific problem or topic. This format aims to enhance the clarity and organization of the clinical note, making it easier to read and understand the different issues discussed during the consultation.
Important: Currently, the application of this flag is limited to the HISTORY_OF_PRESENT_ILLNESS and SOAP_SUBJECTIVE sections and is only effective when the language is set to English (US or GB).
falseThe desired template of the generated note.
Some templates are only available in specific languages. Check Note template for details.
Possible values: [GENERAL_MEDICINE, GENERAL_MEDICINE_AP_MERGED, CARDIOLOGY, PSYCHIATRY, DIET, PSYCHOLOGY, SOAP, GENERAL_MEDICINE_WCC, SOAP_WCC, GENERAL_MEDICINE_EMERGENCY, SOAP_EMERGENCY]
GENERAL_MEDICINEResponsesโ
- 200
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
transcript
object[]
The transcribed text.
Also, Iโm allergic to peanuts.Who said the text in this transcript item.
Possible values: [doctor, patient, unspecified]
doctorStart time of this transcription item as the offset, in milliseconds, from the start of the audio file.
65100End time of this transcription item as the offset, in milliseconds, from the start of the audio file. Equals the start_time_ms plus the duration of the related transcribed audio portion.
69300note
object
Title of the note.
Fever and strong headachesections
object[]
required
A key identifying a section of a note. The set of possible keys depend on the template that is used. Check Note template for possible values.
Possible values: [ALLERGIES, APPOINTMENTS, ASSESSMENT, ASSESSMENT_AND_PLAN, CARDIOVASCULAR_RISKS, CHIEF_COMPLAINT, CURRENT_MEDICATIONS, DIET_APPOINTMENTS, DIET_CHIEF_COMPLAINT, DIET_HABITS, DIET_LIFESTYLE, DIET_MEDICAL_HISTORY, DIET_OBJECTIVES, DIET_VITALS, FAMILY_HISTORY, HISTORY_OF_PRESENT_ILLNESS, IMAGING_RESULTS, IMMUNIZATIONS, LAB_RESULTS, MENTAL_HEALTH_EXAM, MENTAL_HEALTH_HISTORY, PAST_MEDICAL_HISTORY, PAST_OBSTETRIC_HISTORY, PAST_SURGICAL_HISTORY, PHYSICAL_EXAM, PLAN, PRESCRIPTION, PSYCHOLOGY_HISTORY_OF_COMPLAINT, SOAP_ASSESSMENT, SOAP_OBJECTIVE, SOAP_PLAN, SOAP_SUBJECTIVE, SOCIAL_HISTORY, VITALS, WELL_CHILD_CARE]
CHIEF_COMPLAINTThe section title.
Chief complaintContent of the note section.
Sleep disorder{
"transcript": [
{
"text": "Also, Iโm allergic to peanuts.",
"speaker": "doctor",
"start_offset_ms": 65100,
"end_offset_ms": 69300
}
],
"note": [
{
"key": "CHIEF_COMPLAINT",
"title": "Chief complaint",
"text": "Fatigue and headaches"
},
{
"key": "SYMPTOMS",
"title": "Symptoms",
"text": "- Tiredness all day long\n- Mild headaches on the right side"
}
]
}