diff --git a/crates/voicevox_core/src/infer.rs b/crates/voicevox_core/src/infer.rs index 69c5ab9fd..7124e9a0a 100644 --- a/crates/voicevox_core/src/infer.rs +++ b/crates/voicevox_core/src/infer.rs @@ -53,7 +53,7 @@ pub(crate) trait InferenceSignature: Sized + Send + 'static { type Group: InferenceGroup; type Input: InferenceInputSignature; type Output: TryFrom, Error = anyhow::Error> + Send; - const INFERENCE: ::Kind; + const KIND: ::Kind; } pub(crate) trait InferenceInputSignature: Send + 'static { @@ -121,7 +121,7 @@ impl InferenceSessionSet { I::Signature: InferenceSignature, { InferenceSessionCell { - inner: self.0[I::Signature::INFERENCE].clone(), + inner: self.0[I::Signature::KIND].clone(), marker: PhantomData, } } diff --git a/crates/voicevox_core/src/infer/signatures.rs b/crates/voicevox_core/src/infer/signatures.rs index 243f36649..b7efb6244 100644 --- a/crates/voicevox_core/src/infer/signatures.rs +++ b/crates/voicevox_core/src/infer/signatures.rs @@ -23,7 +23,7 @@ impl InferenceSignature for PredictDuration { type Group = InferenceGroupImpl; type Input = PredictDurationInput; type Output = PredictDurationOutput; - const INFERENCE: InferencelKindImpl = InferencelKindImpl::PredictDuration; + const KIND: InferencelKindImpl = InferencelKindImpl::PredictDuration; } #[derive(InferenceInputSignature)] @@ -44,7 +44,7 @@ impl InferenceSignature for PredictIntonation { type Group = InferenceGroupImpl; type Input = PredictIntonationInput; type Output = PredictIntonationOutput; - const INFERENCE: InferencelKindImpl = InferencelKindImpl::PredictIntonation; + const KIND: InferencelKindImpl = InferencelKindImpl::PredictIntonation; } #[derive(InferenceInputSignature)] @@ -71,7 +71,7 @@ impl InferenceSignature for Decode { type Group = InferenceGroupImpl; type Input = DecodeInput; type Output = DecodeOutput; - const INFERENCE: InferencelKindImpl = InferencelKindImpl::Decode; + const KIND: InferencelKindImpl = InferencelKindImpl::Decode; } #[derive(InferenceInputSignature)]