ssmd 0.5.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ssmd/__init__.py +189 -0
- ssmd/_version.py +34 -0
- ssmd/capabilities.py +277 -0
- ssmd/document.py +918 -0
- ssmd/formatter.py +244 -0
- ssmd/parser.py +1049 -0
- ssmd/parser_types.py +41 -0
- ssmd/py.typed +0 -0
- ssmd/segment.py +720 -0
- ssmd/sentence.py +270 -0
- ssmd/ssml_conversions.py +124 -0
- ssmd/ssml_parser.py +599 -0
- ssmd/types.py +122 -0
- ssmd/utils.py +333 -0
- ssmd/xsampa_to_ipa.txt +174 -0
- ssmd-0.5.3.dist-info/METADATA +1210 -0
- ssmd-0.5.3.dist-info/RECORD +20 -0
- ssmd-0.5.3.dist-info/WHEEL +5 -0
- ssmd-0.5.3.dist-info/licenses/LICENSE +21 -0
- ssmd-0.5.3.dist-info/top_level.txt +1 -0
ssmd/parser_types.py
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"""Data types for SSMD parser.
|
|
2
|
+
|
|
3
|
+
This module provides backward compatibility by re-exporting types from
|
|
4
|
+
the new locations. New code should import directly from ssmd.types,
|
|
5
|
+
ssmd.segment, and ssmd.sentence.
|
|
6
|
+
|
|
7
|
+
Deprecated: This module is provided for backward compatibility.
|
|
8
|
+
Import from ssmd.types, ssmd.segment, and ssmd.sentence instead.
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
# Re-export types from new locations for backward compatibility
|
|
12
|
+
from ssmd.segment import Segment
|
|
13
|
+
from ssmd.sentence import Sentence
|
|
14
|
+
from ssmd.types import (
|
|
15
|
+
AudioAttrs,
|
|
16
|
+
BreakAttrs,
|
|
17
|
+
PhonemeAttrs,
|
|
18
|
+
ProsodyAttrs,
|
|
19
|
+
SayAsAttrs,
|
|
20
|
+
VoiceAttrs,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
# Backward compatibility aliases
|
|
24
|
+
SSMDSegment = Segment
|
|
25
|
+
SSMDSentence = Sentence
|
|
26
|
+
|
|
27
|
+
__all__ = [
|
|
28
|
+
# Types
|
|
29
|
+
"VoiceAttrs",
|
|
30
|
+
"ProsodyAttrs",
|
|
31
|
+
"BreakAttrs",
|
|
32
|
+
"SayAsAttrs",
|
|
33
|
+
"AudioAttrs",
|
|
34
|
+
"PhonemeAttrs",
|
|
35
|
+
# Classes
|
|
36
|
+
"Segment",
|
|
37
|
+
"Sentence",
|
|
38
|
+
# Backward compatibility aliases
|
|
39
|
+
"SSMDSegment",
|
|
40
|
+
"SSMDSentence",
|
|
41
|
+
]
|
ssmd/py.typed
ADDED
|
File without changes
|