made google work again after change in formatting of saved transcript. added speaker_id support to base class and Google
This commit is contained in:
@@ -4,11 +4,14 @@ def universal_transcript(self, pretty=False):
|
||||
return json.dumps(self.converted_words, indent=4 if pretty else None)
|
||||
|
||||
def viral_overlay(self, pretty=False):
|
||||
return json.dumps([{
|
||||
'start': word['start'],
|
||||
'stop': word['end'],
|
||||
'text': word['word'].title() if word['always_capitalized'] else word['word']}
|
||||
return json.dumps([
|
||||
{'start': word['start'],
|
||||
'stop': word['end'],
|
||||
'text': word['word'].title()
|
||||
if word['always_capitalized'] else word['word']
|
||||
}
|
||||
|
||||
for word in self.converted_words], indent=4 if pretty else None
|
||||
for word in self.converted_words]
|
||||
, indent=4 if pretty else None
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user