Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions voicevox/audio_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ class Mora:
Attributes
----------
text: str
文字
Text to synthesize

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mora are returned from /accent_phrases, thus they are already parsed - the text is not parsed again because it is already converted into the other data which the synthesizer actually uses

consonant: str
子音の音素
Start of consonants

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a mora - there is only one consonant.

consonant_length: int
子音の音長
Pronounciation length of consonants
vowel: str
母音の音素
Start of vowels

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a mora - there is only one vowel.

vowel_length: int
母音の音長
Length of vowels

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have the same wording as the other length attribute.

pitch: int
ピッチ
ピッチ //Pitch of the voice

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't the correct way to do comments in docstrings, and it shouldn't be a comment anyway to match the other fields.

"""

def __init__(self, payload: MoraType):
Expand Down