Skip to content

Commit 6c3c50a

Browse files
chore: change class shape for text and radio/checklist
1 parent 7861537 commit 6c3c50a

File tree

1 file changed

+22
-1
lines changed
  • libs/labelbox/src/labelbox/data/annotation_types

1 file changed

+22
-1
lines changed

libs/labelbox/src/labelbox/data/annotation_types/audio.py

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,28 @@ class AudioClassificationAnnotation(ClassificationAnnotation):
2424
"""
2525

2626
start_frame: int
27-
end_frame: Optional[int] = None
2827
segment_index: Optional[int] = None
2928

3029

30+
class AudioTextClassificationAnnotation(ClassificationAnnotation):
31+
"""Audio classification for specific time range
32+
33+
Examples:
34+
- Speaker identification from 2500ms to 4100ms
35+
- Audio quality assessment for a segment
36+
- Language detection for audio segments
37+
38+
Args:
39+
name (Optional[str]): Name of the classification
40+
feature_schema_id (Optional[Cuid]): Feature schema identifier
41+
value (Union[Text, Checklist, Radio]): Classification value
42+
start_frame (int): The frame index in milliseconds (e.g., 2500 = 2.5 seconds)
43+
end_frame (Optional[int]): End frame in milliseconds (for time ranges)
44+
segment_index (Optional[int]): Index of audio segment this annotation belongs to
45+
extra (Dict[str, Any]): Additional metadata
46+
"""
47+
48+
start_frame: int
49+
end_frame: int = None
50+
51+

0 commit comments

Comments
 (0)