Skip to content

Commit 47756df

Browse files
Merge pull request #449 from dvonthenen/fix-readme-deprecated-code
Update README to Remove Deprecated Names
2 parents fff2d0e + 7fa3e84 commit 47756df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ options: PrerecordedOptions = PrerecordedOptions(
8888
model="nova-2",
8989
smart_format=True,
9090
)
91-
response = deepgram.listen.prerecorded.v("1").transcribe_url(AUDIO_URL, options)
91+
response = deepgram.listen.rest.v("1").transcribe_url(AUDIO_URL, options)
9292
print(f"response: {response}\n\n")
9393
```
9494

@@ -99,7 +99,7 @@ You can find a [walkthrough](https://developers.deepgram.com/docs/live-streaming
9999
```python
100100
deepgram: DeepgramClient = DeepgramClient()
101101

102-
dg_connection = deepgram.listen.live.v("1")
102+
dg_connection = deepgram.listen.websocket.v("1")
103103

104104
def on_open(self, open, **kwargs):
105105
print(f"\n\n{open}\n\n")

0 commit comments

Comments
 (0)