pub struct VoiceChatRequest {
pub model: String,
pub audio_input: Vec<u8>,
pub input_format: AudioFormat,
pub output_format: AudioFormat,
pub conversation_id: Option<String>,
pub real_time: bool,
pub voice: Option<String>,
pub context: Option<Value>,
}Expand description
Request structure for voice chat functionality
Fields§
§model: StringModel name for conversation processing
audio_input: Vec<u8>Input audio from the user
input_format: AudioFormatFormat of the input audio
output_format: AudioFormatDesired format for the response audio
conversation_id: Option<String>Conversation session identifier
real_time: boolEnable real-time processing
voice: Option<String>Voice selection for response
context: Option<Value>Additional chat context
Trait Implementations§
Source§impl Clone for VoiceChatRequest
impl Clone for VoiceChatRequest
Source§fn clone(&self) -> VoiceChatRequest
fn clone(&self) -> VoiceChatRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VoiceChatRequest
impl Debug for VoiceChatRequest
Source§impl<'de> Deserialize<'de> for VoiceChatRequest
impl<'de> Deserialize<'de> for VoiceChatRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VoiceChatRequest
impl RefUnwindSafe for VoiceChatRequest
impl Send for VoiceChatRequest
impl Sync for VoiceChatRequest
impl Unpin for VoiceChatRequest
impl UnwindSafe for VoiceChatRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more