Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions examples/analyze/intent/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@
def main():
try:
# STEP 1 Create a Deepgram client using the API key in the environment variables
config = DeepgramClientOptions(
# verbose=logging.SPAM,
url="api.beta.deepgram.com",
)
deepgram = DeepgramClient("", config)
# config = DeepgramClientOptions(
# verbose=logging.SPAM,
# )
# deepgram = DeepgramClient("", config)
# OR use defaults
deepgram = DeepgramClient()

# STEP 2 Call the transcribe_file method on the prerecorded class
with open(TEXT_FILE, "r") as file:
Expand Down
11 changes: 6 additions & 5 deletions examples/analyze/sentiment/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@
def main():
try:
# STEP 1 Create a Deepgram client using the API key in the environment variables
config = DeepgramClientOptions(
# verbose=logging.SPAM,
url="api.beta.deepgram.com",
)
deepgram = DeepgramClient("", config)
# config = DeepgramClientOptions(
# verbose=logging.SPAM,
# )
# deepgram = DeepgramClient("", config)
# OR use defaults
deepgram = DeepgramClient()

# STEP 2 Call the transcribe_file method on the prerecorded class
with open(TEXT_FILE, "r") as file:
Expand Down
11 changes: 6 additions & 5 deletions examples/analyze/summary/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@
def main():
try:
# STEP 1 Create a Deepgram client using the API key in the environment variables
config = DeepgramClientOptions(
# verbose=logging.SPAM,
url="api.beta.deepgram.com",
)
deepgram = DeepgramClient("", config)
# config = DeepgramClientOptions(
# verbose=logging.SPAM,
# )
# deepgram = DeepgramClient("", config)
# OR use defaults
deepgram = DeepgramClient()

# STEP 2 Call the transcribe_file method on the prerecorded class
with open(TEXT_FILE, "r") as file:
Expand Down
11 changes: 6 additions & 5 deletions examples/analyze/topic/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@
def main():
try:
# STEP 1 Create a Deepgram client using the API key in the environment variables
config = DeepgramClientOptions(
# verbose=logging.SPAM,
url="api.beta.deepgram.com",
)
deepgram = DeepgramClient("", config)
# config = DeepgramClientOptions(
# verbose=logging.SPAM,
# )
# deepgram = DeepgramClient("", config)
# OR use defaults
deepgram = DeepgramClient()

# STEP 2 Call the transcribe_file method on the prerecorded class
with open(TEXT_FILE, "r") as file:
Expand Down