Integrate Leadrogenie's powerful audio processing capabilities into your applications
This endpoint allows you to upload an audio file and trigger multiple analysis services such as transcription, summarization, sentiment analysis, VoC extraction, and evaluation.
https://app.leadrogenie.com/api/upload-audio-transcript
Header | Type | Description |
---|---|---|
x-api-key | string | Your API key for authentication |
Parameter | Type | Required | Description |
---|---|---|---|
audio | file | * | Audio file (mp3, wav, aac, or flac) |
audio_url | string | * | URL to audio file (alternative to audio) |
project_id | string | Yes | ID of the project to link the audio to |
has_transcript | boolean | No | If true, generate transcription |
has_summary | boolean | No | If true, generate a summary |
has_sentiment | boolean | No | If true, perform sentiment analysis |
has_voc | boolean | No | If true, extract Voice of the Customer (VoC) insights |
has_evaluation | boolean | No | If true, evaluate the call with scoring |
qa_id | string | No | Optional question-answer set ID for evaluation |
Note: Either audio
(file upload) or audio_url
is required, but not both.
curl -X POST https://app.leadrogenie.com/api/upload-audio-transcript \
-H "x-api-key: YOUR_API_KEY" \
-F "audio=@/path/to/audio.mp3" \
-F "project_id=PROJECT_ID" \
-F "has_transcript=true" \
-F "has_summary=true" \
-F "has_sentiment=true" \
-F "has_voc=false" \
-F "has_evaluation=true" \
-F "qa_id=OPTIONAL_QA_ID"
curl -X POST https://app.leadrogenie.com/api/upload-audio-transcript \
-H "x-api-key: YOUR_API_KEY" \
-F "audio_url=https://example.com/path/to/audio.mp3" \
-F "project_id=PROJECT_ID" \
-F "has_transcript=true" \
-F "has_summary=true" \
-F "has_sentiment=true" \
-F "has_voc=false" \
-F "has_evaluation=true" \
-F "qa_id=OPTIONAL_QA_ID"
{
"message": "Audio uploaded successfully",
"conversation_id": "661bfa..."
}
{
"message": "Error uploading audio"
}
When a request is made to this endpoint:
conversation_id
to help you track processing and retrieve results