Skip to content

Commit 524a406

Browse files
dan-ince-aaiAssemblyAI
andauthored
chore: sync sdk code with DeepLearning repo (#145)
Co-authored-by: AssemblyAI <engineering.sdk@assemblyai.com>
1 parent 740c770 commit 524a406

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

assemblyai/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.45.4"
1+
__version__ = "0.45.5"

assemblyai/streaming/v3/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
from .client import StreamingClient
22
from .models import (
33
BeginEvent,
4+
Encoding,
45
EventMessage,
6+
SpeechModel,
57
StreamingClientOptions,
68
StreamingError,
79
StreamingEvents,
@@ -14,7 +16,9 @@
1416

1517
__all__ = [
1618
"BeginEvent",
19+
"Encoding",
1720
"EventMessage",
21+
"SpeechModel",
1822
"StreamingClient",
1923
"StreamingClientOptions",
2024
"StreamingError",

assemblyai/streaming/v3/models.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,18 @@ def __str__(self):
7272
return self.value
7373

7474

75+
class SpeechModel(str, Enum):
76+
universal_streaming_multilingual = "universal-streaming-multilingual"
77+
universal_streaming_english = "universal-streaming-english"
78+
79+
def __str__(self):
80+
return self.value
81+
82+
7583
class StreamingParameters(StreamingSessionParameters):
7684
sample_rate: int
7785
encoding: Optional[Encoding] = None
86+
speech_model: Optional[SpeechModel] = None
7887

7988

8089
class UpdateConfiguration(StreamingSessionParameters):

0 commit comments

Comments
 (0)