Spaces:
Running
Running
A newer version of the Gradio SDK is available:
5.44.1
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
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
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