pub struct Voice { /* private fields */ }Expand description
A model that rephrases the agent’s replies.
Implementations§
Source§impl Voice
impl Voice
Sourcepub fn from_env() -> Result<Self, MissingApiKey>
pub fn from_env() -> Result<Self, MissingApiKey>
Reads the endpoint, model and key from the environment.
A custom BASE_URL_ENV is taken to mean a server the caller runs, so
a missing key there is not an error.
§Errors
MissingApiKey when the default endpoint would be used without one.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Voice
impl !UnwindSafe for Voice
impl Freeze for Voice
impl Send for Voice
impl Sync for Voice
impl Unpin for Voice
impl UnsafeUnpin for Voice
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