pub struct JsonlUtterance {
pub phoneme_ids: Vec<i64>,
pub speaker_id: Option<i64>,
pub language_id: Option<i64>,
pub prosody_features: Option<Vec<Option<ProsodyFeatureJson>>>,
pub output_file: Option<String>,
}Expand description
JSONL の1行を表す構造体
Fields§
§phoneme_ids: Vec<i64>§speaker_id: Option<i64>§language_id: Option<i64>§prosody_features: Option<Vec<Option<ProsodyFeatureJson>>>§output_file: Option<String>出力ファイル名のヒント
Implementations§
Source§impl JsonlUtterance
impl JsonlUtterance
Sourcepub fn parse(line: &str) -> Result<Self, PiperError>
pub fn parse(line: &str) -> Result<Self, PiperError>
JSONL 行をパース
Sourcepub fn to_request(
self,
noise_scale: f32,
length_scale: f32,
noise_w: f32,
) -> SynthesisRequest
pub fn to_request( self, noise_scale: f32, length_scale: f32, noise_w: f32, ) -> SynthesisRequest
SynthesisRequest に変換 (move semantics — self を消費して clone を回避)
Trait Implementations§
Source§impl Debug for JsonlUtterance
impl Debug for JsonlUtterance
Source§impl<'de> Deserialize<'de> for JsonlUtterance
impl<'de> Deserialize<'de> for JsonlUtterance
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for JsonlUtterance
impl RefUnwindSafe for JsonlUtterance
impl Send for JsonlUtterance
impl Sync for JsonlUtterance
impl Unpin for JsonlUtterance
impl UnsafeUnpin for JsonlUtterance
impl UnwindSafe for JsonlUtterance
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more