-
Notifications
You must be signed in to change notification settings - Fork 650
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up code comments and docstrings (#318)
Signed-off-by: rany <[email protected]>
- Loading branch information
Showing
13 changed files
with
40 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
""" | ||
__main__ for edge_tts. | ||
""" | ||
"""Main entrypoint for the edge-tts package.""" | ||
|
||
from .util import main | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
"""Exceptions for the Edge TTS project.""" | ||
"""Custom exceptions for the edge-tts package.""" | ||
|
||
|
||
class BaseEdgeTTSException(Exception): | ||
"""Base exception for the Edge TTS project.""" | ||
class EdgeTTSException(Exception): | ||
"""Base exception for the edge-tts package.""" | ||
|
||
|
||
class UnknownResponse(BaseEdgeTTSException): | ||
class UnknownResponse(EdgeTTSException): | ||
"""Raised when an unknown response is received from the server.""" | ||
|
||
|
||
class UnexpectedResponse(BaseEdgeTTSException): | ||
class UnexpectedResponse(EdgeTTSException): | ||
"""Raised when an unexpected response is received from the server. | ||
This hasn't happened yet, but it's possible that the server will | ||
change its response format in the future.""" | ||
|
||
|
||
class NoAudioReceived(BaseEdgeTTSException): | ||
class NoAudioReceived(EdgeTTSException): | ||
"""Raised when no audio is received from the server.""" | ||
|
||
|
||
class WebSocketError(BaseEdgeTTSException): | ||
class WebSocketError(EdgeTTSException): | ||
"""Raised when a WebSocket error occurs.""" | ||
|
||
|
||
class SkewAdjustmentError(BaseEdgeTTSException): | ||
class SkewAdjustmentError(EdgeTTSException): | ||
"""Raised when an error occurs while adjusting the clock skew.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
"""Edge TTS version information.""" | ||
"""Version information for the edge_tts package.""" | ||
|
||
__version__ = "6.1.19" | ||
__version_info__ = tuple(int(num) for num in __version__.split(".")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters