pub async fn write_audio(
        &mut self,
        tag: impl ToString,
        event_meta: impl Into<EventMeta>,
        audio: impl TryInto<Audio, Error = impl Into<Error>>,
    ) -> Result<()> {
        let summary = Summary::from_audio(tag, audio)?;
        let event = event_meta.into().build_with_summary(summary);
        self.events_writer.send(event).await?;
        if self.auto_flush {
            self.events_writer.flush().await?;
        }
        Ok(())
    }
/// Write an audio summary asynchronously.
Write an audio summary asynchronously.
Write an audio summary asynchronously .
pub async fn write_audio(
        &mut self,
        tag: impl ToString,
        event_meta: impl Into<EventMeta>,
        audio: impl TryInto<Audio, Error = impl Into<Error>>,
    ) -> Result<()> {
        let summary = Summary::from_audio(tag, audio)?;
        let event = event_meta.into().build_with_summary(summary);
        self.events_writer.send(event).await?;
        if self.auto_flush {
            self.events_writer.flush().await?;
        }
        Ok(())
    }
pub async fn write_audio ( & mut self , tag : impl ToString , event_meta : impl Into < EventMeta > , audio : impl TryInto < Audio , Error = impl Into < Error > > , ) -> Result < ( ) > { let summary = Summary :: from_audio ( tag , audio ) ? ; let event = event_meta . into ( ) . build_with_summary ( summary ) ; self . events_writer . send ( event ) . await ? ; if self . auto_flush { self . events_writer . flush ( ) . await ? ; } Ok ( ( ) ) }
Write an audio summary asynchronously.
Write an audio summary asynchronously .
&mut self
tag
impl ToString
event_meta
impl Into<EventMeta>
audio
impl TryInto<Audio, Error = impl Into<Error>>
&mut self
tag
impl ToString
event_meta
impl Into<EventMeta>
audio
impl TryInto<Audio, Error = impl Into<Error>>