Skip to content

Commit

Permalink
add_class
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip committed Dec 6, 2023
1 parent d58ae78 commit 9da8b12
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/voicevox_core_python_api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ fn rust(py: Python<'_>, module: &PyModule) -> PyResult<()> {
add_exceptions(module)?;

let blocking_module = PyModule::new(py, "voicevox_core._rust.blocking")?;
blocking_module.add_class::<self::blocking::Synthesizer>()?;
blocking_module.add_class::<self::blocking::OpenJtalk>()?;
blocking_module.add_class::<self::blocking::VoiceModel>()?;
blocking_module.add_class::<self::blocking::UserDict>()?;
module.add_and_register_submodule(blocking_module)?;

Expand Down Expand Up @@ -646,7 +648,7 @@ mod blocking {

#[pyclass]
#[derive(Clone)]
struct VoiceModel(voicevox_core::blocking::VoiceModel);
pub(crate) struct VoiceModel(voicevox_core::blocking::VoiceModel);

#[pymethods]
impl VoiceModel {
Expand Down Expand Up @@ -696,7 +698,7 @@ mod blocking {
}

#[pyclass]
struct Synthesizer(
pub(crate) struct Synthesizer(
Closable<voicevox_core::blocking::Synthesizer<voicevox_core::blocking::OpenJtalk>, Self>,
);

Expand Down

0 comments on commit 9da8b12

Please sign in to comment.