pub struct VoiceOptions {
pub content: Option<Vec<Content>>,
pub audio: Option<BoxStream<'static, Vec<u8>>>,
pub notes: Option<BoxStream<'static, String>>,
pub tools: Option<ToolsOrTool>,
pub max_tools: Option<u32>,
pub voice: Option<PartialDemographic>,
pub group: Option<Group>,
}Expand description
The options argument of generate_voice and generate_voice_sync. audio
is PCM16 at 16 kHz. Dropping the returned stream closes the socket.
Fields§
§content: Option<Vec<Content>>§audio: Option<BoxStream<'static, Vec<u8>>>§notes: Option<BoxStream<'static, String>>§tools: Option<ToolsOrTool>§max_tools: Option<u32>§voice: Option<PartialDemographic>§group: Option<Group>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for VoiceOptions
impl !Sync for VoiceOptions
impl !UnwindSafe for VoiceOptions
impl Forget for VoiceOptions
impl Freeze for VoiceOptions
impl Move for VoiceOptions
impl Send for VoiceOptions
impl Unpin for VoiceOptions
impl UnsafeUnpin for VoiceOptions
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