tts: increase voice pitch and speed
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ pub async fn start_tts(audio_sink: TtsOutStream) -> TtsControl {
|
|||||||
// Set up the TTS task
|
// Set up the TTS task
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
while let Some(text) = tts_request_receiver.recv().await {
|
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 tts_fd = std::io::Cursor::new(tts_output);
|
||||||
let mut wav_reader = hound::WavReader::new(tts_fd).unwrap();
|
let mut wav_reader = hound::WavReader::new(tts_fd).unwrap();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user