analyze_track
Analyze a local audio file to return BPM, key, genres, moods, instruments, energy, and 35+ metadata fields. Supports mp3, wav, flac, aiff, m4a, ogg up to 15 MB.
Instructions
Analyze a LOCAL audio file (mp3/wav/flac/aiff/m4a/ogg, up to 15 MB) with TrackTag AI. Returns BPM, key, genres, moods, instruments, energy and 35+ metadata fields. Costs 1 TrackTag credit (model 'core') or 2 ('ultra') from the user's balance; failed analyses are auto-refunded. Needs the file's real path on this machine — if you only know the track's name (e.g. the user dragged a file into chat), call find_audio_files first. For files over 15 MB or already-hosted audio, use analyze_url.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | core = 1 credit, ultra = 2 credits (deeper analysis) | core |
| file_path | Yes | Absolute path to the audio file on this machine | |
| track_name | No | Display name; defaults to the file name |