diff --git a/src/tts.rs b/src/tts.rs index 744b1b3..699b6bf 100644 --- a/src/tts.rs +++ b/src/tts.rs @@ -20,7 +20,7 @@ pub async fn start_tts(audio_sink: TtsOutStream) -> TtsControl { // Set up the TTS task tokio::spawn(async move { while let Some(text) = tts_request_receiver.recv().await { - let tts_output = Command::new("espeak-ng").args(["-v", "en-us+f3", "--stdout"]).arg(text).stdout(Stdio::piped()).spawn().unwrap().wait_with_output().unwrap().stdout; + let tts_output = Command::new("espeak-ng").args(["-v", "en-us+f3", "--stdout", "-z", "-p", "80", "-s", "190"]).arg(text).stdout(Stdio::piped()).spawn().unwrap().wait_with_output().unwrap().stdout; let tts_fd = std::io::Cursor::new(tts_output); let mut wav_reader = hound::WavReader::new(tts_fd).unwrap();