From 7fa3e841cf71014c2287be51a7e9dce8b107465b Mon Sep 17 00:00:00 2001 From: David vonThenen <12752197+dvonthenen@users.noreply.github.com> Date: Wed, 7 Aug 2024 10:28:31 -0700 Subject: [PATCH] Update README to Remove Deprecated Names --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 09a8836c..2414ddd5 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ options: PrerecordedOptions = PrerecordedOptions( model="nova-2", smart_format=True, ) -response = deepgram.listen.prerecorded.v("1").transcribe_url(AUDIO_URL, options) +response = deepgram.listen.rest.v("1").transcribe_url(AUDIO_URL, options) print(f"response: {response}\n\n") ``` @@ -99,7 +99,7 @@ You can find a [walkthrough](https://developers.deepgram.com/docs/live-streaming ```python deepgram: DeepgramClient = DeepgramClient() -dg_connection = deepgram.listen.live.v("1") +dg_connection = deepgram.listen.websocket.v("1") def on_open(self, open, **kwargs): print(f"\n\n{open}\n\n")