You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/subsai/models/stable_ts_model.py
+22-9Lines changed: 22 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,20 @@ class StableTsModel(AbstractModel):
63
63
'options': None,
64
64
'default': None
65
65
},
66
+
'word_timestamps': {
67
+
'type': bool,
68
+
'description': 'Extract word-level timestamps using the cross-attention pattern'
69
+
'and dynamic time warping, and include the timestamps for each word in each segment.',
70
+
'options': None,
71
+
'default': False
72
+
},
73
+
'word_tags': {
74
+
'type': str,
75
+
'description': 'When word_timestamps is True, you can use this option to wrap each word with specified tags for styling, e.g., <font color="#FFB600">,</font>. '
76
+
'Separate open and close tags with a comma. Leave empty to display words on separate lines.',
77
+
'options': None,
78
+
'default': '<font color="#FFB600">,</font>'
79
+
},
66
80
'temperature': {
67
81
'type': Tuple,
68
82
'description': "Temperature for sampling. It can be a tuple of temperatures, which will be "
@@ -105,13 +119,6 @@ class StableTsModel(AbstractModel):
105
119
'options': None,
106
120
'default': None
107
121
},
108
-
'word_timestamps': {
109
-
'type': bool,
110
-
'description': 'Extract word-level timestamps using the cross-attention pattern'
111
-
'and dynamic time warping, and include the timestamps for each word in each segment.',
112
-
'options': None,
113
-
'default': True
114
-
},
115
122
'regroup': {
116
123
'type': bool,
117
124
'description': "default True, meaning the default regroup algorithm"
0 commit comments