Skip to content

Commit

Permalink
add missing byteorder argument, assume network byte order
Browse files Browse the repository at this point in the history
  • Loading branch information
evq committed Sep 10, 2024
1 parent c60f52e commit 649f12d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stt_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def TextToProtoMessage(text: ipc_messages.Text):
event.result.append(rr)

proto = event.SerializeToString()
return len(proto).to_bytes(4, signed=False) + proto
return len(proto).to_bytes(4, "big", signed=False) + proto


app = FastAPI()
Expand Down

0 comments on commit 649f12d

Please sign in to comment.