AudioFile
The AudioFile
type represents an audio file. It includes the file’s metadata and any extracted information.
Schema
Field | Type | Description |
---|---|---|
id | string | Unique identifier |
createdAt | datetime | Creation timestamp |
updatedAt | datetime | Last update timestamp |
sourceId | string | ID of the data source |
remoteId | string | ID in original system |
title | string | Audio file title |
url | string | Audio file URL |
path | string[] | File path |
pathString | string | Path as string |
mimeType | string | MIME type |
originalName | string | Original filename |
size | number | File size in bytes |
duration | number | Duration in seconds |
bitrate | number | Bitrate in bits/s |
sampleRate | number | Sample rate in Hz |
channels | number | Number of channels |
codec | string | Audio codec |
format | string | Audio format |
transcription | string | Transcribed text |
properties | object | Additional properties |
tags | string[] | Audio file tags |
Related Types
Example Usage
// Get all audio files
const { data } = await unbody.get
.audioFile
.select("title", "url", "duration")
.exec();
// Search audio files
const { data } = await unbody.get
.audioFile
.search.about("my search query")
.exec();
// Filter audio files
const { data } = await unbody.get
.audioFile
.where({ format: "mp3" })
.exec();
Next Steps
- Learn about searching audio files
- Explore filtering options
- See sorting capabilities