arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
audio_tools::TfLiteSineReader Class Reference

Generate a sine output from a model that was trained on the sine method. (=hello_world) More...

#include <TfLiteAudioStream.h>

Inheritance diagram for audio_tools::TfLiteSineReader:
audio_tools::TfLiteReader

Public Member Functions

 TfLiteSineReader (int16_t range=32767, float increment=0.01)
 
virtual bool begin (TfLiteAudioStreamBase *parent) override
 
virtual int read (int16_t *data, int sampleCount) override
 
virtual bool begin (TfLiteAudioStreamBase *parent)=0
 
virtual int read (int16_t *data, int len)=0
 

Protected Attributes

float actX =0
 
int channels
 
float increment =0.1
 
TfLiteTensor * input = nullptr
 
TfLiteTensor * output = nullptr
 
tflite::MicroInterpreter * p_interpreter = nullptr
 
int16_t range =0
 

Detailed Description

Generate a sine output from a model that was trained on the sine method. (=hello_world)

Author
Phil Schatzmann

Member Function Documentation

◆ begin()

virtual bool audio_tools::TfLiteSineReader::begin ( TfLiteAudioStreamBase parent)
inlineoverridevirtual

◆ read()

virtual int audio_tools::TfLiteSineReader::read ( int16_t *  data,
int  sampleCount 
)
inlineoverridevirtual

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