Skip to content

Commit ee625c4

Browse files
Merge pull request #218 from dvonthenen/fix-http-stream-example
Fix dup/merge conflict for `examples/streaming/http`
2 parents 11538c0 + c7a1afa commit ee625c4

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

examples/streaming/http/main.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,6 @@ def main():
1919
try:
2020
deepgram = DeepgramClient()
2121

22-
def on_message(result=None):
23-
if result is None:
24-
return
25-
sentence = result.channel.alternatives[0].transcript
26-
if len(sentence) == 0:
27-
return
28-
print(f"speaker: {sentence}")
29-
30-
def on_metadata(metadata=None):
31-
if metadata is None:
32-
return
33-
print(f"\n{metadata}\n")
34-
35-
def on_error(error=None):
36-
if error is None:
37-
return
38-
print(f"\n{error}\n")
39-
4022
# Create a websocket connection to Deepgram
4123
dg_connection = deepgram.listen.live.v("1")
4224

0 commit comments

Comments
 (0)