Skip to content

Commit 8039c14

Browse files
committed
chore: update code
Signed-off-by: Xin Liu <[email protected]>
1 parent b1226a9 commit 8039c14

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ use hyper::{
1616
use serde::{Deserialize, Serialize};
1717
use std::{net::SocketAddr, path::PathBuf};
1818
use tokio::net::TcpListener;
19+
use llama_core::metadata::piper::PiperMetadata;
1920

2021
type 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

0 commit comments

Comments
 (0)