เริ่มต้นใช้งาน nAItingale

nAItingale เป็น Solution สำหรับ Medical Notetaker ใช้สำหรับการสรุปการสนทนาในห้องตรวจ OPD

Request parameter

Parameter
Description
Required

audio_content

ไฟล์หรือข้อมูลเสียง

Yes

ตัวอย่าง Python

import requests
import json
import base64


SERVER = 'https://api.eidy.cloud/naitingale/listen'
API_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'


with open('pakinson.mp3', 'rb') as fh:
    content = fh.read()

res = requests.post(SERVER,
    data=json.dumps({
            "audio_content": base64.encodebytes(content).decode('utf-8'),
        }),
    headers={'Content-type': 'application/json','Authorization': 'Bearer '+ API_KEY}
)

print(res.json())

Response

{
'result': "ถอดความจากเสียง : สำหรับโรคพรรคเคนสันเราจะพบว่ามีอาการของโรคสมองเสื่อมร่วมด้วยได้เหมือนกันโดยส่วนใหญ่แล้วเนี่ยการตรวจรักษาโรคพากินสันเนี่ยเราจะเริ่มจากตรวจร่างกายทางคลินิกครับคนไข้จะมีอาการมือสั่นมือเกร็งแล้วก็เดินเซการทำไอสมองก็มีความสำคัญเพื่อใช้คัดกรองโรคต่างต่างที่อาจจะมีอาการคล้ายกับโรคพากินสันออกไปเพื่อให้การรักษาถูกต้องและแม่นยำ\nสรุปผล OPD: In Parkinson's disease, patients often experience symptoms of dementia as well. The initial assessment for Parkinson's disease typically involves a clinical examination, including observing symptoms such as tremors, rigidity, and abnormal gait. An MRI of the brain is crucial to screen for other conditions that may mimic Parkinson's symptoms, ensuring accurate and precise treatment.", 
'ASR': 'สำหรับโรคพรรคเคนสันเราจะพบว่ามีอาการของโรคสมองเสื่อมร่วมด้วยได้เหมือนกันโดยส่วนใหญ่แล้วเนี่ยการตรวจรักษาโรคพากินสันเนี่ยเราจะเริ่มจากตรวจร่างกายทางคลินิกครับคนไข้จะมีอาการมือสั่นมือเกร็งแล้วก็เดินเซการทำไอสมองก็มีความสำคัญเพื่อใช้คัดกรองโรคต่างต่างที่อาจจะมีอาการคล้ายกับโรคพากินสันออกไปเพื่อให้การรักษาถูกต้องและแม่นยำ', 
'OPD': "In Parkinson's disease, patients often experience symptoms of dementia as well. The initial assessment for Parkinson's disease typically involves a clinical examination, including observing symptoms such as tremors, rigidity, and abnormal gait. An MRI of the brain is crucial to screen for other conditions that may mimic Parkinson's symptoms, ensuring accurate and precise treatment."
}

Last updated