We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite everything except the pydub components in rust. There are three reasons for this
pydub
To handle the pydub portion, the project will use pyo3. The proof of concept to make sure this worked is here
pyo3
use pyo3::prelude::*; use pyo3::types::IntoPyDict; fn main() -> PyResult<()> { Python::with_gil(|py| { let sys = py.import("sys")?; let locals = [("os", py.import("os")?), ("pydub", py.import("pydub")?)].into_py_dict(py); let code = "pydub.AudioSegment.from_mp3('/home/johannes/Repos/cyberpunk/testdata/celtic_pt2.mp3')"; let segment: PyObject = py.eval(code, None, Some(&locals))?.extract()?; println!("let's see - {}", segment); segment.call_method1(py, "export", ("two.wav", "wav")).unwrap(); Ok(()) }) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Rewrite everything except the
pydub
components in rust. There are three reasons for thisTo handle the
pydub
portion, the project will usepyo3
. The proof of concept to make sure this worked is hereThe text was updated successfully, but these errors were encountered: