No Matches
Public Member Functions | List of all members
audio_tools::TfLiteAudioStreamBase Class Referenceabstract

Astract TfLiteAudioStream to provide access to TfLiteAudioStream for Reader and Writers. More...

#include <TfLiteAudioStream.h>

Inheritance diagram for audio_tools::TfLiteAudioStreamBase:
audio_tools::AudioStreamX audio_tools::AudioStream audio_tools::Stream audio_tools::AudioBaseInfoDependent audio_tools::AudioBaseInfoSource audio_tools::Print audio_tools::TfLiteAudioStream

Public Member Functions

virtual int availableToWrite ()=0
virtual bool begin (TfLiteConfig config)=0
virtual TfLiteConfigconfig ()=0
 Provides the TfLiteConfig information. More...
virtual TfLiteConfig defaultConfig ()=0
virtual tflite::MicroInterpreter & interpreter ()=0
virtual int8_t * modelInputBuffer ()=0
 Provides access to the model input buffer. More...
virtual void setInterpreter (tflite::MicroInterpreter *p_interpreter)=0
virtual size_t write (const uint8_t *audio, size_t bytes)=0
 process the data in batches of max kMaxAudioSampleSize. More...
- Public Member Functions inherited from audio_tools::AudioStreamX
 AudioStreamX (AudioStreamX const &)=delete
virtual int available () override
AudioStreamXoperator= (AudioStreamX const &)=delete
virtual int peek () override
virtual int read () override
virtual size_t readBytes (uint8_t *buffer, size_t length) override
virtual size_t write (const uint8_t *buffer, size_t size) override
virtual size_t write (uint8_t) override
- Public Member Functions inherited from audio_tools::AudioStream
 AudioStream (AudioStream const &)=delete
virtual AudioBaseInfo audioInfo () override
virtual int availableForWrite () override
virtual bool begin ()
virtual void end ()
virtual void flush () override
 operator bool ()
AudioStreamoperator= (AudioStream const &)=delete
virtual size_t readBytes (char *buffer, size_t length)
virtual size_t readBytes (uint8_t *buffer, size_t length) STREAM_WRITE_OVERRIDE=0
virtual void setAudioInfo (AudioBaseInfo info) override
virtual void setNotifyAudioChange (AudioBaseInfoDependent &bi) override
virtual StreamtoStreamPointer ()
virtual size_t write (const uint8_t *buffer, size_t size) override=0
- Public Member Functions inherited from audio_tools::Stream
virtual int available ()
virtual int peek ()
virtual int read ()
virtual size_t readBytes (uint8_t *buffer, size_t len)
virtual void setTimeout (size_t t)
- Public Member Functions inherited from audio_tools::Print
virtual int availableForWrite ()
virtual void flush ()
virtual int print (char c, PrintCharFmt spec)
virtual int print (const char *msg)
virtual int print (int number)
virtual int println (const char *msg="")
virtual size_t write (const char *buffer, size_t size)
virtual size_t write (const char *str)
virtual size_t write (const uint8_t *buffer, size_t size)
virtual size_t write (uint8_t ch)
- Public Member Functions inherited from audio_tools::AudioBaseInfoDependent
virtual AudioBaseInfo audioInfo ()=0
virtual void setAudioInfo (AudioBaseInfo info)=0
virtual bool validate (AudioBaseInfo &info)
virtual void setNotifyAudioChange (AudioBaseInfoDependent &bi)=0

Additional Inherited Members

- Protected Member Functions inherited from audio_tools::AudioStream
virtual int not_supported (int out)
- Protected Attributes inherited from audio_tools::AudioStream
AudioBaseInfo info
AudioBaseInfoDependentp_notify =nullptr

Detailed Description

Astract TfLiteAudioStream to provide access to TfLiteAudioStream for Reader and Writers.

Phil Schatzmann

Member Function Documentation

◆ availableToWrite()

virtual int audio_tools::TfLiteAudioStreamBase::availableToWrite ( )
pure virtual

◆ begin()

virtual bool audio_tools::TfLiteAudioStreamBase::begin ( TfLiteConfig  config)
pure virtual

◆ config()

virtual TfLiteConfig & audio_tools::TfLiteAudioStreamBase::config ( )
pure virtual

Provides the TfLiteConfig information.

Implemented in audio_tools::TfLiteAudioStream.

◆ interpreter()

virtual tflite::MicroInterpreter & audio_tools::TfLiteAudioStreamBase::interpreter ( )
pure virtual

◆ modelInputBuffer()

virtual int8_t * audio_tools::TfLiteAudioStreamBase::modelInputBuffer ( )
pure virtual

Provides access to the model input buffer.

Implemented in audio_tools::TfLiteAudioStream.

◆ setInterpreter()

virtual void audio_tools::TfLiteAudioStreamBase::setInterpreter ( tflite::MicroInterpreter *  p_interpreter)
pure virtual

◆ write()

virtual size_t audio_tools::TfLiteAudioStreamBase::write ( const uint8_t *  audio,
size_t  bytes 
pure virtual

process the data in batches of max kMaxAudioSampleSize.

Reimplemented from audio_tools::AudioStreamX.

Implemented in audio_tools::TfLiteAudioStream.

The documentation for this class was generated from the following file: