Digital Twin is a machine learning-powered platform leveraging cough acoustics for non-invasive, continuous respiratory disease screening.
This Python application provides a simple interface to interact with the VAPI API for audio analysis.
- Install dependencies:
pip install -r requirements.txt- Create a
.envfile in the project root with your API key:
VAPI_API_KEY=your_api_key_here
The application provides a simple interface to analyze audio files. Here's how to use it:
from vapi_client import VAPIClient
# Initialize the client
client = VAPIClient()
# Analyze an audio file
analysis = client.analyze_audio("path/to/your/audio/file.wav")
# Save the results
if analysis:
client.save_analysis_results(analysis, "audio_analysis.json")- Analyze audio files using the VAPI API
- Save analysis results to JSON files
- Error handling and file management
- Python 3.7+
- Required packages (see requirements.txt):
- requests
- python-dotenv
