arduino-audio-tools
All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Modules Pages
Public Member Functions | Protected Attributes | List of all members
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 TfLiteSineReader:
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
 

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 begin ( TfLiteAudioStreamBase parent)
inlineoverridevirtual

Implements TfLiteReader.

◆ read()

virtual int read ( int16_t *  data,
int  sampleCount 
)
inlineoverridevirtual

Implements TfLiteReader.


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