Skip to main content

Resp-Agent: A multi-agent framework for respiratory sound diagnosis and generation

Project description

Resp-Agent

A multi-agent framework for respiratory sound diagnosis and generation using deep learning.

Installation

Basic Installation

pip install resp-agent

With CUDA Support (Recommended)

First install PyTorch with CUDA support:

pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu128

Then install resp-agent:

pip install resp-agent

Or install with CUDA dependencies together:

pip install resp-agent[cuda]

Quick Start

Python API

from resp_agent import BEATs, BEATsConfig
from resp_agent.diagnoser import run_diagnoser
from resp_agent.generator import run_generator

# Diagnose respiratory sounds
result = run_diagnoser(
    audio_dir="./audio",
    output_dir="./output",
    metadata_csv="./metadata.csv"
)

# Generate respiratory sounds
audio = run_generator(
    ref_audio="./reference.wav",
    disease="Asthma",
    out_dir="./generated"
)

Command Line Interface

# Run diagnosis
resp-agent diagnose --audio_dir ./audio --output_dir ./output --metadata_csv ./metadata.csv

# Run generation
resp-agent generate --ref_audio ./ref.wav --disease Asthma --out_dir ./output

# Start interactive chat agent
resp-agent chat --lang zh  # Chinese
resp-agent chat --lang en  # English

Requirements

  • Python >= 3.8
  • PyTorch >= 2.0.0 (recommended: 2.8.0 with CUDA 12.8)
  • CUDA-capable GPU (recommended for training and inference)

Environment Variables

Set your DeepSeek API key for the Thinker agent:

export DEEPSEEK_API_KEY='your-api-key'

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

resp_agent-0.1.0.tar.gz (37.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

resp_agent-0.1.0-py3-none-any.whl (43.0 kB view details)

Uploaded Python 3

File details

Details for the file resp_agent-0.1.0.tar.gz.

File metadata

  • Download URL: resp_agent-0.1.0.tar.gz
  • Upload date:
  • Size: 37.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for resp_agent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2ef1268c7aa6e0fdbfd13ae15aed044ea72af6cc7a9bed6e48f64c3616e0d84c
MD5 e9ffd14ca9bc8989123cf652e496add5
BLAKE2b-256 c0b5b582bc536d7c57d9ac26f9e236329a8c3ed4d2adc51d87efdabdb7c26d70

See more details on using hashes here.

File details

Details for the file resp_agent-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: resp_agent-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 43.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for resp_agent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba062e37c2a8c0b7b9216f9d89240190c7aee65135892fb5700c3385bfe11b6a
MD5 aeacb9d0f332db5026d29015004f9fc6
BLAKE2b-256 0b853ccb23eee86d97c62499409436c918ed2b145cae0b9fdb9dc90c1468209c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page