arduino-simple-tts
All Classes Functions Variables Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
simple_tts::AudioDictionarySD Class Reference

A dictionary which is based on files stored on an SD card. By default we use the SdFat library. You can use the SD library with #define USE_SD before including this file. More...

#include <AudioDictionarySD.h>

Inheritance diagram for simple_tts::AudioDictionarySD:
simple_tts::AudioDictionaryBase

Public Member Functions

 AudioDictionarySD (const char *path, const char *ext, int cs_pin=PIN_CS)
 
AudioStream * get (const char *word)
 retrieves recorded audio file for the word
 
virtual AudioStream * get (const char *word)=0
 

Protected Member Functions

void setup ()
 
const char * getFileWithPath (const char *name)
 

Protected Attributes

audio_tools::StrExt url_with_text
 
AudioFile file
 
AudioStreamFileWrapper< AudioFile > fileWrapper
 
AudioFat SD
 
const char * path
 
const char * ext
 
StrExt file_path {40}
 
bool is_setup = false
 
int cs_pin = -1
 

Detailed Description

A dictionary which is based on files stored on an SD card. By default we use the SdFat library. You can use the SD library with #define USE_SD before including this file.

Author
Phil Schatzmann

Member Function Documentation

◆ get()

AudioStream * simple_tts::AudioDictionarySD::get ( const char *  word)
inlinevirtual

retrieves recorded audio file for the word

Implements simple_tts::AudioDictionaryBase.


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