Struct GroqProvider
pub struct GroqProvider { /* private fields */ }Expand description
Groq Whisper API transcription_provider (default, backward-compatible with existing config).
Implementations§
Source§impl GroqProvider
impl GroqProvider
pub fn from_config(alias: &str, config: &TranscriptionConfig) -> Result<Self>
Sourcepub fn from_typed_config(
alias: &str,
cfg: &GroqTranscriptionProviderConfig,
) -> Result<Self>
pub fn from_typed_config( alias: &str, cfg: &GroqTranscriptionProviderConfig, ) -> Result<Self>
Build from a typed [providers.transcription.groq.<alias>] entry.
Trait Implementations§
Source§impl Attributable for GroqProvider
impl Attributable for GroqProvider
Source§impl TranscriptionProvider for GroqProvider
impl TranscriptionProvider for GroqProvider
Source§fn transcribe<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
audio_data: &'life1 [u8],
file_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn transcribe<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
audio_data: &'life1 [u8],
file_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Transcribe raw audio bytes.
file_name includes the extension for
format detection (e.g. “voice.ogg”).Source§fn supported_formats(&self) -> Vec<String>
fn supported_formats(&self) -> Vec<String>
List of supported audio file extensions.
Auto Trait Implementations§
impl Freeze for GroqProvider
impl RefUnwindSafe for GroqProvider
impl Send for GroqProvider
impl Sync for GroqProvider
impl Unpin for GroqProvider
impl UnsafeUnpin for GroqProvider
impl UnwindSafe for GroqProvider
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more