<aside> ⚠️ These docs are still in Beta and are subject to rapid change.
</aside>
The AMDA$^{pi}$ Python SDK allows for easy use of the AMDAPi API services in a native python environment.
Please request access credentials from AMDAPi.
pip install amdapi
from amdapi import Client
client_id = "XXXXXXXXXXXXXXXXXXXXXXXXXX"
client_secret = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
client = Client(client_id, client_secret)
filename = "6c89833033cd57c3cfeb1ad8445821a6714d9bf6cd3613b723ac1cfb"
file_path = f"{filename}.wav"
params = {
"client_id": 12345,
"agent_id": 12345,
"filename": filename,
"call_id": 12345,
"customer_id": 12345,
"origin":"Inbound",
"language":"en",
"summary": True,
"agent_channel": 1, # <- Indicates that the audio is stereo and that the agent is on channel 1, will be ignored if audio is mono
}
with open(file_path, 'rb') as file:
call = client.analyze_call(file, **params)