Skip to content

Commit

Permalink
Merge pull request #374 from dvonthenen/default-model-transcribe
Browse files Browse the repository at this point in the history
Make `nova-2` and `aura-asteria-en` the Default Models
  • Loading branch information
dvonthenen committed Apr 24, 2024
2 parents 88945ca + ca22fc7 commit 5af50ad
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion deepgram/clients/live/v1/options.py
Expand Up @@ -58,7 +58,7 @@ class LiveOptions:
default=None, metadata=config(exclude=lambda f: f is None)
)
model: Optional[str] = field(
default=None, metadata=config(exclude=lambda f: f is None)
default="nova-2", metadata=config(exclude=lambda f: f is None)
)
multichannel: Optional[bool] = field(
default=None, metadata=config(exclude=lambda f: f is None)
Expand Down
2 changes: 1 addition & 1 deletion deepgram/clients/prerecorded/v1/options.py
Expand Up @@ -85,7 +85,7 @@ class PrerecordedOptions:
default=None, metadata=config(exclude=lambda f: f is None)
)
model: Optional[str] = field(
default=None, metadata=config(exclude=lambda f: f is None)
default="nova-2", metadata=config(exclude=lambda f: f is None)
)
multichannel: Optional[bool] = field(
default=None, metadata=config(exclude=lambda f: f is None)
Expand Down
2 changes: 1 addition & 1 deletion deepgram/clients/speak/v1/options.py
Expand Up @@ -21,7 +21,7 @@ class SpeakOptions:
"""

model: Optional[str] = field(
default=None, metadata=config(exclude=lambda f: f is None)
default="aura-asteria-en", metadata=config(exclude=lambda f: f is None)
)
encoding: Optional[str] = field(
default=None, metadata=config(exclude=lambda f: f is None)
Expand Down
2 changes: 1 addition & 1 deletion examples/advanced/prerecorded/direct_invocation/main.py
Expand Up @@ -28,7 +28,7 @@ def main():

# STEP 2 Call the transcribe_url method on the prerecorded class
options: PrerecordedOptions = PrerecordedOptions(
model="nova",
model="nova-2",
smart_format=True,
summarize="v2",
)
Expand Down
2 changes: 1 addition & 1 deletion examples/prerecorded/async_url/main.py
Expand Up @@ -16,7 +16,7 @@
}

options: PrerecordedOptions = PrerecordedOptions(
model="nova",
model="nova-2",
smart_format=True,
summarize="v2",
)
Expand Down
2 changes: 1 addition & 1 deletion examples/prerecorded/file/main.py
Expand Up @@ -39,7 +39,7 @@ def main():
}

options: PrerecordedOptions = PrerecordedOptions(
model="nova",
model="nova-2",
smart_format=True,
utterances=True,
punctuate=True,
Expand Down
2 changes: 1 addition & 1 deletion examples/prerecorded/stream_file/main.py
Expand Up @@ -40,7 +40,7 @@ def main():
}

options = PrerecordedOptions(
model="nova",
model="nova-2",
)

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

0 comments on commit 5af50ad

Please sign in to comment.