From 418cb535622fb7f4f5ad36b8f2538187d44dd931 Mon Sep 17 00:00:00 2001 From: Brian Barrow Date: Tue, 1 Nov 2022 13:27:35 -0600 Subject: [PATCH 1/2] added formatting features --- deepgram/_types.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/deepgram/_types.py b/deepgram/_types.py index 9eb04576..1c912fcd 100644 --- a/deepgram/_types.py +++ b/deepgram/_types.py @@ -63,13 +63,20 @@ class TranscriptionOptions(TypedDict, total=False): version: str multichannel: bool alternatives: int + # numerals will be deprecated in the future numerals: bool + numbers: bool + numbers_spaces: bool search: List[str] callback: str keywords: List[str] ner: str tier: str - replace: str + dates: str + date_format: str + times: str + dictation: str + measurements: str class PrerecordedOptions(TranscriptionOptions, total=False): From 583b2542f3a4786f144a68b41c7137d1d78ed28d Mon Sep 17 00:00:00 2001 From: Brian Barrow Date: Tue, 15 Nov 2022 11:01:38 -0700 Subject: [PATCH 2/2] changed to booleans, added replace back in --- deepgram/_types.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/deepgram/_types.py b/deepgram/_types.py index 1c912fcd..885e3195 100644 --- a/deepgram/_types.py +++ b/deepgram/_types.py @@ -72,11 +72,12 @@ class TranscriptionOptions(TypedDict, total=False): keywords: List[str] ner: str tier: str - dates: str + dates: bool date_format: str - times: str - dictation: str - measurements: str + times: bool + dictation: bool + measurements: bool + replace: str class PrerecordedOptions(TranscriptionOptions, total=False):