write Python code to send multiple audio files to the backend using requests module
write Python code to send multiple audio files to the backend using requests module

To send multiple audio files to the backend using the `requests` module in Python, you can use the `multipart/form-data` encoding. Here's a simple example:

```python
import requests
import io
from PIL import Image

# List of audio files to send
audio_files = ['audio1.wav', 'audio2.wav', 'audio3.wav']

url = "http://your-backend-url.com/upload"  # Replace with your backend URL
files = {}

for file in audio_files:
    with open(file, 'rb') as f:
        files[file] = f

response = requests.post(url, files=files)

if response.status_code == 200:
    print("Files uploaded successfully")
else:
    print("Failed to upload files", response.status_code)
```

In this example, replace `'audio1.wav'`, `'audio2.wav'`, and `'audio3.wav'` with the paths to your audio files, and `'http://your-backend-url.com/upload'` with the URL of your backend.

This code opens each audio file in binary mode, creates a dictionary where the keys are the file names and the values
import requests

for audio_file in audio_files:
    url = 'http://example.com/audio_file.mp3'
    r = requests.get(url)
    response_audio = r.content
    print(response_audio)