This repository contains utilities and example use-cases for the AudioShake API. For more information, check out developer.audioshake.ai. audioshake_client.py can easily be integrated into other applications.
Install Python dependencies with:
pip install -r requirements.txt- ffmpeg: Required for audio processing
- Install on Mac:
brew install ffmpeg - Install on Ubuntu:
sudo apt install ffmpeg - Install on Windows: Download or
choco install ffmpeg
- Install on Mac:
An AudioShake API key is hardcoded in the examples. It will expire after the session ends. The following API keys are required for certain features:
-
OpenAI API: Required for speech transcription
- Set as environment variable:
OPENAI_API_KEY - Get from: OpenAI Platform
- Set as environment variable:
-
ElevenLabs API: Required for voice synthesis
- Set as environment variable:
ELEVENLABS_API_KEY - Get from: ElevenLabs Dashboard
- Set as environment variable:
The repository contains several examples:
- Audio Source Separation: Split songs into vocals, drums, bass, etc.
- Speech Recognition: Convert audio to text using OpenAI's Whisper model
- Voice Synthesis: Generate speech with ElevenLabs voices
- Clone the repository
- Install dependencies:
pip install -r requirements.txt - Install ffmpeg (see System Dependencies above)
- Set up your API keys as environment variables
- Run the example scripts in the folders
01_api_basics/: Basic API usage examples02_music_stems/: Music source separation examples03_copyright_compliance: Music detection, removal, and replacement04_asr_workflows/: Speech recognition workflows- Media helpers for audio processing