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 VoiceOptionswhere
*const u8 is !null: Freeze,
PhantomData<Content>: Freeze,
*const dyn Stream<Item = Vec<u8>> + Send is !null: Freeze,
PhantomData<dyn Stream<Item = Vec<u8>> + Send>: Freeze,
*const dyn Stream<Item = String> + Send is !null: Freeze,
PhantomData<dyn Stream<Item = String> + Send>: Freeze,
PhantomData<Tool>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Schema>: Freeze,
*const LeafNode<String, Schema> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Schema)>>: Freeze,
PhantomData<String>: Freeze,
*const Schema is !null: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
*const ArcInner<dyn Fn(Value, Arc<dyn Fn(Value) + Sync + Send>) -> Pin<Box<dyn Future<Output = Result<Map<String, Value>, Error>> + Send>> + Sync + Send> is !null: Freeze,
PhantomData<ArcInner<dyn Fn(Value, Arc<dyn Fn(Value) + Sync + Send>) -> Pin<Box<dyn Future<Output = Result<Map<String, Value>, Error>> + Send>> + Sync + Send>>: Freeze,
PhantomData<Ethnicity>: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
PhantomData<GroupRef>: Freeze,
PhantomData<GroupMember>: Freeze,
impl Move for VoiceOptions
impl Send for VoiceOptionswhere
RawVecInner: Send,
NonZero<i32>: Send,
Utc: Send,
RawTable<usize>: Send,
BoxRaw<dyn Stream<Item = Vec<u8>> + Send>: Send,
BoxRaw<dyn Stream<Item = String> + Send>: Send,
NodeRef<Owned, String, Schema, LeafOrInternal>: Send,
BoxRaw<(String, Schema)>: Send,
BoxRaw<Schema>: Send,
Arc<dyn Fn(Value, Arc<dyn Fn(Value) + Sync + Send>) -> Pin<Box<dyn Future<Output = Result<Map<String, Value>, Error>> + Send>> + Sync + Send>: Send,
impl Unpin for VoiceOptionswhere
*const u8 is !null: Unpin,
NonZero<i32>: Unpin,
Utc: Unpin,
Box<dyn Stream<Item = Vec<u8>> + Send>: Unpin,
Box<dyn Stream<Item = String> + Send>: Unpin,
*const LeafNode<String, Schema> is !null: Unpin,
Box<(String, Schema)>: Unpin,
Box<Schema>: Unpin,
Arc<dyn Fn(Value, Arc<dyn Fn(Value) + Sync + Send>) -> Pin<Box<dyn Future<Output = Result<Map<String, Value>, Error>> + Send>> + Sync + Send>: Unpin,
impl UnsafeUnpin for VoiceOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Content>: UnsafeUnpin,
*const dyn Stream<Item = Vec<u8>> + Send is !null: UnsafeUnpin,
PhantomData<dyn Stream<Item = Vec<u8>> + Send>: UnsafeUnpin,
*const dyn Stream<Item = String> + Send is !null: UnsafeUnpin,
PhantomData<dyn Stream<Item = String> + Send>: UnsafeUnpin,
PhantomData<Tool>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Schema>: UnsafeUnpin,
*const LeafNode<String, Schema> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Schema)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const Schema is !null: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
*const ArcInner<dyn Fn(Value, Arc<dyn Fn(Value) + Sync + Send>) -> Pin<Box<dyn Future<Output = Result<Map<String, Value>, Error>> + Send>> + Sync + Send> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Fn(Value, Arc<dyn Fn(Value) + Sync + Send>) -> Pin<Box<dyn Future<Output = Result<Map<String, Value>, Error>> + Send>> + Sync + Send>>: UnsafeUnpin,
PhantomData<Ethnicity>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
PhantomData<GroupRef>: UnsafeUnpin,
PhantomData<GroupMember>: UnsafeUnpin,
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