Skip to content

Commit 3ff64a1

Browse files
feat(api): manual updates
1 parent 2c9c089 commit 3ff64a1

7 files changed

Lines changed: 104 additions & 157 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1046
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/telnyx/telnyx-d6cfa06b5dd23c8a0013c6517344bb13f9c5b8ef6fc5da477b04342982eb1aea.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/telnyx/telnyx-ee976ed2ebdd8e1e206ffe24f5884c552d9a1215c15a1ac38f5b2f3c2b3bcbc1.yml
33
openapi_spec_hash: 91111be0696f82a3d576ef9a13d7cdc2
4-
config_hash: 7401b11c9df62b8c898e74259459ac63
4+
config_hash: c04935d59f036be53f0076c7978b6e75

api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,6 +1461,8 @@ from telnyx.types.calls import (
14611461
TranscriptionEngineBConfig,
14621462
TranscriptionEngineDeepgramConfig,
14631463
TranscriptionEngineGoogleConfig,
1464+
TranscriptionEngineSonioxConfig,
1465+
TranscriptionEngineSpeechmaticsConfig,
14641466
TranscriptionEngineTelnyxConfig,
14651467
TranscriptionEngineXaiConfig,
14661468
TranscriptionStartRequest,

src/telnyx/types/calls/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@
122122
from .transcription_engine_google_config_param import (
123123
TranscriptionEngineGoogleConfigParam as TranscriptionEngineGoogleConfigParam,
124124
)
125+
from .transcription_engine_soniox_config_param import (
126+
TranscriptionEngineSonioxConfigParam as TranscriptionEngineSonioxConfigParam,
127+
)
125128
from .transcription_engine_telnyx_config_param import (
126129
TranscriptionEngineTelnyxConfigParam as TranscriptionEngineTelnyxConfigParam,
127130
)
@@ -131,6 +134,9 @@
131134
from .transcription_engine_assemblyai_config_param import (
132135
TranscriptionEngineAssemblyaiConfigParam as TranscriptionEngineAssemblyaiConfigParam,
133136
)
137+
from .transcription_engine_speechmatics_config_param import (
138+
TranscriptionEngineSpeechmaticsConfigParam as TranscriptionEngineSpeechmaticsConfigParam,
139+
)
134140
from .call_control_command_result_with_conversation_id import (
135141
CallControlCommandResultWithConversationID as CallControlCommandResultWithConversationID,
136142
)

src/telnyx/types/calls/action_start_transcription_params.py

Lines changed: 6 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from __future__ import annotations
44

55
from typing import Union
6-
from typing_extensions import Literal, Required, TypeAlias, TypedDict
6+
from typing_extensions import Literal, TypeAlias, TypedDict
77

88
from .deepgram_nova2_config_param import DeepgramNova2ConfigParam
99
from .deepgram_nova3_config_param import DeepgramNova3ConfigParam
@@ -12,15 +12,12 @@
1212
from .transcription_engine_xai_config_param import TranscriptionEngineXaiConfigParam
1313
from .transcription_engine_azure_config_param import TranscriptionEngineAzureConfigParam
1414
from .transcription_engine_google_config_param import TranscriptionEngineGoogleConfigParam
15+
from .transcription_engine_soniox_config_param import TranscriptionEngineSonioxConfigParam
1516
from .transcription_engine_telnyx_config_param import TranscriptionEngineTelnyxConfigParam
1617
from .transcription_engine_assemblyai_config_param import TranscriptionEngineAssemblyaiConfigParam
18+
from .transcription_engine_speechmatics_config_param import TranscriptionEngineSpeechmaticsConfigParam
1719

18-
__all__ = [
19-
"ActionStartTranscriptionParams",
20-
"TranscriptionEngineConfig",
21-
"TranscriptionEngineConfigTranscriptionEngineSpeechmaticsConfig",
22-
"TranscriptionEngineConfigTranscriptionEngineSonioxConfig",
23-
]
20+
__all__ = ["ActionStartTranscriptionParams", "TranscriptionEngineConfig"]
2421

2522

2623
class ActionStartTranscriptionParams(TypedDict, total=False):
@@ -56,82 +53,14 @@ class ActionStartTranscriptionParams(TypedDict, total=False):
5653
"""
5754

5855

59-
class TranscriptionEngineConfigTranscriptionEngineSpeechmaticsConfig(TypedDict, total=False):
60-
interim_results: bool
61-
"""Whether to send also interim results.
62-
63-
If set to false, only final results will be sent.
64-
"""
65-
66-
language: Literal[
67-
"en",
68-
"ba",
69-
"eu",
70-
"gl",
71-
"ga",
72-
"mt",
73-
"mn",
74-
"sw",
75-
"ug",
76-
"cy",
77-
"ar_en",
78-
"cmn_en",
79-
"en_ms",
80-
"en_ta",
81-
"tl",
82-
"es-bilingual-en",
83-
"cmn_en_ms_ta",
84-
]
85-
"""Language to use for speech recognition"""
86-
87-
transcription_engine: Literal["Speechmatics"]
88-
"""Engine identifier for Speechmatics transcription service"""
89-
90-
transcription_model: Literal["speechmatics/standard"]
91-
"""The model to use for transcription."""
92-
93-
94-
class TranscriptionEngineConfigTranscriptionEngineSonioxConfig(TypedDict, total=False):
95-
transcription_engine: Required[Literal["Soniox"]]
96-
"""Engine identifier for Soniox transcription service"""
97-
98-
enable_endpoint_detection: bool
99-
"""
100-
When true, Soniox emits end-of-utterance events at the cadence configured by
101-
`max_endpoint_delay_ms`.
102-
"""
103-
104-
interim_results: bool
105-
"""Whether to send also interim results.
106-
107-
If set to false, only final results will be sent.
108-
"""
109-
110-
language: str
111-
"""ISO 639-1 language hint (e.g.
112-
113-
`en`, `es`), or `auto` to omit the hint and let Soniox auto-detect supported
114-
languages multilingually.
115-
"""
116-
117-
max_endpoint_delay_ms: int
118-
"""Maximum silence (in milliseconds) before Soniox emits an end-of-utterance event.
119-
120-
Only honored when `enable_endpoint_detection` is true. Range: 500-3000 ms.
121-
"""
122-
123-
transcription_model: Literal["soniox/stt-rt-v4"]
124-
"""The model to use for transcription."""
125-
126-
12756
TranscriptionEngineConfig: TypeAlias = Union[
12857
TranscriptionEngineGoogleConfigParam,
12958
TranscriptionEngineTelnyxConfigParam,
13059
TranscriptionEngineAzureConfigParam,
13160
TranscriptionEngineXaiConfigParam,
13261
TranscriptionEngineAssemblyaiConfigParam,
133-
TranscriptionEngineConfigTranscriptionEngineSpeechmaticsConfig,
134-
TranscriptionEngineConfigTranscriptionEngineSonioxConfig,
62+
TranscriptionEngineSpeechmaticsConfigParam,
63+
TranscriptionEngineSonioxConfigParam,
13564
TranscriptionEngineAConfigParam,
13665
TranscriptionEngineBConfigParam,
13766
DeepgramNova2ConfigParam,
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from typing_extensions import Literal, Required, TypedDict
6+
7+
__all__ = ["TranscriptionEngineSonioxConfigParam"]
8+
9+
10+
class TranscriptionEngineSonioxConfigParam(TypedDict, total=False):
11+
transcription_engine: Required[Literal["Soniox"]]
12+
"""Engine identifier for Soniox transcription service"""
13+
14+
enable_endpoint_detection: bool
15+
"""
16+
When true, Soniox emits end-of-utterance events at the cadence configured by
17+
`max_endpoint_delay_ms`.
18+
"""
19+
20+
interim_results: bool
21+
"""Whether to send also interim results.
22+
23+
If set to false, only final results will be sent.
24+
"""
25+
26+
language: str
27+
"""ISO 639-1 language hint (e.g.
28+
29+
`en`, `es`), or `auto` to omit the hint and let Soniox auto-detect supported
30+
languages multilingually.
31+
"""
32+
33+
max_endpoint_delay_ms: int
34+
"""Maximum silence (in milliseconds) before Soniox emits an end-of-utterance event.
35+
36+
Only honored when `enable_endpoint_detection` is true. Range: 500-3000 ms.
37+
"""
38+
39+
transcription_model: Literal["soniox/stt-rt-v4"]
40+
"""The model to use for transcription."""
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from typing_extensions import Literal, TypedDict
6+
7+
__all__ = ["TranscriptionEngineSpeechmaticsConfigParam"]
8+
9+
10+
class TranscriptionEngineSpeechmaticsConfigParam(TypedDict, total=False):
11+
interim_results: bool
12+
"""Whether to send also interim results.
13+
14+
If set to false, only final results will be sent.
15+
"""
16+
17+
language: Literal[
18+
"en",
19+
"ba",
20+
"eu",
21+
"gl",
22+
"ga",
23+
"mt",
24+
"mn",
25+
"sw",
26+
"ug",
27+
"cy",
28+
"ar_en",
29+
"cmn_en",
30+
"en_ms",
31+
"en_ta",
32+
"tl",
33+
"es-bilingual-en",
34+
"cmn_en_ms_ta",
35+
]
36+
"""Language to use for speech recognition"""
37+
38+
transcription_engine: Literal["Speechmatics"]
39+
"""Engine identifier for Speechmatics transcription service"""
40+
41+
transcription_model: Literal["speechmatics/standard"]
42+
"""The model to use for transcription."""

src/telnyx/types/calls/transcription_start_request_param.py

Lines changed: 6 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from __future__ import annotations
44

55
from typing import Union
6-
from typing_extensions import Literal, Required, TypeAlias, TypedDict
6+
from typing_extensions import Literal, TypeAlias, TypedDict
77

88
from .deepgram_nova2_config_param import DeepgramNova2ConfigParam
99
from .deepgram_nova3_config_param import DeepgramNova3ConfigParam
@@ -12,93 +12,21 @@
1212
from .transcription_engine_xai_config_param import TranscriptionEngineXaiConfigParam
1313
from .transcription_engine_azure_config_param import TranscriptionEngineAzureConfigParam
1414
from .transcription_engine_google_config_param import TranscriptionEngineGoogleConfigParam
15+
from .transcription_engine_soniox_config_param import TranscriptionEngineSonioxConfigParam
1516
from .transcription_engine_telnyx_config_param import TranscriptionEngineTelnyxConfigParam
1617
from .transcription_engine_assemblyai_config_param import TranscriptionEngineAssemblyaiConfigParam
18+
from .transcription_engine_speechmatics_config_param import TranscriptionEngineSpeechmaticsConfigParam
1719

18-
__all__ = [
19-
"TranscriptionStartRequestParam",
20-
"TranscriptionEngineConfig",
21-
"TranscriptionEngineConfigTranscriptionEngineSpeechmaticsConfig",
22-
"TranscriptionEngineConfigTranscriptionEngineSonioxConfig",
23-
]
24-
25-
26-
class TranscriptionEngineConfigTranscriptionEngineSpeechmaticsConfig(TypedDict, total=False):
27-
interim_results: bool
28-
"""Whether to send also interim results.
29-
30-
If set to false, only final results will be sent.
31-
"""
32-
33-
language: Literal[
34-
"en",
35-
"ba",
36-
"eu",
37-
"gl",
38-
"ga",
39-
"mt",
40-
"mn",
41-
"sw",
42-
"ug",
43-
"cy",
44-
"ar_en",
45-
"cmn_en",
46-
"en_ms",
47-
"en_ta",
48-
"tl",
49-
"es-bilingual-en",
50-
"cmn_en_ms_ta",
51-
]
52-
"""Language to use for speech recognition"""
53-
54-
transcription_engine: Literal["Speechmatics"]
55-
"""Engine identifier for Speechmatics transcription service"""
56-
57-
transcription_model: Literal["speechmatics/standard"]
58-
"""The model to use for transcription."""
59-
60-
61-
class TranscriptionEngineConfigTranscriptionEngineSonioxConfig(TypedDict, total=False):
62-
transcription_engine: Required[Literal["Soniox"]]
63-
"""Engine identifier for Soniox transcription service"""
64-
65-
enable_endpoint_detection: bool
66-
"""
67-
When true, Soniox emits end-of-utterance events at the cadence configured by
68-
`max_endpoint_delay_ms`.
69-
"""
70-
71-
interim_results: bool
72-
"""Whether to send also interim results.
73-
74-
If set to false, only final results will be sent.
75-
"""
76-
77-
language: str
78-
"""ISO 639-1 language hint (e.g.
79-
80-
`en`, `es`), or `auto` to omit the hint and let Soniox auto-detect supported
81-
languages multilingually.
82-
"""
83-
84-
max_endpoint_delay_ms: int
85-
"""Maximum silence (in milliseconds) before Soniox emits an end-of-utterance event.
86-
87-
Only honored when `enable_endpoint_detection` is true. Range: 500-3000 ms.
88-
"""
89-
90-
transcription_model: Literal["soniox/stt-rt-v4"]
91-
"""The model to use for transcription."""
92-
20+
__all__ = ["TranscriptionStartRequestParam", "TranscriptionEngineConfig"]
9321

9422
TranscriptionEngineConfig: TypeAlias = Union[
9523
TranscriptionEngineGoogleConfigParam,
9624
TranscriptionEngineTelnyxConfigParam,
9725
TranscriptionEngineAzureConfigParam,
9826
TranscriptionEngineXaiConfigParam,
9927
TranscriptionEngineAssemblyaiConfigParam,
100-
TranscriptionEngineConfigTranscriptionEngineSpeechmaticsConfig,
101-
TranscriptionEngineConfigTranscriptionEngineSonioxConfig,
28+
TranscriptionEngineSpeechmaticsConfigParam,
29+
TranscriptionEngineSonioxConfigParam,
10230
TranscriptionEngineAConfigParam,
10331
TranscriptionEngineBConfigParam,
10432
DeepgramNova2ConfigParam,

0 commit comments

Comments
 (0)