Start an episode
start_episodeUse this when the user wants a podcast, interview, stream or other video turned into short clips. An audio-only episode (MP3, M4A, WAV, OGG or FLAC) works too: its clips come out as captioned vertical videos drawn with an audio template. With a video or audio file attached in the chat, pass it as file: it is copied into Slice, transcribed, and searched for the moments worth posting, with no further steps. With no file, it returns an upload_url for the user to open and drop the file in (up to three hours and 4.5GB). Follow with get_episode. Do not use when the user only wants the words as text (use transcribe_audio), and do not use for links to YouTube or other web pages; those are not supported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | A video or audio file the user attached in the conversation. | |
| name | No | What to call the episode. Defaults to the file name. | |
| content_type | No | What kind of video it is, which decides how clips are found: podcast (a podcast or interview), stream (a livestream or gaming video) or other (a vlog, challenge, talk or story). Pass it when the user's video is clearly one of these. Otherwise leave it out and Slice will guess. | |
| target_seconds | No | Optional. How long each clip should be, in seconds (15 to 180), when the user asks for a length, e.g. "30 second clips". Every clip found then plays for at most this long and at most 10% less (at least 3 seconds less), cut at clean sentence or pause boundaries; fewer clips come back if few moments fit. Leave it out for clips of any length (30 to 150 seconds). Works with or without a focus. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| status | Yes | ||
| message | Yes | ||
| episode_id | Yes | ||
| upload_url | No | Open this to upload the video or audio file. Works for two hours. |