Spaces:
Running
Running
File size: 540 Bytes
edc06cb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
from typing import TypedDict
class MoraForTest(TypedDict):
text: str
consonant: str
consonant_length: float
vowel: str
vowel_length: float
pitch: float
def gen_mora(
text: str,
consonant: str,
consonant_length: float,
vowel: str,
vowel_length: float,
pitch: float,
) -> MoraForTest:
return {
"text": text,
"consonant": consonant,
"consonant_length": consonant_length,
"vowel": vowel,
"vowel_length": vowel_length,
"pitch": pitch,
}
|