mediasense

v0.5.2
io.github.joaoestella/mediasense Checked 4 days ago Published 25 days ago

Let Claude listen to audio and watch video: transcribe, summarize and edit recordings and links.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_job Check a running job

Get the result of a long-running mediasense job (understand_media, transcribe, render_edit, watch_video). Waits up to ~30s; returns the finished result, or the progress so far plus the same job_id to check again. Without job_id, lists jobs that are still running.

ParameterTypeDescription
job_idstring

media_info Media file info

Duration, resolution, fps and which streams (audio/video) a file has.

ParameterTypeDescription
path *string

transcribe Transcribe speech

Transcribe audio/video (file path or link) with word-level timestamps; auto-detects language. vocabulary: names/jargon likely in the audio (["Cloudflare", "Claude", "Next.js"]) so they are spelled right. Pass them whenever you know them (from the user, the title or the screen). model: tiny | base | small | medium | large-v3 | turbo (bigger = slower, more accurate). backend: faster-whisper (default, local) | whisperx (local, tighter word times, speakers) | openai (API). verbatim: keep hesitations (um, éé, hum) so they can be removed later. diarize: label speakers (wh…

ParameterTypeDescription
path *string
backendstring
diarizeboolean
forceboolean
language
modelstring
verbatimboolean
vocabulary

read_transcript Read a transcript

Read a transcript (pass the media path or the .transcript.json). start/end limit the time range. words=true shows each word as word@seconds.

ParameterTypeDescription
path *string
end
start
wordsboolean

search_transcript Search a transcript

Find every time a word/phrase is said (case, accent and punctuation insensitive).

ParameterTypeDescription
path *string
phrase *string

plan_edit Preview an edit

Preview an edit without writing anything. Same arguments as render_edit. cut_phrases: remove these phrases (all occurrences, or only `occurrence`, 1-based). cut_between: [["from phrase", "to phrase"], ...] removes everything from one to the other, inclusive. cut_ranges: ["1:02-1:05.5", "90-95"]. keep_only: "0:30-2:00". fillers: remove um/uh/éé/hum/euh/äh…; filler_words adds more ("tipo", "you know"). silences: shorten pauses longer than N seconds, leaving silence_keep seconds. silence_source: "audio" (level based) or "transcript" (gaps between words; better with…

ParameterTypeDescription
path *string
cut_between
cut_phrases
cut_ranges
exact_cutsboolean
filler_words
fillersboolean
keep_only
occurrence
silence_keepnumber
silence_sourcestring
silences

render_edit Render an edit to a new file

Apply an edit (see plan_edit for the cut arguments). Never touches the original. Writes <file>.edited.<ext> unless media=false or output is given. edl → Premiere/Resolve/Avid, fcpxml → Final Cut/Resolve, srt → subtitles re-timed to the edited version.

ParameterTypeDescription
path *string
cut_between
cut_phrases
cut_ranges
edlboolean
exact_cutsboolean
fcpxmlboolean
filler_words
fillersboolean
keep_only
mediaboolean
occurrence
output
silence_keepnumber
silence_sourcestring
silences
srtboolean

export_transcript Export subtitles or text

Write the transcript as files next to the media. formats: srt, vtt, txt, csv, json. words_per_cue (e.g. 2) makes short captions for vertical video.

ParameterTypeDescription
formats *array
path *string
words_per_cue

place_audio Place audio into a video

Put an audio clip (or a slice of it) into a video/audio starting at `at`. mode: mix (both play) | duck (original lowered by duck_db) | replace (original muted meanwhile). Video is copied without re-encoding. Writes <base>.placed.<ext> unless output is given.

ParameterTypeDescription
at *string
base *string
insert *string
duck_dbnumber
insert_from
insert_to
modestring
output
volumenumber

watch_video Key frames of a video

Understand a video: key frames at scene changes + what is said during each shot. Returns a shot list (time, speech) and contact-sheet images labelled with shot number and time. Transcribe first to get the speech column. Lower threshold = more sensitive scene detection.

ParameterTypeDescription
path *string
include_imagesboolean
max_framesinteger
threshold

get_frame Get one video frame

Return the video frame at `time` (e.g. "1:23.4") to look at a moment in detail.

ParameterTypeDescription
path *string
time *string
widthinteger

understand_media Watch and listen to a video or audio

Watch and listen to a video or audio – a TikTok, YouTube, Instagram, X or Vimeo link, or a file – to summarize it, explain it or answer questions about it. Use this instead of opening the link in a browser or fetching the page (those sites block that). One call downloads the link, transcribes the speech with timestamps and returns key-frame contact sheets with what is said in each shot, plus the post's title/description. Long videos reply "STILL WORKING" – then call check_job. vocabulary: brand names / jargon to spell right. language: ISO code if known (pt, en…).…

ParameterTypeDescription
source *string
forceboolean
include_imagesboolean
language
max_framesinteger
modelstring
vocabulary