diff --git a/reference.md b/reference.md
index a42689d4..ca03cf1f 100644
--- a/reference.md
+++ b/reference.md
@@ -109,7 +109,7 @@ client.auth.v1.tokens.grant()
-
-**ttl_seconds:** `typing.Optional[int]` — Time to live in seconds for the token. Defaults to 30 seconds.
+**ttl_seconds:** `typing.Optional[float]` — Time to live in seconds for the token. Defaults to 30 seconds.
@@ -468,6 +468,14 @@ client.listen.v1.media.transcribe_url(
-
+**mip_opt_out:** `typing.Optional[bool]` — Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip
+
+
+
+
+
+-
+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
@@ -816,6 +824,14 @@ client.listen.v1.media.transcribe_file()
-
+**mip_opt_out:** `typing.Optional[bool]` — Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip
+
+
+
+
+
+-
+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
@@ -1086,7 +1102,7 @@ client.manage.v1.projects.get(
-
-**limit:** `typing.Optional[int]` — Number of results to return per page. Default 10. Range [1,1000]
+**limit:** `typing.Optional[float]` — Number of results to return per page. Default 10. Range [1,1000]
@@ -1094,7 +1110,7 @@ client.manage.v1.projects.get(
-
-**page:** `typing.Optional[int]` — Navigate and return the results to retrieve specific portions of information of the response
+**page:** `typing.Optional[float]` — Navigate and return the results to retrieve specific portions of information of the response
@@ -2033,7 +2049,7 @@ client.manage.v1.projects.requests.list(
-
-**limit:** `typing.Optional[int]` — Number of results to return per page. Default 10. Range [1,1000]
+**limit:** `typing.Optional[float]` — Number of results to return per page. Default 10. Range [1,1000]
@@ -2041,7 +2057,7 @@ client.manage.v1.projects.requests.list(
-
-**page:** `typing.Optional[int]` — Navigate and return the results to retrieve specific portions of information of the response
+**page:** `typing.Optional[float]` — Navigate and return the results to retrieve specific portions of information of the response
@@ -2959,7 +2975,7 @@ client.manage.v1.projects.billing.purchases.list(
-
-**limit:** `typing.Optional[int]` — Number of results to return per page. Default 10. Range [1,1000]
+**limit:** `typing.Optional[float]` — Number of results to return per page. Default 10. Range [1,1000]
@@ -3998,6 +4014,14 @@ client.read.v1.text.analyze(
-
+**tag:** `typing.Optional[typing.Union[str, typing.Sequence[str]]]` — Label your requests for the purpose of identification during usage reporting
+
+
+
+
+
+-
+
**topics:** `typing.Optional[bool]` — Detect topics throughout a transcript or text
@@ -4477,7 +4501,15 @@ client.speak.v1.audio.generate(
-
-**bit_rate:** `typing.Optional[int]` — The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type.
+**tag:** `typing.Optional[typing.Union[str, typing.Sequence[str]]]` — Label your requests for the purpose of identification during usage reporting
+
+
+
+
+
+-
+
+**bit_rate:** `typing.Optional[float]` — The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type.
@@ -4509,7 +4541,7 @@ client.speak.v1.audio.generate(
-
-**sample_rate:** `typing.Optional[int]` — Sample Rate specifies the sample rate for the output audio. Based on the encoding, different sample rates are supported. For some encodings, the sample rate is not configurable
+**sample_rate:** `typing.Optional[float]` — Sample Rate specifies the sample rate for the output audio. Based on the encoding, different sample rates are supported. For some encodings, the sample rate is not configurable
diff --git a/src/deepgram/__init__.py b/src/deepgram/__init__.py
index 8068c039..5f92b5ea 100644
--- a/src/deepgram/__init__.py
+++ b/src/deepgram/__init__.py
@@ -84,7 +84,6 @@
ListenV1Encoding,
ListenV1Endpointing,
ListenV1Extra,
- ListenV1FillerWords,
ListenV1InterimResults,
ListenV1Keyterm,
ListenV1Keywords,
@@ -458,7 +457,6 @@
"ListenV1Encoding": ".types",
"ListenV1Endpointing": ".types",
"ListenV1Extra": ".types",
- "ListenV1FillerWords": ".types",
"ListenV1InterimResults": ".types",
"ListenV1Keyterm": ".types",
"ListenV1Keywords": ".types",
@@ -792,7 +790,6 @@ def __dir__():
"ListenV1Encoding",
"ListenV1Endpointing",
"ListenV1Extra",
- "ListenV1FillerWords",
"ListenV1InterimResults",
"ListenV1Keyterm",
"ListenV1Keywords",
diff --git a/src/deepgram/auth/v1/tokens/client.py b/src/deepgram/auth/v1/tokens/client.py
index 964e120d..6cbc7d4c 100644
--- a/src/deepgram/auth/v1/tokens/client.py
+++ b/src/deepgram/auth/v1/tokens/client.py
@@ -27,14 +27,14 @@ def with_raw_response(self) -> RawTokensClient:
return self._raw_client
def grant(
- self, *, ttl_seconds: typing.Optional[int] = OMIT, request_options: typing.Optional[RequestOptions] = None
+ self, *, ttl_seconds: typing.Optional[float] = OMIT, request_options: typing.Optional[RequestOptions] = None
) -> GrantV1Response:
"""
Generates a temporary JSON Web Token (JWT) with a 30-second (by default) TTL and usage::write permission for core voice APIs, requiring an API key with Member or higher authorization. Tokens created with this endpoint will not work with the Manage APIs.
Parameters
----------
- ttl_seconds : typing.Optional[int]
+ ttl_seconds : typing.Optional[float]
Time to live in seconds for the token. Defaults to 30 seconds.
request_options : typing.Optional[RequestOptions]
@@ -74,14 +74,14 @@ def with_raw_response(self) -> AsyncRawTokensClient:
return self._raw_client
async def grant(
- self, *, ttl_seconds: typing.Optional[int] = OMIT, request_options: typing.Optional[RequestOptions] = None
+ self, *, ttl_seconds: typing.Optional[float] = OMIT, request_options: typing.Optional[RequestOptions] = None
) -> GrantV1Response:
"""
Generates a temporary JSON Web Token (JWT) with a 30-second (by default) TTL and usage::write permission for core voice APIs, requiring an API key with Member or higher authorization. Tokens created with this endpoint will not work with the Manage APIs.
Parameters
----------
- ttl_seconds : typing.Optional[int]
+ ttl_seconds : typing.Optional[float]
Time to live in seconds for the token. Defaults to 30 seconds.
request_options : typing.Optional[RequestOptions]
diff --git a/src/deepgram/auth/v1/tokens/raw_client.py b/src/deepgram/auth/v1/tokens/raw_client.py
index 147b2e91..ee5c535a 100644
--- a/src/deepgram/auth/v1/tokens/raw_client.py
+++ b/src/deepgram/auth/v1/tokens/raw_client.py
@@ -20,14 +20,14 @@ def __init__(self, *, client_wrapper: SyncClientWrapper):
self._client_wrapper = client_wrapper
def grant(
- self, *, ttl_seconds: typing.Optional[int] = OMIT, request_options: typing.Optional[RequestOptions] = None
+ self, *, ttl_seconds: typing.Optional[float] = OMIT, request_options: typing.Optional[RequestOptions] = None
) -> HttpResponse[GrantV1Response]:
"""
Generates a temporary JSON Web Token (JWT) with a 30-second (by default) TTL and usage::write permission for core voice APIs, requiring an API key with Member or higher authorization. Tokens created with this endpoint will not work with the Manage APIs.
Parameters
----------
- ttl_seconds : typing.Optional[int]
+ ttl_seconds : typing.Optional[float]
Time to live in seconds for the token. Defaults to 30 seconds.
request_options : typing.Optional[RequestOptions]
@@ -83,14 +83,14 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper):
self._client_wrapper = client_wrapper
async def grant(
- self, *, ttl_seconds: typing.Optional[int] = OMIT, request_options: typing.Optional[RequestOptions] = None
+ self, *, ttl_seconds: typing.Optional[float] = OMIT, request_options: typing.Optional[RequestOptions] = None
) -> AsyncHttpResponse[GrantV1Response]:
"""
Generates a temporary JSON Web Token (JWT) with a 30-second (by default) TTL and usage::write permission for core voice APIs, requiring an API key with Member or higher authorization. Tokens created with this endpoint will not work with the Manage APIs.
Parameters
----------
- ttl_seconds : typing.Optional[int]
+ ttl_seconds : typing.Optional[float]
Time to live in seconds for the token. Defaults to 30 seconds.
request_options : typing.Optional[RequestOptions]
diff --git a/src/deepgram/listen/v1/client.py b/src/deepgram/listen/v1/client.py
index 7b85c358..c6cba2d8 100644
--- a/src/deepgram/listen/v1/client.py
+++ b/src/deepgram/listen/v1/client.py
@@ -52,7 +52,6 @@ def connect(
encoding: typing.Optional[str] = None,
endpointing: typing.Optional[str] = None,
extra: typing.Optional[str] = None,
- filler_words: typing.Optional[str] = None,
interim_results: typing.Optional[str] = None,
keyterm: typing.Optional[str] = None,
keywords: typing.Optional[str] = None,
@@ -96,8 +95,6 @@ def connect(
extra : typing.Optional[str]
- filler_words : typing.Optional[str]
-
interim_results : typing.Optional[str]
keyterm : typing.Optional[str]
@@ -167,8 +164,6 @@ def connect(
query_params = query_params.add("endpointing", endpointing)
if extra is not None:
query_params = query_params.add("extra", extra)
- if filler_words is not None:
- query_params = query_params.add("filler_words", filler_words)
if interim_results is not None:
query_params = query_params.add("interim_results", interim_results)
if keyterm is not None:
@@ -268,7 +263,6 @@ async def connect(
encoding: typing.Optional[str] = None,
endpointing: typing.Optional[str] = None,
extra: typing.Optional[str] = None,
- filler_words: typing.Optional[str] = None,
interim_results: typing.Optional[str] = None,
keyterm: typing.Optional[str] = None,
keywords: typing.Optional[str] = None,
@@ -312,8 +306,6 @@ async def connect(
extra : typing.Optional[str]
- filler_words : typing.Optional[str]
-
interim_results : typing.Optional[str]
keyterm : typing.Optional[str]
@@ -383,8 +375,6 @@ async def connect(
query_params = query_params.add("endpointing", endpointing)
if extra is not None:
query_params = query_params.add("extra", extra)
- if filler_words is not None:
- query_params = query_params.add("filler_words", filler_words)
if interim_results is not None:
query_params = query_params.add("interim_results", interim_results)
if keyterm is not None:
diff --git a/src/deepgram/listen/v1/media/client.py b/src/deepgram/listen/v1/media/client.py
index 5bfa2cfb..047dfac4 100644
--- a/src/deepgram/listen/v1/media/client.py
+++ b/src/deepgram/listen/v1/media/client.py
@@ -72,6 +72,7 @@ def transcribe_url(
utterances: typing.Optional[bool] = None,
utt_split: typing.Optional[float] = None,
version: typing.Optional[MediaTranscribeRequestVersion] = None,
+ mip_opt_out: typing.Optional[bool] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> MediaTranscribeResponse:
"""
@@ -186,6 +187,9 @@ def transcribe_url(
version : typing.Optional[MediaTranscribeRequestVersion]
Version of an AI model to use
+ mip_opt_out : typing.Optional[bool]
+ Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip
+
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -242,6 +246,7 @@ def transcribe_url(
utterances=utterances,
utt_split=utt_split,
version=version,
+ mip_opt_out=mip_opt_out,
request_options=request_options,
)
return _response.data
@@ -285,6 +290,7 @@ def transcribe_file(
utterances: typing.Optional[bool] = None,
utt_split: typing.Optional[float] = None,
version: typing.Optional[MediaTranscribeRequestVersion] = None,
+ mip_opt_out: typing.Optional[bool] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> MediaTranscribeResponse:
"""
@@ -399,6 +405,9 @@ def transcribe_file(
version : typing.Optional[MediaTranscribeRequestVersion]
Version of an AI model to use
+ mip_opt_out : typing.Optional[bool]
+ Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip
+
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -453,6 +462,7 @@ def transcribe_file(
utterances=utterances,
utt_split=utt_split,
version=version,
+ mip_opt_out=mip_opt_out,
request_options=request_options,
)
return _response.data
@@ -512,6 +522,7 @@ async def transcribe_url(
utterances: typing.Optional[bool] = None,
utt_split: typing.Optional[float] = None,
version: typing.Optional[MediaTranscribeRequestVersion] = None,
+ mip_opt_out: typing.Optional[bool] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> MediaTranscribeResponse:
"""
@@ -626,6 +637,9 @@ async def transcribe_url(
version : typing.Optional[MediaTranscribeRequestVersion]
Version of an AI model to use
+ mip_opt_out : typing.Optional[bool]
+ Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip
+
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -690,6 +704,7 @@ async def main() -> None:
utterances=utterances,
utt_split=utt_split,
version=version,
+ mip_opt_out=mip_opt_out,
request_options=request_options,
)
return _response.data
@@ -733,6 +748,7 @@ async def transcribe_file(
utterances: typing.Optional[bool] = None,
utt_split: typing.Optional[float] = None,
version: typing.Optional[MediaTranscribeRequestVersion] = None,
+ mip_opt_out: typing.Optional[bool] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> MediaTranscribeResponse:
"""
@@ -847,6 +863,9 @@ async def transcribe_file(
version : typing.Optional[MediaTranscribeRequestVersion]
Version of an AI model to use
+ mip_opt_out : typing.Optional[bool]
+ Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip
+
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -909,6 +928,7 @@ async def main() -> None:
utterances=utterances,
utt_split=utt_split,
version=version,
+ mip_opt_out=mip_opt_out,
request_options=request_options,
)
return _response.data
diff --git a/src/deepgram/listen/v1/media/raw_client.py b/src/deepgram/listen/v1/media/raw_client.py
index 89126970..6cdeccc8 100644
--- a/src/deepgram/listen/v1/media/raw_client.py
+++ b/src/deepgram/listen/v1/media/raw_client.py
@@ -65,6 +65,7 @@ def transcribe_url(
utterances: typing.Optional[bool] = None,
utt_split: typing.Optional[float] = None,
version: typing.Optional[MediaTranscribeRequestVersion] = None,
+ mip_opt_out: typing.Optional[bool] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[MediaTranscribeResponse]:
"""
@@ -179,6 +180,9 @@ def transcribe_url(
version : typing.Optional[MediaTranscribeRequestVersion]
Version of an AI model to use
+ mip_opt_out : typing.Optional[bool]
+ Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip
+
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -227,6 +231,7 @@ def transcribe_url(
"utterances": utterances,
"utt_split": utt_split,
"version": version,
+ "mip_opt_out": mip_opt_out,
},
json={
"url": url,
@@ -302,6 +307,7 @@ def transcribe_file(
utterances: typing.Optional[bool] = None,
utt_split: typing.Optional[float] = None,
version: typing.Optional[MediaTranscribeRequestVersion] = None,
+ mip_opt_out: typing.Optional[bool] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[MediaTranscribeResponse]:
"""
@@ -416,6 +422,9 @@ def transcribe_file(
version : typing.Optional[MediaTranscribeRequestVersion]
Version of an AI model to use
+ mip_opt_out : typing.Optional[bool]
+ Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip
+
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -464,6 +473,7 @@ def transcribe_file(
"utterances": utterances,
"utt_split": utt_split,
"version": version,
+ "mip_opt_out": mip_opt_out,
},
content=request,
headers={
@@ -542,6 +552,7 @@ async def transcribe_url(
utterances: typing.Optional[bool] = None,
utt_split: typing.Optional[float] = None,
version: typing.Optional[MediaTranscribeRequestVersion] = None,
+ mip_opt_out: typing.Optional[bool] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[MediaTranscribeResponse]:
"""
@@ -656,6 +667,9 @@ async def transcribe_url(
version : typing.Optional[MediaTranscribeRequestVersion]
Version of an AI model to use
+ mip_opt_out : typing.Optional[bool]
+ Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip
+
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -704,6 +718,7 @@ async def transcribe_url(
"utterances": utterances,
"utt_split": utt_split,
"version": version,
+ "mip_opt_out": mip_opt_out,
},
json={
"url": url,
@@ -779,6 +794,7 @@ async def transcribe_file(
utterances: typing.Optional[bool] = None,
utt_split: typing.Optional[float] = None,
version: typing.Optional[MediaTranscribeRequestVersion] = None,
+ mip_opt_out: typing.Optional[bool] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[MediaTranscribeResponse]:
"""
@@ -893,6 +909,9 @@ async def transcribe_file(
version : typing.Optional[MediaTranscribeRequestVersion]
Version of an AI model to use
+ mip_opt_out : typing.Optional[bool]
+ Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip
+
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
@@ -941,6 +960,7 @@ async def transcribe_file(
"utterances": utterances,
"utt_split": utt_split,
"version": version,
+ "mip_opt_out": mip_opt_out,
},
content=request,
headers={
diff --git a/src/deepgram/listen/v1/raw_client.py b/src/deepgram/listen/v1/raw_client.py
index e7cc29fa..81311319 100644
--- a/src/deepgram/listen/v1/raw_client.py
+++ b/src/deepgram/listen/v1/raw_client.py
@@ -33,7 +33,6 @@ def connect(
encoding: typing.Optional[str] = None,
endpointing: typing.Optional[str] = None,
extra: typing.Optional[str] = None,
- filler_words: typing.Optional[str] = None,
interim_results: typing.Optional[str] = None,
keyterm: typing.Optional[str] = None,
keywords: typing.Optional[str] = None,
@@ -77,8 +76,6 @@ def connect(
extra : typing.Optional[str]
- filler_words : typing.Optional[str]
-
interim_results : typing.Optional[str]
keyterm : typing.Optional[str]
@@ -148,8 +145,6 @@ def connect(
query_params = query_params.add("endpointing", endpointing)
if extra is not None:
query_params = query_params.add("extra", extra)
- if filler_words is not None:
- query_params = query_params.add("filler_words", filler_words)
if interim_results is not None:
query_params = query_params.add("interim_results", interim_results)
if keyterm is not None:
@@ -228,7 +223,6 @@ async def connect(
encoding: typing.Optional[str] = None,
endpointing: typing.Optional[str] = None,
extra: typing.Optional[str] = None,
- filler_words: typing.Optional[str] = None,
interim_results: typing.Optional[str] = None,
keyterm: typing.Optional[str] = None,
keywords: typing.Optional[str] = None,
@@ -272,8 +266,6 @@ async def connect(
extra : typing.Optional[str]
- filler_words : typing.Optional[str]
-
interim_results : typing.Optional[str]
keyterm : typing.Optional[str]
@@ -343,8 +335,6 @@ async def connect(
query_params = query_params.add("endpointing", endpointing)
if extra is not None:
query_params = query_params.add("extra", extra)
- if filler_words is not None:
- query_params = query_params.add("filler_words", filler_words)
if interim_results is not None:
query_params = query_params.add("interim_results", interim_results)
if keyterm is not None:
diff --git a/src/deepgram/listen/v2/client.py b/src/deepgram/listen/v2/client.py
index 205d0619..ff78c81d 100644
--- a/src/deepgram/listen/v2/client.py
+++ b/src/deepgram/listen/v2/client.py
@@ -38,12 +38,12 @@ def connect(
self,
*,
model: str,
- encoding: str,
- sample_rate: str,
+ encoding: typing.Optional[str] = None,
+ sample_rate: typing.Optional[str] = None,
eager_eot_threshold: typing.Optional[str] = None,
eot_threshold: typing.Optional[str] = None,
eot_timeout_ms: typing.Optional[str] = None,
- keyterm: typing.Optional[typing.Union[str, typing.List[str]]] = None,
+ keyterm: typing.Optional[str] = None,
mip_opt_out: typing.Optional[str] = None,
tag: typing.Optional[str] = None,
authorization: typing.Optional[str] = None,
@@ -57,9 +57,9 @@ def connect(
----------
model : str
- encoding : str
+ encoding : typing.Optional[str]
- sample_rate : str
+ sample_rate : typing.Optional[str]
eager_eot_threshold : typing.Optional[str]
@@ -67,8 +67,7 @@ def connect(
eot_timeout_ms : typing.Optional[str]
- keyterm : typing.Optional[typing.Union[str, typing.List[str]]]
- Single keyterm as string or list of keyterms. Each keyterm can be up to 100 characters.
+ keyterm : typing.Optional[str]
mip_opt_out : typing.Optional[str]
@@ -101,11 +100,7 @@ def connect(
if eot_timeout_ms is not None:
query_params = query_params.add("eot_timeout_ms", eot_timeout_ms)
if keyterm is not None:
- if isinstance(keyterm, list):
- for kt in keyterm:
- query_params = query_params.add("keyterm", kt)
- else:
- query_params = query_params.add("keyterm", keyterm)
+ query_params = query_params.add("keyterm", keyterm)
if mip_opt_out is not None:
query_params = query_params.add("mip_opt_out", mip_opt_out)
if tag is not None:
@@ -154,12 +149,12 @@ async def connect(
self,
*,
model: str,
- encoding: str,
- sample_rate: str,
+ encoding: typing.Optional[str] = None,
+ sample_rate: typing.Optional[str] = None,
eager_eot_threshold: typing.Optional[str] = None,
eot_threshold: typing.Optional[str] = None,
eot_timeout_ms: typing.Optional[str] = None,
- keyterm: typing.Optional[typing.Union[str, typing.List[str]]] = None,
+ keyterm: typing.Optional[str] = None,
mip_opt_out: typing.Optional[str] = None,
tag: typing.Optional[str] = None,
authorization: typing.Optional[str] = None,
@@ -173,9 +168,9 @@ async def connect(
----------
model : str
- encoding : str
+ encoding : typing.Optional[str]
- sample_rate : str
+ sample_rate : typing.Optional[str]
eager_eot_threshold : typing.Optional[str]
@@ -183,8 +178,7 @@ async def connect(
eot_timeout_ms : typing.Optional[str]
- keyterm : typing.Optional[typing.Union[str, typing.List[str]]]
- Single keyterm as string or list of keyterms. Each keyterm can be up to 100 characters.
+ keyterm : typing.Optional[str]
mip_opt_out : typing.Optional[str]
@@ -217,11 +211,7 @@ async def connect(
if eot_timeout_ms is not None:
query_params = query_params.add("eot_timeout_ms", eot_timeout_ms)
if keyterm is not None:
- if isinstance(keyterm, list):
- for kt in keyterm:
- query_params = query_params.add("keyterm", kt)
- else:
- query_params = query_params.add("keyterm", keyterm)
+ query_params = query_params.add("keyterm", keyterm)
if mip_opt_out is not None:
query_params = query_params.add("mip_opt_out", mip_opt_out)
if tag is not None:
diff --git a/src/deepgram/listen/v2/raw_client.py b/src/deepgram/listen/v2/raw_client.py
index 4ce6a708..818a88e4 100644
--- a/src/deepgram/listen/v2/raw_client.py
+++ b/src/deepgram/listen/v2/raw_client.py
@@ -26,12 +26,12 @@ def connect(
self,
*,
model: str,
- encoding: str,
- sample_rate: str,
+ encoding: typing.Optional[str] = None,
+ sample_rate: typing.Optional[str] = None,
eager_eot_threshold: typing.Optional[str] = None,
eot_threshold: typing.Optional[str] = None,
eot_timeout_ms: typing.Optional[str] = None,
- keyterm: typing.Optional[typing.Union[str, typing.List[str]]] = None,
+ keyterm: typing.Optional[str] = None,
mip_opt_out: typing.Optional[str] = None,
tag: typing.Optional[str] = None,
authorization: typing.Optional[str] = None,
@@ -45,9 +45,9 @@ def connect(
----------
model : str
- encoding : str
+ encoding : typing.Optional[str]
- sample_rate : str
+ sample_rate : typing.Optional[str]
eager_eot_threshold : typing.Optional[str]
@@ -55,8 +55,7 @@ def connect(
eot_timeout_ms : typing.Optional[str]
- keyterm : typing.Optional[typing.Union[str, typing.List[str]]]
- Single keyterm as string or list of keyterms. Each keyterm can be up to 100 characters.
+ keyterm : typing.Optional[str]
mip_opt_out : typing.Optional[str]
@@ -89,11 +88,7 @@ def connect(
if eot_timeout_ms is not None:
query_params = query_params.add("eot_timeout_ms", eot_timeout_ms)
if keyterm is not None:
- if isinstance(keyterm, list):
- for kt in keyterm:
- query_params = query_params.add("keyterm", kt)
- else:
- query_params = query_params.add("keyterm", keyterm)
+ query_params = query_params.add("keyterm", keyterm)
if mip_opt_out is not None:
query_params = query_params.add("mip_opt_out", mip_opt_out)
if tag is not None:
@@ -131,12 +126,12 @@ async def connect(
self,
*,
model: str,
- encoding: str,
- sample_rate: str,
+ encoding: typing.Optional[str] = None,
+ sample_rate: typing.Optional[str] = None,
eager_eot_threshold: typing.Optional[str] = None,
eot_threshold: typing.Optional[str] = None,
eot_timeout_ms: typing.Optional[str] = None,
- keyterm: typing.Optional[typing.Union[str, typing.List[str]]] = None,
+ keyterm: typing.Optional[str] = None,
mip_opt_out: typing.Optional[str] = None,
tag: typing.Optional[str] = None,
authorization: typing.Optional[str] = None,
@@ -150,9 +145,9 @@ async def connect(
----------
model : str
- encoding : str
+ encoding : typing.Optional[str]
- sample_rate : str
+ sample_rate : typing.Optional[str]
eager_eot_threshold : typing.Optional[str]
@@ -160,8 +155,7 @@ async def connect(
eot_timeout_ms : typing.Optional[str]
- keyterm : typing.Optional[typing.Union[str, typing.List[str]]]
- Single keyterm as string or list of keyterms. Each keyterm can be up to 100 characters.
+ keyterm : typing.Optional[str]
mip_opt_out : typing.Optional[str]
@@ -194,11 +188,7 @@ async def connect(
if eot_timeout_ms is not None:
query_params = query_params.add("eot_timeout_ms", eot_timeout_ms)
if keyterm is not None:
- if isinstance(keyterm, list):
- for kt in keyterm:
- query_params = query_params.add("keyterm", kt)
- else:
- query_params = query_params.add("keyterm", keyterm)
+ query_params = query_params.add("keyterm", keyterm)
if mip_opt_out is not None:
query_params = query_params.add("mip_opt_out", mip_opt_out)
if tag is not None:
diff --git a/src/deepgram/manage/v1/projects/billing/purchases/client.py b/src/deepgram/manage/v1/projects/billing/purchases/client.py
index 3bf0e7c5..7bed75c3 100644
--- a/src/deepgram/manage/v1/projects/billing/purchases/client.py
+++ b/src/deepgram/manage/v1/projects/billing/purchases/client.py
@@ -27,7 +27,7 @@ def list(
self,
project_id: str,
*,
- limit: typing.Optional[int] = None,
+ limit: typing.Optional[float] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> ListProjectPurchasesV1Response:
"""
@@ -38,7 +38,7 @@ def list(
project_id : str
The unique identifier of the project
- limit : typing.Optional[int]
+ limit : typing.Optional[float]
Number of results to return per page. Default 10. Range [1,1000]
request_options : typing.Optional[RequestOptions]
@@ -83,7 +83,7 @@ async def list(
self,
project_id: str,
*,
- limit: typing.Optional[int] = None,
+ limit: typing.Optional[float] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> ListProjectPurchasesV1Response:
"""
@@ -94,7 +94,7 @@ async def list(
project_id : str
The unique identifier of the project
- limit : typing.Optional[int]
+ limit : typing.Optional[float]
Number of results to return per page. Default 10. Range [1,1000]
request_options : typing.Optional[RequestOptions]
diff --git a/src/deepgram/manage/v1/projects/billing/purchases/raw_client.py b/src/deepgram/manage/v1/projects/billing/purchases/raw_client.py
index ca83f47b..e5cd7b16 100644
--- a/src/deepgram/manage/v1/projects/billing/purchases/raw_client.py
+++ b/src/deepgram/manage/v1/projects/billing/purchases/raw_client.py
@@ -21,7 +21,7 @@ def list(
self,
project_id: str,
*,
- limit: typing.Optional[int] = None,
+ limit: typing.Optional[float] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[ListProjectPurchasesV1Response]:
"""
@@ -32,7 +32,7 @@ def list(
project_id : str
The unique identifier of the project
- limit : typing.Optional[int]
+ limit : typing.Optional[float]
Number of results to return per page. Default 10. Range [1,1000]
request_options : typing.Optional[RequestOptions]
@@ -87,7 +87,7 @@ async def list(
self,
project_id: str,
*,
- limit: typing.Optional[int] = None,
+ limit: typing.Optional[float] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[ListProjectPurchasesV1Response]:
"""
@@ -98,7 +98,7 @@ async def list(
project_id : str
The unique identifier of the project
- limit : typing.Optional[int]
+ limit : typing.Optional[float]
Number of results to return per page. Default 10. Range [1,1000]
request_options : typing.Optional[RequestOptions]
diff --git a/src/deepgram/manage/v1/projects/client.py b/src/deepgram/manage/v1/projects/client.py
index 413e28a9..439f0220 100644
--- a/src/deepgram/manage/v1/projects/client.py
+++ b/src/deepgram/manage/v1/projects/client.py
@@ -76,8 +76,8 @@ def get(
self,
project_id: str,
*,
- limit: typing.Optional[int] = None,
- page: typing.Optional[int] = None,
+ limit: typing.Optional[float] = None,
+ page: typing.Optional[float] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> GetProjectV1Response:
"""
@@ -88,10 +88,10 @@ def get(
project_id : str
The unique identifier of the project
- limit : typing.Optional[int]
+ limit : typing.Optional[float]
Number of results to return per page. Default 10. Range [1,1000]
- page : typing.Optional[int]
+ page : typing.Optional[float]
Navigate and return the results to retrieve specific portions of information of the response
request_options : typing.Optional[RequestOptions]
@@ -331,8 +331,8 @@ async def get(
self,
project_id: str,
*,
- limit: typing.Optional[int] = None,
- page: typing.Optional[int] = None,
+ limit: typing.Optional[float] = None,
+ page: typing.Optional[float] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> GetProjectV1Response:
"""
@@ -343,10 +343,10 @@ async def get(
project_id : str
The unique identifier of the project
- limit : typing.Optional[int]
+ limit : typing.Optional[float]
Number of results to return per page. Default 10. Range [1,1000]
- page : typing.Optional[int]
+ page : typing.Optional[float]
Navigate and return the results to retrieve specific portions of information of the response
request_options : typing.Optional[RequestOptions]
diff --git a/src/deepgram/manage/v1/projects/raw_client.py b/src/deepgram/manage/v1/projects/raw_client.py
index 574b31e6..935c3d4a 100644
--- a/src/deepgram/manage/v1/projects/raw_client.py
+++ b/src/deepgram/manage/v1/projects/raw_client.py
@@ -74,8 +74,8 @@ def get(
self,
project_id: str,
*,
- limit: typing.Optional[int] = None,
- page: typing.Optional[int] = None,
+ limit: typing.Optional[float] = None,
+ page: typing.Optional[float] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[GetProjectV1Response]:
"""
@@ -86,10 +86,10 @@ def get(
project_id : str
The unique identifier of the project
- limit : typing.Optional[int]
+ limit : typing.Optional[float]
Number of results to return per page. Default 10. Range [1,1000]
- page : typing.Optional[int]
+ page : typing.Optional[float]
Navigate and return the results to retrieve specific portions of information of the response
request_options : typing.Optional[RequestOptions]
@@ -360,8 +360,8 @@ async def get(
self,
project_id: str,
*,
- limit: typing.Optional[int] = None,
- page: typing.Optional[int] = None,
+ limit: typing.Optional[float] = None,
+ page: typing.Optional[float] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[GetProjectV1Response]:
"""
@@ -372,10 +372,10 @@ async def get(
project_id : str
The unique identifier of the project
- limit : typing.Optional[int]
+ limit : typing.Optional[float]
Number of results to return per page. Default 10. Range [1,1000]
- page : typing.Optional[int]
+ page : typing.Optional[float]
Navigate and return the results to retrieve specific portions of information of the response
request_options : typing.Optional[RequestOptions]
diff --git a/src/deepgram/manage/v1/projects/requests/client.py b/src/deepgram/manage/v1/projects/requests/client.py
index 5afacc8c..a8e0246d 100644
--- a/src/deepgram/manage/v1/projects/requests/client.py
+++ b/src/deepgram/manage/v1/projects/requests/client.py
@@ -35,8 +35,8 @@ def list(
*,
start: typing.Optional[dt.datetime] = None,
end: typing.Optional[dt.datetime] = None,
- limit: typing.Optional[int] = None,
- page: typing.Optional[int] = None,
+ limit: typing.Optional[float] = None,
+ page: typing.Optional[float] = None,
accessor: typing.Optional[str] = None,
request_id: typing.Optional[str] = None,
deployment: typing.Optional[RequestsListRequestDeployment] = None,
@@ -59,10 +59,10 @@ def list(
end : typing.Optional[dt.datetime]
End date of the requested date range. Formats accepted are YYYY-MM-DD, YYYY-MM-DDTHH:MM:SS, or YYYY-MM-DDTHH:MM:SS+HH:MM
- limit : typing.Optional[int]
+ limit : typing.Optional[float]
Number of results to return per page. Default 10. Range [1,1000]
- page : typing.Optional[int]
+ page : typing.Optional[float]
Navigate and return the results to retrieve specific portions of information of the response
accessor : typing.Optional[str]
@@ -179,8 +179,8 @@ async def list(
*,
start: typing.Optional[dt.datetime] = None,
end: typing.Optional[dt.datetime] = None,
- limit: typing.Optional[int] = None,
- page: typing.Optional[int] = None,
+ limit: typing.Optional[float] = None,
+ page: typing.Optional[float] = None,
accessor: typing.Optional[str] = None,
request_id: typing.Optional[str] = None,
deployment: typing.Optional[RequestsListRequestDeployment] = None,
@@ -203,10 +203,10 @@ async def list(
end : typing.Optional[dt.datetime]
End date of the requested date range. Formats accepted are YYYY-MM-DD, YYYY-MM-DDTHH:MM:SS, or YYYY-MM-DDTHH:MM:SS+HH:MM
- limit : typing.Optional[int]
+ limit : typing.Optional[float]
Number of results to return per page. Default 10. Range [1,1000]
- page : typing.Optional[int]
+ page : typing.Optional[float]
Navigate and return the results to retrieve specific portions of information of the response
accessor : typing.Optional[str]
diff --git a/src/deepgram/manage/v1/projects/requests/raw_client.py b/src/deepgram/manage/v1/projects/requests/raw_client.py
index fcbecca4..d1b335c6 100644
--- a/src/deepgram/manage/v1/projects/requests/raw_client.py
+++ b/src/deepgram/manage/v1/projects/requests/raw_client.py
@@ -30,8 +30,8 @@ def list(
*,
start: typing.Optional[dt.datetime] = None,
end: typing.Optional[dt.datetime] = None,
- limit: typing.Optional[int] = None,
- page: typing.Optional[int] = None,
+ limit: typing.Optional[float] = None,
+ page: typing.Optional[float] = None,
accessor: typing.Optional[str] = None,
request_id: typing.Optional[str] = None,
deployment: typing.Optional[RequestsListRequestDeployment] = None,
@@ -54,10 +54,10 @@ def list(
end : typing.Optional[dt.datetime]
End date of the requested date range. Formats accepted are YYYY-MM-DD, YYYY-MM-DDTHH:MM:SS, or YYYY-MM-DDTHH:MM:SS+HH:MM
- limit : typing.Optional[int]
+ limit : typing.Optional[float]
Number of results to return per page. Default 10. Range [1,1000]
- page : typing.Optional[int]
+ page : typing.Optional[float]
Navigate and return the results to retrieve specific portions of information of the response
accessor : typing.Optional[str]
@@ -195,8 +195,8 @@ async def list(
*,
start: typing.Optional[dt.datetime] = None,
end: typing.Optional[dt.datetime] = None,
- limit: typing.Optional[int] = None,
- page: typing.Optional[int] = None,
+ limit: typing.Optional[float] = None,
+ page: typing.Optional[float] = None,
accessor: typing.Optional[str] = None,
request_id: typing.Optional[str] = None,
deployment: typing.Optional[RequestsListRequestDeployment] = None,
@@ -219,10 +219,10 @@ async def list(
end : typing.Optional[dt.datetime]
End date of the requested date range. Formats accepted are YYYY-MM-DD, YYYY-MM-DDTHH:MM:SS, or YYYY-MM-DDTHH:MM:SS+HH:MM
- limit : typing.Optional[int]
+ limit : typing.Optional[float]
Number of results to return per page. Default 10. Range [1,1000]
- page : typing.Optional[int]
+ page : typing.Optional[float]
Navigate and return the results to retrieve specific portions of information of the response
accessor : typing.Optional[str]
diff --git a/src/deepgram/read/v1/text/client.py b/src/deepgram/read/v1/text/client.py
index 0e39ca01..b906e76a 100644
--- a/src/deepgram/read/v1/text/client.py
+++ b/src/deepgram/read/v1/text/client.py
@@ -39,6 +39,7 @@ def analyze(
callback_method: typing.Optional[TextAnalyzeRequestCallbackMethod] = None,
sentiment: typing.Optional[bool] = None,
summarize: typing.Optional[TextAnalyzeRequestSummarize] = None,
+ tag: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
topics: typing.Optional[bool] = None,
custom_topic: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
custom_topic_mode: typing.Optional[TextAnalyzeRequestCustomTopicMode] = None,
@@ -67,6 +68,9 @@ def analyze(
summarize : typing.Optional[TextAnalyzeRequestSummarize]
Summarize content. For Listen API, supports string version option. For Read API, accepts boolean only.
+ tag : typing.Optional[typing.Union[str, typing.Sequence[str]]]
+ Label your requests for the purpose of identification during usage reporting
+
topics : typing.Optional[bool]
Detect topics throughout a transcript or text
@@ -113,6 +117,7 @@ def analyze(
callback_method=callback_method,
sentiment=sentiment,
summarize=summarize,
+ tag=tag,
topics=topics,
custom_topic=custom_topic,
custom_topic_mode=custom_topic_mode,
@@ -148,6 +153,7 @@ async def analyze(
callback_method: typing.Optional[TextAnalyzeRequestCallbackMethod] = None,
sentiment: typing.Optional[bool] = None,
summarize: typing.Optional[TextAnalyzeRequestSummarize] = None,
+ tag: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
topics: typing.Optional[bool] = None,
custom_topic: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
custom_topic_mode: typing.Optional[TextAnalyzeRequestCustomTopicMode] = None,
@@ -176,6 +182,9 @@ async def analyze(
summarize : typing.Optional[TextAnalyzeRequestSummarize]
Summarize content. For Listen API, supports string version option. For Read API, accepts boolean only.
+ tag : typing.Optional[typing.Union[str, typing.Sequence[str]]]
+ Label your requests for the purpose of identification during usage reporting
+
topics : typing.Optional[bool]
Detect topics throughout a transcript or text
@@ -230,6 +239,7 @@ async def main() -> None:
callback_method=callback_method,
sentiment=sentiment,
summarize=summarize,
+ tag=tag,
topics=topics,
custom_topic=custom_topic,
custom_topic_mode=custom_topic_mode,
diff --git a/src/deepgram/read/v1/text/raw_client.py b/src/deepgram/read/v1/text/raw_client.py
index 61e34023..349a797d 100644
--- a/src/deepgram/read/v1/text/raw_client.py
+++ b/src/deepgram/read/v1/text/raw_client.py
@@ -33,6 +33,7 @@ def analyze(
callback_method: typing.Optional[TextAnalyzeRequestCallbackMethod] = None,
sentiment: typing.Optional[bool] = None,
summarize: typing.Optional[TextAnalyzeRequestSummarize] = None,
+ tag: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
topics: typing.Optional[bool] = None,
custom_topic: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
custom_topic_mode: typing.Optional[TextAnalyzeRequestCustomTopicMode] = None,
@@ -61,6 +62,9 @@ def analyze(
summarize : typing.Optional[TextAnalyzeRequestSummarize]
Summarize content. For Listen API, supports string version option. For Read API, accepts boolean only.
+ tag : typing.Optional[typing.Union[str, typing.Sequence[str]]]
+ Label your requests for the purpose of identification during usage reporting
+
topics : typing.Optional[bool]
Detect topics throughout a transcript or text
@@ -99,6 +103,7 @@ def analyze(
"callback_method": callback_method,
"sentiment": sentiment,
"summarize": summarize,
+ "tag": tag,
"topics": topics,
"custom_topic": custom_topic,
"custom_topic_mode": custom_topic_mode,
@@ -155,6 +160,7 @@ async def analyze(
callback_method: typing.Optional[TextAnalyzeRequestCallbackMethod] = None,
sentiment: typing.Optional[bool] = None,
summarize: typing.Optional[TextAnalyzeRequestSummarize] = None,
+ tag: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
topics: typing.Optional[bool] = None,
custom_topic: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
custom_topic_mode: typing.Optional[TextAnalyzeRequestCustomTopicMode] = None,
@@ -183,6 +189,9 @@ async def analyze(
summarize : typing.Optional[TextAnalyzeRequestSummarize]
Summarize content. For Listen API, supports string version option. For Read API, accepts boolean only.
+ tag : typing.Optional[typing.Union[str, typing.Sequence[str]]]
+ Label your requests for the purpose of identification during usage reporting
+
topics : typing.Optional[bool]
Detect topics throughout a transcript or text
@@ -221,6 +230,7 @@ async def analyze(
"callback_method": callback_method,
"sentiment": sentiment,
"summarize": summarize,
+ "tag": tag,
"topics": topics,
"custom_topic": custom_topic,
"custom_topic_mode": custom_topic_mode,
diff --git a/src/deepgram/requests/billing_breakdown_v1response_resolution.py b/src/deepgram/requests/billing_breakdown_v1response_resolution.py
index cacbb7c9..7c83fa10 100644
--- a/src/deepgram/requests/billing_breakdown_v1response_resolution.py
+++ b/src/deepgram/requests/billing_breakdown_v1response_resolution.py
@@ -9,7 +9,7 @@ class BillingBreakdownV1ResponseResolutionParams(typing_extensions.TypedDict):
Time unit for the resolution
"""
- amount: int
+ amount: float
"""
Amount of units
"""
diff --git a/src/deepgram/requests/get_project_balance_v1response.py b/src/deepgram/requests/get_project_balance_v1response.py
index 1b9bf631..7a402cb3 100644
--- a/src/deepgram/requests/get_project_balance_v1response.py
+++ b/src/deepgram/requests/get_project_balance_v1response.py
@@ -9,7 +9,7 @@ class GetProjectBalanceV1ResponseParams(typing_extensions.TypedDict):
The unique identifier of the balance
"""
- amount: typing_extensions.NotRequired[int]
+ amount: typing_extensions.NotRequired[float]
"""
The amount of the balance
"""
diff --git a/src/deepgram/requests/list_project_balances_v1response_balances_item.py b/src/deepgram/requests/list_project_balances_v1response_balances_item.py
index 6a41422d..5a709ee0 100644
--- a/src/deepgram/requests/list_project_balances_v1response_balances_item.py
+++ b/src/deepgram/requests/list_project_balances_v1response_balances_item.py
@@ -9,7 +9,7 @@ class ListProjectBalancesV1ResponseBalancesItemParams(typing_extensions.TypedDic
The unique identifier of the balance
"""
- amount: typing_extensions.NotRequired[int]
+ amount: typing_extensions.NotRequired[float]
"""
The amount of the balance
"""
diff --git a/src/deepgram/requests/list_project_requests_v1response.py b/src/deepgram/requests/list_project_requests_v1response.py
index 053b75bc..65688d90 100644
--- a/src/deepgram/requests/list_project_requests_v1response.py
+++ b/src/deepgram/requests/list_project_requests_v1response.py
@@ -7,12 +7,12 @@
class ListProjectRequestsV1ResponseParams(typing_extensions.TypedDict):
- page: typing_extensions.NotRequired[int]
+ page: typing_extensions.NotRequired[float]
"""
The page number of the paginated response
"""
- limit: typing_extensions.NotRequired[int]
+ limit: typing_extensions.NotRequired[float]
"""
The number of results per page
"""
diff --git a/src/deepgram/requests/listen_v1response_results_channels_item_alternatives_item_paragraphs_paragraphs_item.py b/src/deepgram/requests/listen_v1response_results_channels_item_alternatives_item_paragraphs_paragraphs_item.py
index c0a334e1..6c35ddb1 100644
--- a/src/deepgram/requests/listen_v1response_results_channels_item_alternatives_item_paragraphs_paragraphs_item.py
+++ b/src/deepgram/requests/listen_v1response_results_channels_item_alternatives_item_paragraphs_paragraphs_item.py
@@ -12,7 +12,7 @@ class ListenV1ResponseResultsChannelsItemAlternativesItemParagraphsParagraphsIte
sentences: typing_extensions.NotRequired[
typing.Sequence[ListenV1ResponseResultsChannelsItemAlternativesItemParagraphsParagraphsItemSentencesItemParams]
]
- speaker: typing_extensions.NotRequired[int]
- num_words: typing_extensions.NotRequired[int]
+ speaker: typing_extensions.NotRequired[float]
+ num_words: typing_extensions.NotRequired[float]
start: typing_extensions.NotRequired[float]
end: typing_extensions.NotRequired[float]
diff --git a/src/deepgram/requests/listen_v1response_results_channels_item_alternatives_item_summaries_item.py b/src/deepgram/requests/listen_v1response_results_channels_item_alternatives_item_summaries_item.py
index e181e680..c7199302 100644
--- a/src/deepgram/requests/listen_v1response_results_channels_item_alternatives_item_summaries_item.py
+++ b/src/deepgram/requests/listen_v1response_results_channels_item_alternatives_item_summaries_item.py
@@ -5,5 +5,5 @@
class ListenV1ResponseResultsChannelsItemAlternativesItemSummariesItemParams(typing_extensions.TypedDict):
summary: typing_extensions.NotRequired[str]
- start_word: typing_extensions.NotRequired[int]
- end_word: typing_extensions.NotRequired[int]
+ start_word: typing_extensions.NotRequired[float]
+ end_word: typing_extensions.NotRequired[float]
diff --git a/src/deepgram/requests/listen_v1response_results_channels_item_alternatives_item_topics_item.py b/src/deepgram/requests/listen_v1response_results_channels_item_alternatives_item_topics_item.py
index c96f5228..7ff78be5 100644
--- a/src/deepgram/requests/listen_v1response_results_channels_item_alternatives_item_topics_item.py
+++ b/src/deepgram/requests/listen_v1response_results_channels_item_alternatives_item_topics_item.py
@@ -7,6 +7,6 @@
class ListenV1ResponseResultsChannelsItemAlternativesItemTopicsItemParams(typing_extensions.TypedDict):
text: typing_extensions.NotRequired[str]
- start_word: typing_extensions.NotRequired[int]
- end_word: typing_extensions.NotRequired[int]
+ start_word: typing_extensions.NotRequired[float]
+ end_word: typing_extensions.NotRequired[float]
topics: typing_extensions.NotRequired[typing.Sequence[str]]
diff --git a/src/deepgram/requests/listen_v1response_results_utterances_item.py b/src/deepgram/requests/listen_v1response_results_utterances_item.py
index 82fba7f9..8298c202 100644
--- a/src/deepgram/requests/listen_v1response_results_utterances_item.py
+++ b/src/deepgram/requests/listen_v1response_results_utterances_item.py
@@ -10,8 +10,8 @@ class ListenV1ResponseResultsUtterancesItemParams(typing_extensions.TypedDict):
start: typing_extensions.NotRequired[float]
end: typing_extensions.NotRequired[float]
confidence: typing_extensions.NotRequired[float]
- channel: typing_extensions.NotRequired[int]
+ channel: typing_extensions.NotRequired[float]
transcript: typing_extensions.NotRequired[str]
words: typing_extensions.NotRequired[typing.Sequence[ListenV1ResponseResultsUtterancesItemWordsItemParams]]
- speaker: typing_extensions.NotRequired[int]
+ speaker: typing_extensions.NotRequired[float]
id: typing_extensions.NotRequired[str]
diff --git a/src/deepgram/requests/listen_v1response_results_utterances_item_words_item.py b/src/deepgram/requests/listen_v1response_results_utterances_item_words_item.py
index 7c2c6fe9..ea2bbf42 100644
--- a/src/deepgram/requests/listen_v1response_results_utterances_item_words_item.py
+++ b/src/deepgram/requests/listen_v1response_results_utterances_item_words_item.py
@@ -8,6 +8,6 @@ class ListenV1ResponseResultsUtterancesItemWordsItemParams(typing_extensions.Typ
start: typing_extensions.NotRequired[float]
end: typing_extensions.NotRequired[float]
confidence: typing_extensions.NotRequired[float]
- speaker: typing_extensions.NotRequired[int]
- speaker_confidence: typing_extensions.NotRequired[int]
+ speaker: typing_extensions.NotRequired[float]
+ speaker_confidence: typing_extensions.NotRequired[float]
punctuated_word: typing_extensions.NotRequired[str]
diff --git a/src/deepgram/requests/project_request_response.py b/src/deepgram/requests/project_request_response.py
index d184b662..fef8ae38 100644
--- a/src/deepgram/requests/project_request_response.py
+++ b/src/deepgram/requests/project_request_response.py
@@ -41,7 +41,7 @@ class ProjectRequestResponseParams(typing_extensions.TypedDict):
The response of the request
"""
- code: typing_extensions.NotRequired[int]
+ code: typing_extensions.NotRequired[float]
"""
The response code of the request
"""
diff --git a/src/deepgram/requests/read_v1response_metadata_metadata_intents_info.py b/src/deepgram/requests/read_v1response_metadata_metadata_intents_info.py
index ac0961bc..6aab9ec3 100644
--- a/src/deepgram/requests/read_v1response_metadata_metadata_intents_info.py
+++ b/src/deepgram/requests/read_v1response_metadata_metadata_intents_info.py
@@ -5,5 +5,5 @@
class ReadV1ResponseMetadataMetadataIntentsInfoParams(typing_extensions.TypedDict):
model_uuid: typing_extensions.NotRequired[str]
- input_tokens: typing_extensions.NotRequired[int]
- output_tokens: typing_extensions.NotRequired[int]
+ input_tokens: typing_extensions.NotRequired[float]
+ output_tokens: typing_extensions.NotRequired[float]
diff --git a/src/deepgram/requests/read_v1response_metadata_metadata_sentiment_info.py b/src/deepgram/requests/read_v1response_metadata_metadata_sentiment_info.py
index 8f17e6da..e9ac60d3 100644
--- a/src/deepgram/requests/read_v1response_metadata_metadata_sentiment_info.py
+++ b/src/deepgram/requests/read_v1response_metadata_metadata_sentiment_info.py
@@ -5,5 +5,5 @@
class ReadV1ResponseMetadataMetadataSentimentInfoParams(typing_extensions.TypedDict):
model_uuid: typing_extensions.NotRequired[str]
- input_tokens: typing_extensions.NotRequired[int]
- output_tokens: typing_extensions.NotRequired[int]
+ input_tokens: typing_extensions.NotRequired[float]
+ output_tokens: typing_extensions.NotRequired[float]
diff --git a/src/deepgram/requests/read_v1response_metadata_metadata_summary_info.py b/src/deepgram/requests/read_v1response_metadata_metadata_summary_info.py
index cb2a159b..6ab5a0ff 100644
--- a/src/deepgram/requests/read_v1response_metadata_metadata_summary_info.py
+++ b/src/deepgram/requests/read_v1response_metadata_metadata_summary_info.py
@@ -5,5 +5,5 @@
class ReadV1ResponseMetadataMetadataSummaryInfoParams(typing_extensions.TypedDict):
model_uuid: typing_extensions.NotRequired[str]
- input_tokens: typing_extensions.NotRequired[int]
- output_tokens: typing_extensions.NotRequired[int]
+ input_tokens: typing_extensions.NotRequired[float]
+ output_tokens: typing_extensions.NotRequired[float]
diff --git a/src/deepgram/requests/read_v1response_metadata_metadata_topics_info.py b/src/deepgram/requests/read_v1response_metadata_metadata_topics_info.py
index 3ae2f074..ad718351 100644
--- a/src/deepgram/requests/read_v1response_metadata_metadata_topics_info.py
+++ b/src/deepgram/requests/read_v1response_metadata_metadata_topics_info.py
@@ -5,5 +5,5 @@
class ReadV1ResponseMetadataMetadataTopicsInfoParams(typing_extensions.TypedDict):
model_uuid: typing_extensions.NotRequired[str]
- input_tokens: typing_extensions.NotRequired[int]
- output_tokens: typing_extensions.NotRequired[int]
+ input_tokens: typing_extensions.NotRequired[float]
+ output_tokens: typing_extensions.NotRequired[float]
diff --git a/src/deepgram/requests/shared_intents_results_intents_segments_item.py b/src/deepgram/requests/shared_intents_results_intents_segments_item.py
index 738f3205..444533ff 100644
--- a/src/deepgram/requests/shared_intents_results_intents_segments_item.py
+++ b/src/deepgram/requests/shared_intents_results_intents_segments_item.py
@@ -10,6 +10,6 @@
class SharedIntentsResultsIntentsSegmentsItemParams(typing_extensions.TypedDict):
text: typing_extensions.NotRequired[str]
- start_word: typing_extensions.NotRequired[int]
- end_word: typing_extensions.NotRequired[int]
+ start_word: typing_extensions.NotRequired[float]
+ end_word: typing_extensions.NotRequired[float]
intents: typing_extensions.NotRequired[typing.Sequence[SharedIntentsResultsIntentsSegmentsItemIntentsItemParams]]
diff --git a/src/deepgram/requests/shared_topics_results_topics_segments_item.py b/src/deepgram/requests/shared_topics_results_topics_segments_item.py
index d3f554d5..b24a89d0 100644
--- a/src/deepgram/requests/shared_topics_results_topics_segments_item.py
+++ b/src/deepgram/requests/shared_topics_results_topics_segments_item.py
@@ -10,6 +10,6 @@
class SharedTopicsResultsTopicsSegmentsItemParams(typing_extensions.TypedDict):
text: typing_extensions.NotRequired[str]
- start_word: typing_extensions.NotRequired[int]
- end_word: typing_extensions.NotRequired[int]
+ start_word: typing_extensions.NotRequired[float]
+ end_word: typing_extensions.NotRequired[float]
topics: typing_extensions.NotRequired[typing.Sequence[SharedTopicsResultsTopicsSegmentsItemTopicsItemParams]]
diff --git a/src/deepgram/requests/usage_breakdown_v1response_resolution.py b/src/deepgram/requests/usage_breakdown_v1response_resolution.py
index ecc5dd03..3c0547f3 100644
--- a/src/deepgram/requests/usage_breakdown_v1response_resolution.py
+++ b/src/deepgram/requests/usage_breakdown_v1response_resolution.py
@@ -9,7 +9,7 @@ class UsageBreakdownV1ResponseResolutionParams(typing_extensions.TypedDict):
Time unit for the resolution
"""
- amount: int
+ amount: float
"""
Amount of units
"""
diff --git a/src/deepgram/requests/usage_breakdown_v1response_results_item.py b/src/deepgram/requests/usage_breakdown_v1response_results_item.py
index b334b75f..c8c8d208 100644
--- a/src/deepgram/requests/usage_breakdown_v1response_results_item.py
+++ b/src/deepgram/requests/usage_breakdown_v1response_results_item.py
@@ -20,22 +20,22 @@ class UsageBreakdownV1ResponseResultsItemParams(typing_extensions.TypedDict):
Agent hours used
"""
- tokens_in: int
+ tokens_in: float
"""
Number of input tokens
"""
- tokens_out: int
+ tokens_out: float
"""
Number of output tokens
"""
- tts_characters: int
+ tts_characters: float
"""
Number of text-to-speech characters processed
"""
- requests: int
+ requests: float
"""
Number of requests
"""
diff --git a/src/deepgram/requests/usage_v1response_resolution.py b/src/deepgram/requests/usage_v1response_resolution.py
index 999ab4b8..59e88733 100644
--- a/src/deepgram/requests/usage_v1response_resolution.py
+++ b/src/deepgram/requests/usage_v1response_resolution.py
@@ -5,4 +5,4 @@
class UsageV1ResponseResolutionParams(typing_extensions.TypedDict):
units: typing_extensions.NotRequired[str]
- amount: typing_extensions.NotRequired[int]
+ amount: typing_extensions.NotRequired[float]
diff --git a/src/deepgram/speak/v1/audio/client.py b/src/deepgram/speak/v1/audio/client.py
index af23d7b8..0ba83697 100644
--- a/src/deepgram/speak/v1/audio/client.py
+++ b/src/deepgram/speak/v1/audio/client.py
@@ -36,11 +36,12 @@ def generate(
callback: typing.Optional[str] = None,
callback_method: typing.Optional[AudioGenerateRequestCallbackMethod] = None,
mip_opt_out: typing.Optional[bool] = None,
- bit_rate: typing.Optional[int] = None,
+ tag: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
+ bit_rate: typing.Optional[float] = None,
container: typing.Optional[AudioGenerateRequestContainer] = None,
encoding: typing.Optional[AudioGenerateRequestEncoding] = None,
model: typing.Optional[AudioGenerateRequestModel] = None,
- sample_rate: typing.Optional[int] = None,
+ sample_rate: typing.Optional[float] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> typing.Iterator[bytes]:
"""
@@ -60,7 +61,10 @@ def generate(
mip_opt_out : typing.Optional[bool]
Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip
- bit_rate : typing.Optional[int]
+ tag : typing.Optional[typing.Union[str, typing.Sequence[str]]]
+ Label your requests for the purpose of identification during usage reporting
+
+ bit_rate : typing.Optional[float]
The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type.
container : typing.Optional[AudioGenerateRequestContainer]
@@ -72,7 +76,7 @@ def generate(
model : typing.Optional[AudioGenerateRequestModel]
AI model used to process submitted text
- sample_rate : typing.Optional[int]
+ sample_rate : typing.Optional[float]
Sample Rate specifies the sample rate for the output audio. Based on the encoding, different sample rates are supported. For some encodings, the sample rate is not configurable
request_options : typing.Optional[RequestOptions]
@@ -99,6 +103,7 @@ def generate(
callback=callback,
callback_method=callback_method,
mip_opt_out=mip_opt_out,
+ tag=tag,
bit_rate=bit_rate,
container=container,
encoding=encoding,
@@ -131,11 +136,12 @@ async def generate(
callback: typing.Optional[str] = None,
callback_method: typing.Optional[AudioGenerateRequestCallbackMethod] = None,
mip_opt_out: typing.Optional[bool] = None,
- bit_rate: typing.Optional[int] = None,
+ tag: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
+ bit_rate: typing.Optional[float] = None,
container: typing.Optional[AudioGenerateRequestContainer] = None,
encoding: typing.Optional[AudioGenerateRequestEncoding] = None,
model: typing.Optional[AudioGenerateRequestModel] = None,
- sample_rate: typing.Optional[int] = None,
+ sample_rate: typing.Optional[float] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> typing.AsyncIterator[bytes]:
"""
@@ -155,7 +161,10 @@ async def generate(
mip_opt_out : typing.Optional[bool]
Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip
- bit_rate : typing.Optional[int]
+ tag : typing.Optional[typing.Union[str, typing.Sequence[str]]]
+ Label your requests for the purpose of identification during usage reporting
+
+ bit_rate : typing.Optional[float]
The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type.
container : typing.Optional[AudioGenerateRequestContainer]
@@ -167,7 +176,7 @@ async def generate(
model : typing.Optional[AudioGenerateRequestModel]
AI model used to process submitted text
- sample_rate : typing.Optional[int]
+ sample_rate : typing.Optional[float]
Sample Rate specifies the sample rate for the output audio. Based on the encoding, different sample rates are supported. For some encodings, the sample rate is not configurable
request_options : typing.Optional[RequestOptions]
@@ -202,6 +211,7 @@ async def main() -> None:
callback=callback,
callback_method=callback_method,
mip_opt_out=mip_opt_out,
+ tag=tag,
bit_rate=bit_rate,
container=container,
encoding=encoding,
diff --git a/src/deepgram/speak/v1/audio/raw_client.py b/src/deepgram/speak/v1/audio/raw_client.py
index 254de5bb..f426311c 100644
--- a/src/deepgram/speak/v1/audio/raw_client.py
+++ b/src/deepgram/speak/v1/audio/raw_client.py
@@ -31,11 +31,12 @@ def generate(
callback: typing.Optional[str] = None,
callback_method: typing.Optional[AudioGenerateRequestCallbackMethod] = None,
mip_opt_out: typing.Optional[bool] = None,
- bit_rate: typing.Optional[int] = None,
+ tag: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
+ bit_rate: typing.Optional[float] = None,
container: typing.Optional[AudioGenerateRequestContainer] = None,
encoding: typing.Optional[AudioGenerateRequestEncoding] = None,
model: typing.Optional[AudioGenerateRequestModel] = None,
- sample_rate: typing.Optional[int] = None,
+ sample_rate: typing.Optional[float] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> typing.Iterator[HttpResponse[typing.Iterator[bytes]]]:
"""
@@ -55,7 +56,10 @@ def generate(
mip_opt_out : typing.Optional[bool]
Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip
- bit_rate : typing.Optional[int]
+ tag : typing.Optional[typing.Union[str, typing.Sequence[str]]]
+ Label your requests for the purpose of identification during usage reporting
+
+ bit_rate : typing.Optional[float]
The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type.
container : typing.Optional[AudioGenerateRequestContainer]
@@ -67,7 +71,7 @@ def generate(
model : typing.Optional[AudioGenerateRequestModel]
AI model used to process submitted text
- sample_rate : typing.Optional[int]
+ sample_rate : typing.Optional[float]
Sample Rate specifies the sample rate for the output audio. Based on the encoding, different sample rates are supported. For some encodings, the sample rate is not configurable
request_options : typing.Optional[RequestOptions]
@@ -86,6 +90,7 @@ def generate(
"callback": callback,
"callback_method": callback_method,
"mip_opt_out": mip_opt_out,
+ "tag": tag,
"bit_rate": bit_rate,
"container": container,
"encoding": encoding,
@@ -143,11 +148,12 @@ async def generate(
callback: typing.Optional[str] = None,
callback_method: typing.Optional[AudioGenerateRequestCallbackMethod] = None,
mip_opt_out: typing.Optional[bool] = None,
- bit_rate: typing.Optional[int] = None,
+ tag: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
+ bit_rate: typing.Optional[float] = None,
container: typing.Optional[AudioGenerateRequestContainer] = None,
encoding: typing.Optional[AudioGenerateRequestEncoding] = None,
model: typing.Optional[AudioGenerateRequestModel] = None,
- sample_rate: typing.Optional[int] = None,
+ sample_rate: typing.Optional[float] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> typing.AsyncIterator[AsyncHttpResponse[typing.AsyncIterator[bytes]]]:
"""
@@ -167,7 +173,10 @@ async def generate(
mip_opt_out : typing.Optional[bool]
Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip
- bit_rate : typing.Optional[int]
+ tag : typing.Optional[typing.Union[str, typing.Sequence[str]]]
+ Label your requests for the purpose of identification during usage reporting
+
+ bit_rate : typing.Optional[float]
The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type.
container : typing.Optional[AudioGenerateRequestContainer]
@@ -179,7 +188,7 @@ async def generate(
model : typing.Optional[AudioGenerateRequestModel]
AI model used to process submitted text
- sample_rate : typing.Optional[int]
+ sample_rate : typing.Optional[float]
Sample Rate specifies the sample rate for the output audio. Based on the encoding, different sample rates are supported. For some encodings, the sample rate is not configurable
request_options : typing.Optional[RequestOptions]
@@ -198,6 +207,7 @@ async def generate(
"callback": callback,
"callback_method": callback_method,
"mip_opt_out": mip_opt_out,
+ "tag": tag,
"bit_rate": bit_rate,
"container": container,
"encoding": encoding,
diff --git a/src/deepgram/types/__init__.py b/src/deepgram/types/__init__.py
index e92fec6e..5171b729 100644
--- a/src/deepgram/types/__init__.py
+++ b/src/deepgram/types/__init__.py
@@ -97,7 +97,6 @@
from .listen_v1encoding import ListenV1Encoding
from .listen_v1endpointing import ListenV1Endpointing
from .listen_v1extra import ListenV1Extra
- from .listen_v1filler_words import ListenV1FillerWords
from .listen_v1interim_results import ListenV1InterimResults
from .listen_v1keyterm import ListenV1Keyterm
from .listen_v1keywords import ListenV1Keywords
@@ -288,7 +287,6 @@
"ListenV1Encoding": ".listen_v1encoding",
"ListenV1Endpointing": ".listen_v1endpointing",
"ListenV1Extra": ".listen_v1extra",
- "ListenV1FillerWords": ".listen_v1filler_words",
"ListenV1InterimResults": ".listen_v1interim_results",
"ListenV1Keyterm": ".listen_v1keyterm",
"ListenV1Keywords": ".listen_v1keywords",
@@ -485,7 +483,6 @@ def __dir__():
"ListenV1Encoding",
"ListenV1Endpointing",
"ListenV1Extra",
- "ListenV1FillerWords",
"ListenV1InterimResults",
"ListenV1Keyterm",
"ListenV1Keywords",
diff --git a/src/deepgram/types/billing_breakdown_v1response_resolution.py b/src/deepgram/types/billing_breakdown_v1response_resolution.py
index db8eed9f..dbc6ca7e 100644
--- a/src/deepgram/types/billing_breakdown_v1response_resolution.py
+++ b/src/deepgram/types/billing_breakdown_v1response_resolution.py
@@ -12,7 +12,7 @@ class BillingBreakdownV1ResponseResolution(UniversalBaseModel):
Time unit for the resolution
"""
- amount: int = pydantic.Field()
+ amount: float = pydantic.Field()
"""
Amount of units
"""
diff --git a/src/deepgram/types/get_project_balance_v1response.py b/src/deepgram/types/get_project_balance_v1response.py
index 3bfc57fe..66626628 100644
--- a/src/deepgram/types/get_project_balance_v1response.py
+++ b/src/deepgram/types/get_project_balance_v1response.py
@@ -12,7 +12,7 @@ class GetProjectBalanceV1Response(UniversalBaseModel):
The unique identifier of the balance
"""
- amount: typing.Optional[int] = pydantic.Field(default=None)
+ amount: typing.Optional[float] = pydantic.Field(default=None)
"""
The amount of the balance
"""
diff --git a/src/deepgram/types/list_project_balances_v1response_balances_item.py b/src/deepgram/types/list_project_balances_v1response_balances_item.py
index b04e2b03..aa91860f 100644
--- a/src/deepgram/types/list_project_balances_v1response_balances_item.py
+++ b/src/deepgram/types/list_project_balances_v1response_balances_item.py
@@ -12,7 +12,7 @@ class ListProjectBalancesV1ResponseBalancesItem(UniversalBaseModel):
The unique identifier of the balance
"""
- amount: typing.Optional[int] = pydantic.Field(default=None)
+ amount: typing.Optional[float] = pydantic.Field(default=None)
"""
The amount of the balance
"""
diff --git a/src/deepgram/types/list_project_requests_v1response.py b/src/deepgram/types/list_project_requests_v1response.py
index ba534259..c3165e52 100644
--- a/src/deepgram/types/list_project_requests_v1response.py
+++ b/src/deepgram/types/list_project_requests_v1response.py
@@ -8,12 +8,12 @@
class ListProjectRequestsV1Response(UniversalBaseModel):
- page: typing.Optional[int] = pydantic.Field(default=None)
+ page: typing.Optional[float] = pydantic.Field(default=None)
"""
The page number of the paginated response
"""
- limit: typing.Optional[int] = pydantic.Field(default=None)
+ limit: typing.Optional[float] = pydantic.Field(default=None)
"""
The number of results per page
"""
diff --git a/src/deepgram/types/listen_v1filler_words.py b/src/deepgram/types/listen_v1filler_words.py
deleted file mode 100644
index 3dd63ca2..00000000
--- a/src/deepgram/types/listen_v1filler_words.py
+++ /dev/null
@@ -1,5 +0,0 @@
-# This file was auto-generated by Fern from our API Definition.
-
-import typing
-
-ListenV1FillerWords = typing.Union[typing.Literal["true", "false"], typing.Any]
diff --git a/src/deepgram/types/listen_v1response_results_channels_item_alternatives_item_paragraphs_paragraphs_item.py b/src/deepgram/types/listen_v1response_results_channels_item_alternatives_item_paragraphs_paragraphs_item.py
index d38e7e39..1ba52c63 100644
--- a/src/deepgram/types/listen_v1response_results_channels_item_alternatives_item_paragraphs_paragraphs_item.py
+++ b/src/deepgram/types/listen_v1response_results_channels_item_alternatives_item_paragraphs_paragraphs_item.py
@@ -13,8 +13,8 @@ class ListenV1ResponseResultsChannelsItemAlternativesItemParagraphsParagraphsIte
sentences: typing.Optional[
typing.List[ListenV1ResponseResultsChannelsItemAlternativesItemParagraphsParagraphsItemSentencesItem]
] = None
- speaker: typing.Optional[int] = None
- num_words: typing.Optional[int] = None
+ speaker: typing.Optional[float] = None
+ num_words: typing.Optional[float] = None
start: typing.Optional[float] = None
end: typing.Optional[float] = None
diff --git a/src/deepgram/types/listen_v1response_results_channels_item_alternatives_item_summaries_item.py b/src/deepgram/types/listen_v1response_results_channels_item_alternatives_item_summaries_item.py
index 920430d5..fd7dd560 100644
--- a/src/deepgram/types/listen_v1response_results_channels_item_alternatives_item_summaries_item.py
+++ b/src/deepgram/types/listen_v1response_results_channels_item_alternatives_item_summaries_item.py
@@ -8,8 +8,8 @@
class ListenV1ResponseResultsChannelsItemAlternativesItemSummariesItem(UniversalBaseModel):
summary: typing.Optional[str] = None
- start_word: typing.Optional[int] = None
- end_word: typing.Optional[int] = None
+ start_word: typing.Optional[float] = None
+ end_word: typing.Optional[float] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
diff --git a/src/deepgram/types/listen_v1response_results_channels_item_alternatives_item_topics_item.py b/src/deepgram/types/listen_v1response_results_channels_item_alternatives_item_topics_item.py
index f3e556d2..96b50627 100644
--- a/src/deepgram/types/listen_v1response_results_channels_item_alternatives_item_topics_item.py
+++ b/src/deepgram/types/listen_v1response_results_channels_item_alternatives_item_topics_item.py
@@ -8,8 +8,8 @@
class ListenV1ResponseResultsChannelsItemAlternativesItemTopicsItem(UniversalBaseModel):
text: typing.Optional[str] = None
- start_word: typing.Optional[int] = None
- end_word: typing.Optional[int] = None
+ start_word: typing.Optional[float] = None
+ end_word: typing.Optional[float] = None
topics: typing.Optional[typing.List[str]] = None
if IS_PYDANTIC_V2:
diff --git a/src/deepgram/types/listen_v1response_results_utterances_item.py b/src/deepgram/types/listen_v1response_results_utterances_item.py
index a9ce5e77..a570ac99 100644
--- a/src/deepgram/types/listen_v1response_results_utterances_item.py
+++ b/src/deepgram/types/listen_v1response_results_utterances_item.py
@@ -11,10 +11,10 @@ class ListenV1ResponseResultsUtterancesItem(UniversalBaseModel):
start: typing.Optional[float] = None
end: typing.Optional[float] = None
confidence: typing.Optional[float] = None
- channel: typing.Optional[int] = None
+ channel: typing.Optional[float] = None
transcript: typing.Optional[str] = None
words: typing.Optional[typing.List[ListenV1ResponseResultsUtterancesItemWordsItem]] = None
- speaker: typing.Optional[int] = None
+ speaker: typing.Optional[float] = None
id: typing.Optional[str] = None
if IS_PYDANTIC_V2:
diff --git a/src/deepgram/types/listen_v1response_results_utterances_item_words_item.py b/src/deepgram/types/listen_v1response_results_utterances_item_words_item.py
index 0e2fdb1a..21633fd3 100644
--- a/src/deepgram/types/listen_v1response_results_utterances_item_words_item.py
+++ b/src/deepgram/types/listen_v1response_results_utterances_item_words_item.py
@@ -11,8 +11,8 @@ class ListenV1ResponseResultsUtterancesItemWordsItem(UniversalBaseModel):
start: typing.Optional[float] = None
end: typing.Optional[float] = None
confidence: typing.Optional[float] = None
- speaker: typing.Optional[int] = None
- speaker_confidence: typing.Optional[int] = None
+ speaker: typing.Optional[float] = None
+ speaker_confidence: typing.Optional[float] = None
punctuated_word: typing.Optional[str] = None
if IS_PYDANTIC_V2:
diff --git a/src/deepgram/types/listen_v2encoding.py b/src/deepgram/types/listen_v2encoding.py
index 00a1ab02..6dedb7db 100644
--- a/src/deepgram/types/listen_v2encoding.py
+++ b/src/deepgram/types/listen_v2encoding.py
@@ -2,4 +2,4 @@
import typing
-ListenV2Encoding = typing.Literal["linear16"]
+ListenV2Encoding = typing.Union[typing.Literal["linear16", "linear32", "mulaw", "alaw", "opus", "ogg-opus"], typing.Any]
diff --git a/src/deepgram/types/project_request_response.py b/src/deepgram/types/project_request_response.py
index 40e0705c..9b45765a 100644
--- a/src/deepgram/types/project_request_response.py
+++ b/src/deepgram/types/project_request_response.py
@@ -42,7 +42,7 @@ class ProjectRequestResponse(UniversalBaseModel):
The response of the request
"""
- code: typing.Optional[int] = pydantic.Field(default=None)
+ code: typing.Optional[float] = pydantic.Field(default=None)
"""
The response code of the request
"""
diff --git a/src/deepgram/types/read_v1response_metadata_metadata_intents_info.py b/src/deepgram/types/read_v1response_metadata_metadata_intents_info.py
index ae541227..5bbb2a5b 100644
--- a/src/deepgram/types/read_v1response_metadata_metadata_intents_info.py
+++ b/src/deepgram/types/read_v1response_metadata_metadata_intents_info.py
@@ -8,8 +8,8 @@
class ReadV1ResponseMetadataMetadataIntentsInfo(UniversalBaseModel):
model_uuid: typing.Optional[str] = None
- input_tokens: typing.Optional[int] = None
- output_tokens: typing.Optional[int] = None
+ input_tokens: typing.Optional[float] = None
+ output_tokens: typing.Optional[float] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
diff --git a/src/deepgram/types/read_v1response_metadata_metadata_sentiment_info.py b/src/deepgram/types/read_v1response_metadata_metadata_sentiment_info.py
index 821639d7..545ac29b 100644
--- a/src/deepgram/types/read_v1response_metadata_metadata_sentiment_info.py
+++ b/src/deepgram/types/read_v1response_metadata_metadata_sentiment_info.py
@@ -8,8 +8,8 @@
class ReadV1ResponseMetadataMetadataSentimentInfo(UniversalBaseModel):
model_uuid: typing.Optional[str] = None
- input_tokens: typing.Optional[int] = None
- output_tokens: typing.Optional[int] = None
+ input_tokens: typing.Optional[float] = None
+ output_tokens: typing.Optional[float] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
diff --git a/src/deepgram/types/read_v1response_metadata_metadata_summary_info.py b/src/deepgram/types/read_v1response_metadata_metadata_summary_info.py
index 22f034fc..3d0cfb55 100644
--- a/src/deepgram/types/read_v1response_metadata_metadata_summary_info.py
+++ b/src/deepgram/types/read_v1response_metadata_metadata_summary_info.py
@@ -8,8 +8,8 @@
class ReadV1ResponseMetadataMetadataSummaryInfo(UniversalBaseModel):
model_uuid: typing.Optional[str] = None
- input_tokens: typing.Optional[int] = None
- output_tokens: typing.Optional[int] = None
+ input_tokens: typing.Optional[float] = None
+ output_tokens: typing.Optional[float] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
diff --git a/src/deepgram/types/read_v1response_metadata_metadata_topics_info.py b/src/deepgram/types/read_v1response_metadata_metadata_topics_info.py
index 43199298..beea0590 100644
--- a/src/deepgram/types/read_v1response_metadata_metadata_topics_info.py
+++ b/src/deepgram/types/read_v1response_metadata_metadata_topics_info.py
@@ -8,8 +8,8 @@
class ReadV1ResponseMetadataMetadataTopicsInfo(UniversalBaseModel):
model_uuid: typing.Optional[str] = None
- input_tokens: typing.Optional[int] = None
- output_tokens: typing.Optional[int] = None
+ input_tokens: typing.Optional[float] = None
+ output_tokens: typing.Optional[float] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
diff --git a/src/deepgram/types/shared_intents_results_intents_segments_item.py b/src/deepgram/types/shared_intents_results_intents_segments_item.py
index 05be8044..7a869781 100644
--- a/src/deepgram/types/shared_intents_results_intents_segments_item.py
+++ b/src/deepgram/types/shared_intents_results_intents_segments_item.py
@@ -11,8 +11,8 @@
class SharedIntentsResultsIntentsSegmentsItem(UniversalBaseModel):
text: typing.Optional[str] = None
- start_word: typing.Optional[int] = None
- end_word: typing.Optional[int] = None
+ start_word: typing.Optional[float] = None
+ end_word: typing.Optional[float] = None
intents: typing.Optional[typing.List[SharedIntentsResultsIntentsSegmentsItemIntentsItem]] = None
if IS_PYDANTIC_V2:
diff --git a/src/deepgram/types/shared_topics_results_topics_segments_item.py b/src/deepgram/types/shared_topics_results_topics_segments_item.py
index 945fbb97..3bb5900c 100644
--- a/src/deepgram/types/shared_topics_results_topics_segments_item.py
+++ b/src/deepgram/types/shared_topics_results_topics_segments_item.py
@@ -9,8 +9,8 @@
class SharedTopicsResultsTopicsSegmentsItem(UniversalBaseModel):
text: typing.Optional[str] = None
- start_word: typing.Optional[int] = None
- end_word: typing.Optional[int] = None
+ start_word: typing.Optional[float] = None
+ end_word: typing.Optional[float] = None
topics: typing.Optional[typing.List[SharedTopicsResultsTopicsSegmentsItemTopicsItem]] = None
if IS_PYDANTIC_V2:
diff --git a/src/deepgram/types/usage_breakdown_v1response_resolution.py b/src/deepgram/types/usage_breakdown_v1response_resolution.py
index aa6ab65e..2d05428c 100644
--- a/src/deepgram/types/usage_breakdown_v1response_resolution.py
+++ b/src/deepgram/types/usage_breakdown_v1response_resolution.py
@@ -12,7 +12,7 @@ class UsageBreakdownV1ResponseResolution(UniversalBaseModel):
Time unit for the resolution
"""
- amount: int = pydantic.Field()
+ amount: float = pydantic.Field()
"""
Amount of units
"""
diff --git a/src/deepgram/types/usage_breakdown_v1response_results_item.py b/src/deepgram/types/usage_breakdown_v1response_results_item.py
index a9272faa..1675a1b1 100644
--- a/src/deepgram/types/usage_breakdown_v1response_results_item.py
+++ b/src/deepgram/types/usage_breakdown_v1response_results_item.py
@@ -23,22 +23,22 @@ class UsageBreakdownV1ResponseResultsItem(UniversalBaseModel):
Agent hours used
"""
- tokens_in: int = pydantic.Field()
+ tokens_in: float = pydantic.Field()
"""
Number of input tokens
"""
- tokens_out: int = pydantic.Field()
+ tokens_out: float = pydantic.Field()
"""
Number of output tokens
"""
- tts_characters: int = pydantic.Field()
+ tts_characters: float = pydantic.Field()
"""
Number of text-to-speech characters processed
"""
- requests: int = pydantic.Field()
+ requests: float = pydantic.Field()
"""
Number of requests
"""
diff --git a/src/deepgram/types/usage_v1response_resolution.py b/src/deepgram/types/usage_v1response_resolution.py
index f2e10b9c..e6d9289c 100644
--- a/src/deepgram/types/usage_v1response_resolution.py
+++ b/src/deepgram/types/usage_v1response_resolution.py
@@ -8,7 +8,7 @@
class UsageV1ResponseResolution(UniversalBaseModel):
units: typing.Optional[str] = None
- amount: typing.Optional[int] = None
+ amount: typing.Optional[float] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
diff --git a/tests/integrations/test_read_client.py b/tests/integrations/test_read_client.py
index c1996b53..1bd07b57 100644
--- a/tests/integrations/test_read_client.py
+++ b/tests/integrations/test_read_client.py
@@ -320,6 +320,7 @@ def test_text_client_analyze_url(self, mock_analyze, sync_client_wrapper, mock_t
callback_method=None,
sentiment=None,
summarize=None,
+ tag=None,
topics=None,
custom_topic=None,
custom_topic_mode=None,
@@ -363,6 +364,7 @@ def test_text_client_analyze_text_with_all_features(self, mock_analyze, sync_cli
callback_method=None,
sentiment=True,
summarize=True,
+ tag=None,
topics=True,
custom_topic=["technology", "AI"],
custom_topic_mode="extended",
@@ -401,6 +403,7 @@ def test_text_client_analyze_with_callback(self, mock_analyze, sync_client_wrapp
callback_method="POST",
sentiment=True,
summarize=None,
+ tag=None,
topics=None,
custom_topic=None,
custom_topic_mode=None,
@@ -440,6 +443,7 @@ def test_text_client_analyze_with_request_options(self, mock_analyze, sync_clien
callback_method=None,
sentiment=None,
summarize=None,
+ tag=None,
topics=True,
custom_topic=None,
custom_topic_mode=None,
@@ -474,6 +478,7 @@ async def test_async_text_client_analyze_url(self, mock_analyze, async_client_wr
callback_method=None,
sentiment=None,
summarize=None,
+ tag=None,
topics=None,
custom_topic=None,
custom_topic_mode=None,
@@ -518,6 +523,7 @@ async def test_async_text_client_analyze_with_all_features(self, mock_analyze, a
callback_method=None,
sentiment=True,
summarize=True,
+ tag=None,
topics=True,
custom_topic="machine learning",
custom_topic_mode="strict",