Skip to content

Commit 4ba95f4

Browse files
committed
cleanup
1 parent 0e0f242 commit 4ba95f4

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

src/rev_ai/apiclient.py

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -363,12 +363,15 @@ def get_transcript_text(self, id_, group_channels_by=None, group_channels_thresh
363363

364364
return response.text
365365

366-
def get_transcript_text_as_stream(self, id_, group_channels_by=None, group_channels_threshold_ms=None):
366+
def get_transcript_text_as_stream(self,
367+
id_,
368+
group_channels_by=None,
369+
group_channels_threshold_ms=None):
367370
"""Get the transcript of a specific job as a plain text stream.
368371
369372
:param id_: id of job to be requested
370373
:param group_channels_by: optional, group channels by speaker or time
371-
:param group_channels_threshold_ms: optional, group channels by time threshold in milliseconds
374+
:param group_channels_threshold_ms: optional, group channels by time threshold, ms
372375
:returns: requests.models.Response HTTP response which can be used to stream
373376
the payload of the response
374377
:raises: HTTPError
@@ -391,12 +394,15 @@ def get_transcript_text_as_stream(self, id_, group_channels_by=None, group_chann
391394

392395
return response
393396

394-
def get_transcript_json(self, id_, group_channels_by=None, group_channels_threshold_ms=None):
397+
def get_transcript_json(self,
398+
id_,
399+
group_channels_by=None,
400+
group_channels_threshold_ms=None):
395401
"""Get the transcript of a specific job as json.
396402
397403
:param id_: id of job to be requested
398404
:param group_channels_by: optional, group channels by speaker or time
399-
:param group_channels_threshold_ms: optional, group channels by time threshold in milliseconds
405+
:param group_channels_threshold_ms: optional, group channels by time threshold, ms
400406
:returns: transcript data as json
401407
:raises: HTTPError
402408
"""
@@ -417,12 +423,15 @@ def get_transcript_json(self, id_, group_channels_by=None, group_channels_thresh
417423

418424
return response.json()
419425

420-
def get_transcript_json_as_stream(self, id_, group_channels_by=None, group_channels_threshold_ms=None):
426+
def get_transcript_json_as_stream(self,
427+
id_,
428+
group_channels_by=None,
429+
group_channels_threshold_ms=None):
421430
"""Get the transcript of a specific job as streamed json.
422431
423432
:param id_: id of job to be requested
424433
:param group_channels_by: optional, group channels by speaker or time
425-
:param group_channels_threshold_ms: optional, group channels by time threshold in milliseconds
434+
:param group_channels_threshold_ms: optional, group channels by time threshold, ms
426435
:returns: requests.models.Response HTTP response which can be used to stream
427436
the payload of the response
428437
:raises: HTTPError
@@ -450,7 +459,7 @@ def get_transcript_object(self, id_, group_channels_by=None, group_channels_thre
450459
451460
:param id_: id of job to be requested
452461
:param group_channels_by: optional, group channels by speaker or time
453-
:param group_channels_threshold_ms: optional, group channels by time threshold in milliseconds
462+
:param group_channels_threshold_ms: optional, group channels by time threshold, ms
454463
:returns: transcript data as a python object
455464
:raises: HTTPError
456465
"""

0 commit comments

Comments
 (0)