File tree Expand file tree Collapse file tree 4 files changed +24
-20
lines changed Expand file tree Collapse file tree 4 files changed +24
-20
lines changed Original file line number Diff line number Diff line change 2222def main ():
2323 try :
2424 # STEP 1 Create a Deepgram client using the API key in the environment variables
25- config = DeepgramClientOptions (
26- # verbose=logging.SPAM,
27- url = "api.beta.deepgram.com" ,
28- )
29- deepgram = DeepgramClient ("" , config )
25+ # config = DeepgramClientOptions(
26+ # verbose=logging.SPAM,
27+ # )
28+ # deepgram = DeepgramClient("", config)
29+ # OR use defaults
30+ deepgram = DeepgramClient ()
3031
3132 # STEP 2 Call the transcribe_file method on the prerecorded class
3233 with open (TEXT_FILE , "r" ) as file :
Original file line number Diff line number Diff line change 2222def main ():
2323 try :
2424 # STEP 1 Create a Deepgram client using the API key in the environment variables
25- config = DeepgramClientOptions (
26- # verbose=logging.SPAM,
27- url = "api.beta.deepgram.com" ,
28- )
29- deepgram = DeepgramClient ("" , config )
25+ # config = DeepgramClientOptions(
26+ # verbose=logging.SPAM,
27+ # )
28+ # deepgram = DeepgramClient("", config)
29+ # OR use defaults
30+ deepgram = DeepgramClient ()
3031
3132 # STEP 2 Call the transcribe_file method on the prerecorded class
3233 with open (TEXT_FILE , "r" ) as file :
Original file line number Diff line number Diff line change 2222def main ():
2323 try :
2424 # STEP 1 Create a Deepgram client using the API key in the environment variables
25- config = DeepgramClientOptions (
26- # verbose=logging.SPAM,
27- url = "api.beta.deepgram.com" ,
28- )
29- deepgram = DeepgramClient ("" , config )
25+ # config = DeepgramClientOptions(
26+ # verbose=logging.SPAM,
27+ # )
28+ # deepgram = DeepgramClient("", config)
29+ # OR use defaults
30+ deepgram = DeepgramClient ()
3031
3132 # STEP 2 Call the transcribe_file method on the prerecorded class
3233 with open (TEXT_FILE , "r" ) as file :
Original file line number Diff line number Diff line change 2222def main ():
2323 try :
2424 # STEP 1 Create a Deepgram client using the API key in the environment variables
25- config = DeepgramClientOptions (
26- # verbose=logging.SPAM,
27- url = "api.beta.deepgram.com" ,
28- )
29- deepgram = DeepgramClient ("" , config )
25+ # config = DeepgramClientOptions(
26+ # verbose=logging.SPAM,
27+ # )
28+ # deepgram = DeepgramClient("", config)
29+ # OR use defaults
30+ deepgram = DeepgramClient ()
3031
3132 # STEP 2 Call the transcribe_file method on the prerecorded class
3233 with open (TEXT_FILE , "r" ) as file :
You can’t perform that action at this time.
0 commit comments