-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
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
No instructions on how to build and synthesize some text or files #1
Comments
I'm planning to add a binary crate to serve as a frontend to the crate as well as to showcase some of the capabilities of this synthesizer. |
Here's a simple example I made in my fork. use std::{
sync::Arc,
error::Error
};
use once_cell::sync::Lazy;
use piper::{
synth::PiperSpeechSynthesizer,
vits::VitsModel
};
static ENVIRONMENT: Lazy<Arc<ort::Environment>> = Lazy::new(|| Arc::new(ort::Environment::default()));
fn main() -> Result<(), Box<dyn Error>> {
let synthesizer = PiperSpeechSynthesizer::new(Arc::new(VitsModel::new("en_GB-alba-medium.onnx.json".into(), "en_GB-alba-medium.onnx".into(), &ENVIRONMENT)?))?;
synthesizer.synthesize_to_file("hello.wav", "Hello world".to_string())?;
Ok(())
} |
@mush42 Any update on when examples could be added and/or this package being published on crates.io ? Great work by the way! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello. Can you provide info on how to build and synthesize some text in rust? I have no idea.
The text was updated successfully, but these errors were encountered: