audio-edit / README.md
liuyang
init
4771e75

A newer version of the Gradio SDK is available: 5.44.1

Upgrade
metadata
title: Audio Editor
emoji: 🎡
colorFrom: yellow
colorTo: purple
sdk: gradio
sdk_version: 5.39.0
app_file: app.py
pinned: false
short_description: Audio editing service

🎡 Audio Editor

A Hugging Face Space for audio editing operations. Upload audio files via URL and perform various editing operations.

✨ Features

🎯 Audio Cut

  • Input: Audio URL, start time (seconds), duration (seconds)
  • Output: Cut audio segment as downloadable file
  • Formats: Supports MP3, WAV, OGG, M4A, and more
  • API Access: Results are accessible via Gradio API endpoints

πŸš€ Usage

  1. Via Web Interface:

    • Enter the URL of your audio file
    • Specify start time and duration in seconds
    • Click "Cut Audio" to process
    • Download or play the result
  2. Via API:

    import requests
    
    response = requests.post(
        "https://your-space-url/api/predict",
        json={
            "data": [
                "https://example.com/audio.mp3",  # audio_url
                10,                                # start_time
                5                                  # duration
            ]
        }
    )
    

πŸ”§ Technical Details

  • Built with Gradio for the web interface
  • Uses pydub for audio processing
  • Supports streaming download of large audio files
  • Automatic cleanup of temporary files
  • Comprehensive error handling and validation

πŸ“ Examples

  • Cut first 5 seconds: start_time=0, duration=5
  • Cut middle section: start_time=30, duration=15
  • Cut until end: start_time=60, duration=999999

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference