File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ use hyper::{
1616use serde:: { Deserialize , Serialize } ;
1717use std:: { net:: SocketAddr , path:: PathBuf } ;
1818use tokio:: net:: TcpListener ;
19+ use llama_core:: metadata:: piper:: PiperMetadata ;
1920
2021type Error = Box < dyn std:: error:: Error + Send + Sync + ' static > ;
2122
@@ -83,8 +84,11 @@ async fn main() -> Result<(), ServerError> {
8384 // log espeak-ng data directory
8485 info ! ( target: "stdout" , "espeak-ng data directory: {}" , cli. espeak_ng_dir. display( ) ) ;
8586
87+ // create a default metadata
88+ let metadata = PiperMetadata :: default ( ) ;
89+
8690 // init the piper context
87- llama_core:: init_piper_context ( cli. model , cli. config , cli. espeak_ng_dir )
91+ llama_core:: init_piper_context ( & metadata , cli. model , cli. config , cli. espeak_ng_dir )
8892 . map_err ( |e| ServerError :: Operation ( e. to_string ( ) ) ) ?;
8993
9094 // socket address
You can’t perform that action at this time.
0 commit comments