diff --git a/src/main.rs b/src/main.rs index f05a97f..8541e06 100644 --- a/src/main.rs +++ b/src/main.rs @@ -112,11 +112,13 @@ fn main() -> eyre::Result<()> { Message::Text(payload) => { match serde_json::from_str::(&payload) { Ok(transcript) => { - info!( - "result: {}", - serde_json::to_string_pretty(&transcript.result) - .unwrap() - ); + let text = transcript + .result + .iter() + .map(|p| p.word.to_string()) + .collect::>() + .join(" "); + info!("result: {}", text); } Err(_) => { // The payload is still not a final transcript, so we just ignore it