fixed bug in cli that didn't handle txt files (from google)
This commit is contained in:
@@ -9,6 +9,7 @@ from .. import helpers
|
||||
class AmazonConverter(TranscriptConverter):
|
||||
|
||||
name = 'amazon'
|
||||
transcript_type = dict
|
||||
|
||||
def __init__(self, json_data):
|
||||
super().__init__(json_data)
|
||||
|
||||
@@ -6,6 +6,7 @@ from ..converter import TranscriptConverter
|
||||
class GentleConverter(TranscriptConverter):
|
||||
|
||||
name = 'gentle'
|
||||
transcript_type = dict
|
||||
|
||||
def __init__(self, json_data):
|
||||
super().__init__(json_data)
|
||||
|
||||
@@ -8,6 +8,8 @@ from .. import helpers
|
||||
|
||||
class GoogleConverter(TranscriptConverter):
|
||||
|
||||
transcript_type = str
|
||||
|
||||
def __init__(self, transcript_data: str):
|
||||
super().__init__(transcript_data)
|
||||
self.json_data = self.pre_process(transcript_data)
|
||||
|
||||
@@ -9,6 +9,7 @@ from .. import helpers
|
||||
class SpeechmaticsConverter(TranscriptConverter):
|
||||
|
||||
name = 'speechmatics'
|
||||
transcript_type = dict
|
||||
|
||||
def __init__(self, path):
|
||||
super().__init__(path)
|
||||
|
||||
Reference in New Issue
Block a user