forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaudio_file.py
More file actions
16 lines (13 loc) · 759 Bytes
/
Copy pathaudio_file.py
File metadata and controls
16 lines (13 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from datetime import datetime
from typing import List, Optional
from pydantic import BaseModel, Field
class AudioFile(BaseModel):
id: str = Field(description="Unique identifier for the audio file")
uid: str = Field(description="User ID who owns this audio file")
conversation_id: str = Field(description="ID of the conversation this audio belongs to")
chunk_timestamps: List[float] = Field(description="List of chunk timestamps (for on-demand merging)")
provider: str = Field(default="gcp", description="Storage provider (e.g., 'gcp')")
started_at: Optional[datetime] = Field(
default=None, description="When this audio file started (absolute timestamp)"
)
duration: float = Field(description="Duration in seconds")