Skip to content

Commit 5af50ad

Browse files
Merge pull request #374 from dvonthenen/default-model-transcribe
Make `nova-2` and `aura-asteria-en` the Default Models
2 parents 88945ca + ca22fc7 commit 5af50ad

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

deepgram/clients/live/v1/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class LiveOptions:
5858
default=None, metadata=config(exclude=lambda f: f is None)
5959
)
6060
model: Optional[str] = field(
61-
default=None, metadata=config(exclude=lambda f: f is None)
61+
default="nova-2", metadata=config(exclude=lambda f: f is None)
6262
)
6363
multichannel: Optional[bool] = field(
6464
default=None, metadata=config(exclude=lambda f: f is None)

deepgram/clients/prerecorded/v1/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class PrerecordedOptions:
8585
default=None, metadata=config(exclude=lambda f: f is None)
8686
)
8787
model: Optional[str] = field(
88-
default=None, metadata=config(exclude=lambda f: f is None)
88+
default="nova-2", metadata=config(exclude=lambda f: f is None)
8989
)
9090
multichannel: Optional[bool] = field(
9191
default=None, metadata=config(exclude=lambda f: f is None)

deepgram/clients/speak/v1/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class SpeakOptions:
2121
"""
2222

2323
model: Optional[str] = field(
24-
default=None, metadata=config(exclude=lambda f: f is None)
24+
default="aura-asteria-en", metadata=config(exclude=lambda f: f is None)
2525
)
2626
encoding: Optional[str] = field(
2727
default=None, metadata=config(exclude=lambda f: f is None)

examples/advanced/prerecorded/direct_invocation/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def main():
2828

2929
# STEP 2 Call the transcribe_url method on the prerecorded class
3030
options: PrerecordedOptions = PrerecordedOptions(
31-
model="nova",
31+
model="nova-2",
3232
smart_format=True,
3333
summarize="v2",
3434
)

examples/prerecorded/async_url/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717

1818
options: PrerecordedOptions = PrerecordedOptions(
19-
model="nova",
19+
model="nova-2",
2020
smart_format=True,
2121
summarize="v2",
2222
)

examples/prerecorded/file/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def main():
3939
}
4040

4141
options: PrerecordedOptions = PrerecordedOptions(
42-
model="nova",
42+
model="nova-2",
4343
smart_format=True,
4444
utterances=True,
4545
punctuate=True,

examples/prerecorded/stream_file/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def main():
4040
}
4141

4242
options = PrerecordedOptions(
43-
model="nova",
43+
model="nova-2",
4444
)
4545

4646
response = deepgram.listen.prerecorded.v("1").transcribe_file(payload, options)

0 commit comments

Comments
 (0)