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:
2019-03-07 22:55:37 -05:00
parent ed2ece3dfb
commit 3fc6dacfde
9 changed files with 75 additions and 62 deletions

View File

@@ -79,13 +79,14 @@ def test_google():
g = GoogleConverter(transcript_data)
g.convert()
print(g.converted_words[0])
assert g.converted_words[0] == {
'start': 4,
'end': 5.5,
'confidence': 0.88,
'word': 'Testing',
'always_capitalized': False,
'punc_after': [','],
'punc_before': False,
}
'start': 0.4,
'end': 2.1,
'confidence': 0.9128385782241821,
'word': 'Okay',
'always_capitalized': False,
'punc_after': [','],
'punc_before': False,
'speaker_id': None
}