Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Translations 2
  • Loading branch information
maamokun authored May 18, 2023
commit 00839d3c8d3c3cadb87141c68090b50c458c8b51
10 changes: 5 additions & 5 deletions voicevox/audio_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ class Mora:
Attributes
----------
text: str
文字 // Text to synthesize
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
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
Pronounciation length of consonants
vowel: str
母音の音素 //Start of vowels
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
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.

"""
Expand Down