Skip to content

Commit ee356bd

Browse files
committed
update docs
1 parent d39ea12 commit ee356bd

File tree

1 file changed

+23
-13
lines changed

1 file changed

+23
-13
lines changed

src/rev_ai/apiclient.py

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -337,12 +337,14 @@ def get_list_of_jobs(self, limit=None, starting_after=None):
337337

338338
return [Job.from_json(job) for job in response.json()]
339339

340-
def get_transcript_text(self, id_, group_channels_by=None, group_channels_threshold_ms=None):
340+
def get_transcript_text(self, id_, group_channels_by=None, group_channels_threshold_ms=1000):
341341
"""Get the transcript of a specific job as plain text.
342342
343343
:param id_: id of job to be requested
344-
:param group_channels_by: optional, group channels by speaker or time
345-
:param group_channels_threshold_ms: optional, group channels by time threshold, ms
344+
:param group_channels_by: optional, GroupChannelsType grouping strategy for
345+
multichannel transcripts. None for default.
346+
:param group_channels_threshold_ms: optional, grouping threshold in milliseconds.
347+
None for default.
346348
:returns: transcript data as text
347349
:raises: HTTPError
348350
"""
@@ -370,8 +372,10 @@ def get_transcript_text_as_stream(self,
370372
"""Get the transcript of a specific job as a plain text stream.
371373
372374
:param id_: id of job to be requested
373-
:param group_channels_by: optional, group channels by speaker or time
374-
:param group_channels_threshold_ms: optional, group channels by time threshold, ms
375+
:param group_channels_by: optional, GroupChannelsType grouping strategy for
376+
multichannel transcripts. None for default.
377+
:param group_channels_threshold_ms: optional, grouping threshold in milliseconds.
378+
None for default.
375379
:returns: requests.models.Response HTTP response which can be used to stream
376380
the payload of the response
377381
:raises: HTTPError
@@ -401,8 +405,10 @@ def get_transcript_json(self,
401405
"""Get the transcript of a specific job as json.
402406
403407
:param id_: id of job to be requested
404-
:param group_channels_by: optional, group channels by speaker or time
405-
:param group_channels_threshold_ms: optional, group channels by time threshold, ms
408+
:param group_channels_by: optional, GroupChannelsType grouping strategy for
409+
multichannel transcripts. None for default.
410+
:param group_channels_threshold_ms: optional, grouping threshold in milliseconds.
411+
None for default.
406412
:returns: transcript data as json
407413
:raises: HTTPError
408414
"""
@@ -430,8 +436,10 @@ def get_transcript_json_as_stream(self,
430436
"""Get the transcript of a specific job as streamed json.
431437
432438
:param id_: id of job to be requested
433-
:param group_channels_by: optional, group channels by speaker or time
434-
:param group_channels_threshold_ms: optional, group channels by time threshold, ms
439+
:param group_channels_by: optional, GroupChannelsType grouping strategy for
440+
multichannel transcripts. None for default.
441+
:param group_channels_threshold_ms: optional, grouping threshold in milliseconds.
442+
None for default.
435443
:returns: requests.models.Response HTTP response which can be used to stream
436444
the payload of the response
437445
:raises: HTTPError
@@ -458,8 +466,10 @@ def get_transcript_object(self, id_, group_channels_by=None, group_channels_thre
458466
"""Get the transcript of a specific job as a python object`.
459467
460468
:param id_: id of job to be requested
461-
:param group_channels_by: optional, group channels by speaker or time
462-
:param group_channels_threshold_ms: optional, group channels by time threshold, ms
469+
:param group_channels_by: optional, GroupChannelsType grouping strategy for
470+
multichannel transcripts. None for default.
471+
:param group_channels_threshold_ms: optional, grouping threshold in milliseconds.
472+
None for default.
463473
:returns: transcript data as a python object
464474
:raises: HTTPError
465475
"""
@@ -868,8 +878,8 @@ def _build_transcript_url(self, id_, group_channels_by=None, group_channels_thre
868878
"""Build the get transcript url.
869879
870880
:param id_: id of job to be requested
871-
:param group_channels_by: optional, group channels by speaker or time
872-
:param group_channels_threshold_ms: optional, group channels by time threshold, ms
881+
:param group_channels_by: optional, None for default, multichannel transcript grouping strategy
882+
:param group_channels_threshold_ms: optional, None for default, grouping threshold, milliseconds
873883
:returns: url for getting the transcript
874884
"""
875885
params = []

0 commit comments

Comments
 (0)