diff --git a/src/edge_tts/communicate.py b/src/edge_tts/communicate.py index 0f5975f..d66a109 100644 --- a/src/edge_tts/communicate.py +++ b/src/edge_tts/communicate.py @@ -444,9 +444,7 @@ class Communicate: # Send the next SSML request to the service. if not await send_ssml_request(): break - elif path in (b"response", b"turn.start"): - pass - else: + elif path not in (b"response", b"turn.start"): raise UnknownResponse( "The response from the service is not recognized.\n" + received.data