1 2 3 4 5 6 7 8 9 10 11 12
use serde::Deserialize; #[derive(Debug, Deserialize)] pub struct OpenAiVoiceResponse { text: String, } impl From<OpenAiVoiceResponse> for String { fn from(response: OpenAiVoiceResponse) -> Self { response.text } }